Views
No views yet
Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. This repository distributes a LoRA adapter (a Model Derivative ofgemma-3-4b-it); the only modified artifacts are the adapter weights. Your use of the base model and of any merged model is subject to those Terms, including the Prohibited Use Policy, which you must pass on to anyone you redistribute to. A copy of the Terms is included in this repository.
gemma-3-4b-it translating structured card intents into the
mtg-compiler DSL (typed s-expressions
of Magic card mechanics). Blog:
the mtg-compiler series.| model | parse | canonical-exact | dsl_sim | tree_sim |
|---|---|---|---|---|
| goblin-4B (this adapter) | 95.6% | 52.8% ±1.4 | 0.908 | 0.845 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3-4b-it")
5tok = AutoTokenizer.from_pretrained("unsloth/gemma-3-4b-it")
6model = PeftModel.from_pretrained(base, "<this-repo>") # or .merge_and_unload()