MiLMMT-46-1B-v0.1, int4 ONNX for QiTV
An int4 ONNX export of MiLMMT-46-1B-v0.1 (Xiaomi Inc., 46 languages, built on Gemma 3 1B). It is made for QiTV's on-device translation of AI captions, and runs with onnxruntime 1.28 or newer.
Prompt
The prompt is the one from the original model card:
Translate this from <source language name> to <target language name>:
<source language name>: <source sentence>
<target language name>:
What was changed
- Exported to int4 with onnxruntime-genai 0.20's model builder (
-p int4 -e cpu). - The
sliding_window_cacheattribute was removed from the GroupQueryAttention nodes, which onnxruntime 1.28 rejects. - An output
next_token(int64 [1]) was added: the argmax over the vocabulary at the last position. It replaces thelogitsoutput. - The lm head runs on the last position only: the Gather of that position was moved before
/lm_head/MatMul_Q4. The tokens are the same (120 of 120 lines in 6 language pairs, onnxruntime 1.28.2) and the prompt runs sooner;model.onnx.datais unchanged.
Inputs: input_ids, attention_mask, past_key_values.{0..25}.{key,value}.
Outputs: next_token, present.{0..25}.{key,value}.
License
Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. See NOTICE.