baseline prompt (Champions Regulation M-B)A LoRA adapter for Fast-dLLM v2 1.5B, a block-diffusion
language model adapted from Qwen2.5-1.5B-Instruct. Given a team with blanks (items, abilities, natures, moves or whole
Pokémon), it fills them for gen9championsvgc2026regmb (Champions VGC 2026, Regulation Set M-B). Its prompt copies the
baseline prompt version the Battle Factory of Porygon-Pi project
sent to an LLM (inclusionai/ling-3.0-flash-vl) in its masked-completion baseline. Sibling adapters: the short-prompt text
writer Rami/fast-dllm-v2-1.5b-vgc-regmb-lora and one writer per
LLM prompt version (Rami/fast-dllm-v2-1.5b-vgc-mask-fill-ling-<version>-prompt-lora).
System message: system.txt in this repo, the LLM's baseline text with only the answer-format sentence changed.
User message: the LLM's request with each meta team as one line of its six species (meta_teams.txt holds the 49 lines)
and a target_win_rate (two decimals or unknown). One training row, its meta list shortened:
{"feedback":null,"format":"gen9championsvgc2026regmb","masked_team":[{"ability":"Adaptability","item":null,"moves":["Aqua Jet","Last Respects","Protect","Wave Crash"],"nature":"Timid","slot":1,"species":"Basculegion"},{"ability":"Blaze","item":"Charizardite Y","moves":["Heat Wave","Protect","Sunny Day","Weather Ball"],"nature":"Adamant","slot":2,"species":"Charizard"},{"ability":"Flower Veil","item":"Sitrus Berry","moves":["Dazzling Gleam","Protect","Solar Beam","Sunny Day"],"nature":"Modest","slot":3,"species":"Floette-Eternal"},{"ability":"Rough Skin","item":"Life Orb","moves":["Earth Power","Protect","Rock Slide","Sunny Day"],"nature":"Adamant","slot":4,"species":"Garchomp"},{"ability":"Defiant","item":"Focus Sash","moves":["Iron Head","Kowtow Cleave","Protect","Sucker Punch"],"nature":"Jolly","slot":5,"species":"Kingambit"},{"ability":"Prankster","item":"Occa Berry","moves":["Encore","Moonblast","Protect","Tailwind"],"nature":"Modest","slot":6,"species":"Whimsicott"}],"meta_teams":["Aerodactyl, Charizard, Farigiraf, Garchomp, Incineroar, Sylveon","Charizard, Floette-Eternal, Garchomp, Gholdengo, Incineroar, Sinistcha","\u2026"],"spread_system":"Champions Stat Points; use the allocation rules for the specified format.","target_win_rate":"0.50","task":{"k":1,"masked_paths":["team[0].item"],"slots":[0],"task":"items"}}
Answer: the whole completed team, six blocks of species @ item, ability, nature and four moves, without Stat Points or level; keep only the blanks' values and reject the answer if an unmasked field comes back changed:
Basculegion @ Mystic Water
Ability: Adaptability
Timid Nature
- Aqua Jet
- Last Respects
- Protect
- Wave Crash
Charizard @ Charizardite Y
Ability: Blaze
Adamant Nature
- Heat Wave
- Protect
- Sunny Day
- Weather Ball
Floette-Eternal @ Sitrus Berry
Ability: Flower Veil
Modest Nature
- Dazzling Gleam
- Protect
- Solar Beam
- Sunny Day
Garchomp @ Life Orb
Ability: Rough Skin
Adamant Nature
- Earth Power
- Protect
- Rock Slide
- Sunny Day
Kingambit @ Focus Sash
Ability: Defiant
Jolly Nature
- Iron Head
- Kowtow Cleave
- Protect
- Sucker Punch
Whimsicott @ Occa Berry
Ability: Prankster
Modest Nature
- Encore
- Moonblast
- Protect
- Tailwind
Add Stat Points yourself and validate the team with Showdown before use.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base, rev = "Efficient-Large-Model/Fast_dLLM_v2_1.5B", "25093b6f63300adfd57f72145083c8a528fe4f16"
tok = AutoTokenizer.from_pretrained(base, revision=rev, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base, revision=rev, trust_remote_code=True, dtype=torch.bfloat16)
model = PeftModel.from_pretrained(model, "Rami/fast-dllm-v2-1.5b-vgc-mask-fill-ling-baseline-prompt-lora").merge_and_unload().eval()
msgs = [{"role": "system", "content": open("system.txt").read()}, {"role": "user", "content": user_message}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, max_new_tokens=320, threshold=0.9, block_size=32, small_block_size=8, temperature=1.0, top_p=1.0)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
The project fills with classifier-free guidance 2 (the request with "0.50" and with "unknown" in one batch, logits
combined as 2·cond − 1·uncond at every step); plain generate is guidance 1.
8,000 rows from the project's Regulation M-B teams, none of them a team ranked 51 to 100 (its held-out set): 4,000 list all 49 distinct top-50 meta teams with the team's win rate against them, 4,000 come from teams with a recorded battle against every top-50 team and list a random 8 to 49 of them with the win rate against those. Each row blanks one cell of the project's Mask Lab grid (items, abilities, natures or whole Pokémon k = 1 to 6; moves k = 1 to 24). LoRA rank 32, alpha 64, every attention and MLP projection; 2,000 steps of 4 examples; learning rate 2e-4, 3% warm-up, linear decay; bf16; Fast-dLLM v2's block-diffusion loss; full gradient checkpointing; one Apple M4 Pro, 10.3 hours. Validation loss at steps 500, 1000, 1500, 2000: 0.388, 0.273, 0.231, 0.207 (on the whole answer).
Win rate is wins against the 49 distinct top-50 meta teams, one battle each, with a behaviour-cloning battle policy on both sides. The Mask Lab grid blanks 270 cells across five starting teams; a fill is legal if Showdown accepts the team and no unmasked field changed. Percentage points, paired on the blank, 95% bootstrap over the five starting teams.
| starting teams | legal fills | fill − original | vs the short-prompt writer, both legal | vs the LLM on this prompt, both legal |
|---|---|---|---|---|
| five held-out real teams, ranks 51–100 (originals win 0.48) | 111/270 | -1.8 [-6.0, +2.9] | +0.6 [-0.8, +2.0] | not run |
| five random legal teams (originals win 0.03) | 69/270 | -0.6 [-2.4, +1.3] | -0.4 [-1.7, +0.5] | -0.2 [-1.3, +0.7] |
The short-prompt writer had 173 and 149 legal fills on the same blanks, the LLM on baseline@16384 113 on the random teams.
A real top-50 team wins 0.531 against the other 49.
Regulation M-B only. No learnset or clause constraints at decoding, so many fills are illegal and need the validator. One training seed, five starting teams per grid, one battle per opponent, one battle policy. The training rows differ from the short-prompt writer's, so a comparison between them measures prompt and data together.