Instructions to use AXERA-TECH/HY-MT1.5-1.8B_GPTQ_INT4-AX620E with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/HY-MT1.5-1.8B_GPTQ_INT4-AX620E 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="AXERA-TECH/HY-MT1.5-1.8B_GPTQ_INT4-AX620E")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/HY-MT1.5-1.8B_GPTQ_INT4-AX620E", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| AXMODEL_DIR=./hymt1-5_1k_ax620e_axmodel/ | |
| ./main_ax620e \ | |
| --template_filename_axmodel "${AXMODEL_DIR}hunyuan_v1_dense_p128_l%d_together.axmodel" \ | |
| --axmodel_num 32 \ | |
| --bos 0 --eos 0 \ | |
| --dynamic_load_axmodel_layer 0 \ | |
| --use_mmap_load_embed 1 \ | |
| --filename_tokenizer_model "hymt1-5-1.8b_tokenizer.txt" \ | |
| --filename_post_axmodel "${AXMODEL_DIR}/hunyuan_v1_dense_post.axmodel" \ | |
| --use_topk 0 \ | |
| --filename_tokens_embed "${AXMODEL_DIR}/model.embed_tokens.weight.bfloat16.bin" \ | |
| --tokens_embed_num 120818 \ | |
| --tokens_embed_size 2048 \ | |
| --live_print 1 \ | |
| --continue 1 \ | |
| --post_config_path post_config.json \ | |
| --use_zh_template 0 \ | |
| --target_language "English" \ | |