Downloads · 30 days
52
7% of all-time downloads
ericnunes/qwen35-4b-fable5-sft
qwen35-4b-fable5-sft is a text generation model from ericnunes. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned Qwen3.5-4B model using SFT (Supervised Fine-Tuning) with Claude Fable 5 traces.
Downloads · 30 days
52
7% of all-time downloads
All-time downloads
731
Public
Repo size
15.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf15.6 GB · 99%
From the Hugging Face model README
Fine-tuned Qwen3.5-4B model using SFT (Supervised Fine-Tuning) with Claude Fable 5 traces.
This model was trained on agentic coding traces with chain-of-thought reasoning patterns.
| Model | pass@1 | Passed |
|---|---|---|
| Baseline (Qwen3.5-4B) | 0.4939 | 81/164 |
| Fine-tuned (this model) | 0.5793 | 95/164 |
Improvement: +8.54pp (+17.3%)
The baseline was re-evaluated with a corrected code extraction pipeline. An initial evaluation reported 3.66% (6/164) for the baseline, but this was due to a bug in the _extract_code function that stripped indentation from generated code. After fixing the extraction to preserve indentation and properly handle explanatory text (which the base model generates before code), the baseline was re-evaluated at 49.39% (81/164).
Both baseline and fine-tuned model were evaluated with the same corrected pipeline using:
AutoModelForCausalLM + AutoTokenizer (transformers direct, avoids Unsloth multimodal issues)def block to avoid multiple function generationsfrom transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"ericnunes/qwen35-4b-fable5-sft",
torch_dtype=torch.bfloat16,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("ericnunes/qwen35-4b-fable5-sft")
messages = [
{"role": "user", "content": "Write a Python function to check if a number is prime."}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False, pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
This model is also available in GGUF format:
model-Q4_K_M.gguf (2.57 GB) — recommended for most use casesmodel-Q8_0.gguf (4.26 GB) — higher precisionmodel-f16.gguf (8.03 GB) — full precisionThis model was trained on traces of Claude Fable 5 (Mythos), a preview model that was briefly available. The traces contain agentic coding patterns with thinking/reasoning blocks.