Instructions to use FastFlowLM/Hy-MT3-1.8B-NPU2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FastFlowLM/Hy-MT3-1.8B-NPU2 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="FastFlowLM/Hy-MT3-1.8B-NPU2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FastFlowLM/Hy-MT3-1.8B-NPU2") model = AutoModelForCausalLM.from_pretrained("FastFlowLM/Hy-MT3-1.8B-NPU2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Hy-MT3-1.8B-NPU2
Tencent Hy-MT3-1.8B (102-language translation) packaged for FastFlowLM on AMD Ryzen™ AI (XDNA2) NPUs.
- Weights: Q4_K body, Q8_0 output head (llama.cpp quantization of the BF16 model), repacked to FastFlowLM's
q4nxlayout. - Runs on the same NPU kernels as
Hy-MT2-1.8B-NPU2; needs FastFlowLM v1.0.14 or later. - Single-turn model: every request is an independent translation.
- Quality: on 640 WMT24++ segments (8 languages, both directions) the NPU build scores chrF 49.1 against 49.6 for BF16 llama.cpp (paired difference -0.5, 95% CI -1.0 to +0.1).
flm run hy-mt3-flash:1.8b
flm serve hy-mt3-flash:1.8b
Prompt (full language names; no default system prompt):
Translate the following text into {target_lang}. Note that you should only output the translated result without any additional explanation:
{source_text}
Recommended sampling: temperature 0.7, top_p 0.6, top_k 20, repetition penalty 1.05. For terminology, style, delimiter and structured-data prompts, supported languages and the license terms see the original model card and LICENSE.txt (Apache-2.0).
- Downloads last month
- -