Instructions to use tencent/Hy-MT2-30B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/Hy-MT2-30B-A3B 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-30B-A3B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tencent/Hy-MT2-30B-A3B") model = AutoModelForCausalLM.from_pretrained("tencent/Hy-MT2-30B-A3B") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
"eod_token_id": 120026,
|
| 11 |
"eos_token_id": 120025,
|
| 12 |
"expert_hidden_dim": 768,
|
|
|
|
| 13 |
"first_k_dense_replace": 1,
|
| 14 |
"head_dim": 128,
|
| 15 |
"hidden_act": "silu",
|
|
|
|
| 10 |
"eod_token_id": 120026,
|
| 11 |
"eos_token_id": 120025,
|
| 12 |
"expert_hidden_dim": 768,
|
| 13 |
+
"moe_intermediate_size": 768,
|
| 14 |
"first_k_dense_replace": 1,
|
| 15 |
"head_dim": 128,
|
| 16 |
"hidden_act": "silu",
|