Views
No views yet
gemma-4-12b-it — the strongest model in the
mtg-compiler family — translating
structured card intents into the project's DSL (typed s-expressions of Magic
card mechanics). Gemma 4 is licensed under
Apache 2.0 (unlike earlier Gemma
generations), and this adapter is distributed under Apache 2.0 as well. Blog:
the mtg-compiler series.| model | parse | canonical-exact | dsl_sim | tree_sim |
|---|---|---|---|---|
| dragon-12B (this adapter) | 97.9% | 67.3% ±1.3 | 0.941 | 0.900 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base = AutoModelForCausalLM.from_pretrained("unsloth/gemma-4-12b-it")
5tok = AutoTokenizer.from_pretrained("unsloth/gemma-4-12b-it")
6model = PeftModel.from_pretrained(base, "<this-repo>") # or .merge_and_unload()