Data sourced from PokeAPI (151 Gen 1 Pokemon, 165 moves, 225 type matchups, 78 evolutions) and formatted as instruction-following conversations.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "clarkkitchen22/pokemon-red-commander-qwen3-4b",
5 torch_dtype="auto",
6 device_map="auto",
7)
8tokenizer = AutoTokenizer.from_pretrained(
9 "clarkkitchen22/pokemon-red-commander-qwen3-4b"
10)
11
12messages = [
13 {"role": "system", "content": "You are the Strategic Commander for a Pokemon Red autonomous playthrough."},
14 {"role": "user", "content": "My Charizard (Lv 40, HP 98/130) is facing Misty's Starmie (Lv 21). I have Flamethrower, Slash, Fly, and Earthquake. What move should I use?"},
15]
16
17text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
18inputs = tokenizer(text, return_tensors="pt").to(model.device)
19outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.3, top_p=0.9)
20print(tokenizer.decode(outputs[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
GGUF quantized versions are also available in this repo (see files).
1# llama.cpp
2./llama-cli -m pokemon-red-commander-Q4_K_M.gguf -p "<|im_start|>user\nWhat Pokemon should I use against Brock?<|im_end|>\n<|im_start|>assistant\n"
3
4# Ollama
5ollama run clarkkitchen22/pokemon-red-commander-qwen3-4b
This model is designed to be the decision-making brain for an autonomous Pokemon Red playthrough system. It pairs with: