Downloads · 30 days
23
43% of all-time downloads
Tagashy/dragon-12b-mtg-dsl-lora
dragon-12b-mtg-dsl-lora is a text generation model from Tagashy. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
dragon is unofficial Fan Content permitted under the Fan Content Policy. Not approved/endorsed by Wizards. Portions of the materials used are property of Wizards of the Coast. © Wizards of the Coast LLC. Card data pro…
Downloads · 30 days
23
43% of all-time downloads
All-time downloads
54
Public
Repo size
557 MB
Likes
0
Public
Click a slice to open those files.
.safetensors525 MB · 94%
From the Hugging Face model README
dragon is unofficial Fan Content permitted under the Fan Content Policy. Not approved/endorsed by Wizards. Portions of the materials used are property of Wizards of the Coast. © Wizards of the Coast LLC. Card data provided by Scryfall.
QLoRA fine-tune of 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.
QLoRA r32/α32, lr 1e-4, batch 4 × grad-accum 6 (effective 24), seqlen 640, eager attention, on the v8 intent→DSL pairs. ≈60 h on one AMD R9700 (ROCm).
Held-out v8 test (5,051 cards), free decode, matched budgets, Wald 95% CI:
| model | parse | canonical-exact | dsl_sim | tree_sim |
|---|---|---|---|---|
| dragon-12B (this adapter) | 97.9% | 67.3% ±1.3 | 0.941 | 0.900 |
The headline number of the v8 cross-tier eval — and the one that un-shadowed the rare tail (once-seen node miss 0.247 vs ~1.0 for the from-scratch tier). See the blog's article 4 for what that does and doesn't prove.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("unsloth/gemma-4-12b-it")
tok = AutoTokenizer.from_pretrained("unsloth/gemma-4-12b-it")
model = PeftModel.from_pretrained(base, "<this-repo>") # or .merge_and_unload()
Input format and output validation: see the wyrmling card and the compiler repo.