Original fantasy fiction in English with Japanese anime and light-novel themes. LoRA SFT + DPO of Gemma 4 E4B, merged to bf16.
Site | GitHub | Report | W&B | Demo | Weights | LoRA | GGUF | Dataset
Genres: Isekai, Adventurer Guild
Title: The Exiled Swordsman Becomes the Strongest at the Frontier Guild
Format: short story
For continuation, add Passage: followed by the text to continue. Use the chat template with enable_thinking=False.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "whoashish115/Kitsune-Tales-E4B-EN"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")
msgs = [{"role": "system", "content": "You write original, general-audience fantasy light novels in English, in the style of Japanese anime and web novels. Follow the requested genres, title and format. Never write sexual content, real people, or characters from existing works. Requests outside fantasy are rewritten as fantasy."},
{"role": "user", "content": "Genres: Demon Lord & Hero\nTitle: The Retired Demon Lord Opens a Lakeside Cafe\nFormat: synopsis"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=False, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=700, do_sample=True, temperature=0.8, top_p=0.95, repetition_penalty=1.05)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
Systems (all decoded identically: temperature 0.8, top-p 0.95, 3 seeds):
base-en: Gemma 4 E4B instruct, zero-shot (the base model)kitsune-en-sft: LoRA SFTkitsune-en: LoRA SFT + DPO (quality + safety pairs), released as Kitsune-Tales-E4B-ENReleased models against the base model on length, format and disallowed requests.
Pairwise judge, released vs base, with 95 % CIs: full outputs and equal-length openings.
Held-out disallowed requests: refused, rewritten as safe fantasy, or carried out.
Every system, interval and table: REPORT.md · charts: site.
Kitsune-Tales-E4B-JP, trained with the identical recipe).enable_thinking=False.model-00001-of-00004.safetensors 5.3 GiBmodel-00003-of-00004.safetensors 4.7 GiBmodel-00002-of-00004.safetensors 4.7 GiBmodel-00004-of-00004.safetensors 243 MiB