Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

tencent
/
Hy-MT2-7B

Translation
Transformers
Safetensors
hunyuan_v1_dense
text-generation
Model card Files Files and versions
xet
Community

Instructions to use tencent/Hy-MT2-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use tencent/Hy-MT2-7B with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "translation" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("translation", model="tencent/Hy-MT2-7B")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("tencent/Hy-MT2-7B")
    model = AutoModelForCausalLM.from_pretrained("tencent/Hy-MT2-7B")
  • Notebooks
  • Google Colab
  • Kaggle
Hy-MT2-7B / train /deepspeed_support
64.7 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
hhoh's picture
hhoh
upload Hy-MT2 files
26173ad verified 1 day ago
  • ds_zero2_no_offload.json
    528 Bytes
    upload Hy-MT2 files 1 day ago
  • ds_zero2_offload.json
    676 Bytes
    upload Hy-MT2 files 1 day ago
  • ds_zero3_no_offload.json
    1.1 kB
    upload Hy-MT2 files 1 day ago
  • ds_zero3_offload.json
    1.1 kB
    upload Hy-MT2 files 1 day ago
  • ds_zero3_offload_no_auto.json
    944 Bytes
    upload Hy-MT2 files 1 day ago
  • merge_lora_weight.py
    2.51 kB
    upload Hy-MT2 files 1 day ago
  • merge_lora_weight.sh
    269 Bytes
    upload Hy-MT2 files 1 day ago
  • train.py
    25.7 kB
    upload Hy-MT2 files 1 day ago
  • train.sh
    3.47 kB
    upload Hy-MT2 files 1 day ago
  • train_dense.py
    14.9 kB
    upload Hy-MT2 files 1 day ago
  • train_dense.sh
    4.85 kB
    upload Hy-MT2 files 1 day ago
  • train_dense_lora.sh
    5.08 kB
    upload Hy-MT2 files 1 day ago
  • train_lora.sh
    3.6 kB
    upload Hy-MT2 files 1 day ago