Views
No views yet
google/gemma-4-e2b-it fine-tuned on Pokémon data with the LoRA adapter folded into the base weights. No separate adapter needed — load and run directly. For the lightweight adapter version, see TarunNagaSai007/gemma4-e2b-pokemon.| Task | Input example | Output |
|---|---|---|
| Stat | "What is the Speed of Duskull?" | 25 |
| Profile | "Tell me about Miltank." | Full Pokédex entry |
| Battle | "If Raichu battles Blastoise, who wins?" | <think> reasoning + verdict |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "TarunNagaSai007/gemma4-e2b-pokemon-merged",
6 torch_dtype=torch.float16, device_map="auto",
7)
8tokenizer = AutoTokenizer.from_pretrained("TarunNagaSai007/gemma4-e2b-pokemon-merged")
9
10messages = [
11 {"role": "system", "content": [{"type": "text", "text": "You are a Pokédex assistant. Answer questions about Pokémon stats, profiles, and battle outcomes accurately."}]},
12 {"role": "user", "content": [{"type": "text", "text": "What is the Speed of Pikachu?"}]},
13]
14inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
15out = model.generate(**{"input_ids": inputs}, max_new_tokens=256)
16print(tokenizer.decode(out[0], skip_special_tokens=True))