Views
No views yet
translategemma-4b-it-onnx-int4-dml (and -cpu).en→xx on WMT24++):| Language | 4B | 12B | Worth switching |
|---|---|---|---|
| Hungarian | 7.84 | 5.00 | yes — the 4B is not usable here |
| Turkish | 6.17 | 4.64 | yes |
| Finnish | 5.68 | 3.77 | yes |
| Polish | 5.64 | 4.58 | yes |
| Czech | 5.41 | 4.03 | yes |
| Greek | 4.66 | 3.34 | worthwhile |
| Romanian | 4.18 | 3.25 | worthwhile |
| Ukrainian | 4.16 | 3.29 | worthwhile |
| Dutch, French, Portuguese, Nordic, Russian | 2.8–3.3 | 2.0–2.5 | marginal |
| German, Spanish, Italian | 1.9–2.6 | 1.4–2.2 | no — the 4B is already good |
en→xx. Translating from a
non-English source (e.g. German → Hungarian) is likely somewhat worse, so treat
these numbers as an optimistic bound.Gemma3ForCausalLM, model type gemma3_text); the vision tower is not included.python -m onnxruntime_genai.models.builder -p int4 -e dml).onnxruntime-genai 0.13.1, the version Cortility ships
(Microsoft.ML.OnnxRuntimeGenAI.DirectML). A build made with 0.15.2 emits
nodes the 0.13.1 DirectML provider cannot partition; loading then fails with
"This session cannot use the graph capture feature as requested by the user
as all compute graph nodes have not been partitioned to the
DmlExecutionProvider". The model itself is fine — it simply cannot be loaded
by the older runtime.luid stripped from genai_config.json. Newer builders pin the model to the
exact GPU present at build time; this build ships [{"dml": {}}] so the host
application selects the adapter at load time.genai_config.json ships with eos_token_id: [1, 106] so that
<end_of_turn> terminates generation (the stock config only stopped on <eos>).<bos> token at the start of the prompt — without it the
output degenerates. The tokenizer of onnxruntime-genai does not add it
automatically:<bos><start_of_turn>user
Translate the following text into English. Reply with ONLY the translation.
Text:
Wie heißt die Hauptstadt von Frankreich?<end_of_turn>
<start_of_turn>modelonnxruntime-genai decodes greedily
unless do_sample is set explicitly — setting temperature alone has no effect.