Instructions to use tencent/HY-MT1.5-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/HY-MT1.5-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-MT1.5-7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tencent/HY-MT1.5-7B") model = AutoModelForCausalLM.from_pretrained("tencent/HY-MT1.5-7B") - Notebooks
- Google Colab
- Kaggle
📋 Documentation Enhancement Suggestion
#7 opened 4 months ago
by
CroviaTrust
Request: Adding Hungarian (hu) language support
#6 opened 5 months ago
by
fnorby777
ZH->EN example?
1
#5 opened 5 months ago
by
Khatvathiren
Why such an absurdly restrictive license?
➕ 2
6
#3 opened 5 months ago
by
ilintar
Romanian, please?
#2 opened 5 months ago
by
razvanab
协议=
1
#1 opened 5 months ago
by
LittleTaro