Downloads · 30 days
18
1% of all-time downloads
ermiaazarkhalili/Carnice-9B-SFT-Fable5
Carnice-9B-SFT-Fable5 is a text generation model from ermiaazarkhalili. 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.
A LoRA fine-tune of kai-os/Carnice-9b, supervised fine-tuned on ermiaazarkhalili/Fable-5-Complete-2M-Clean (private).
Downloads · 30 days
18
1% of all-time downloads
All-time downloads
1.2K
Public
Parameters
9B
35.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors17.9 GB · 100%
From the Hugging Face model README
A LoRA fine-tune of kai-os/Carnice-9b, supervised fine-tuned on ermiaazarkhalili/Fable-5-Complete-2M-Clean (private).
| Base model | kai-os/Carnice-9b |
| Architecture | Qwen3_5ForCausalLM |
| Parameters | 9.0B |
| Training data | ermiaazarkhalili/Fable-5-Complete-2M-Clean (private) |
| Method | LoRA supervised fine-tuning via Unsloth + TRL |
| License | apache-2.0 (inherited from the base model) |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ermiaazarkhalili/Carnice-9B-SFT-Fable5"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype='auto', device_map='auto')
messages = [{"role": "user", "content": "Explain gradient checkpointing in two sentences."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors='pt'
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Setting | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 16 |
| Learning rate | 0.0002 |
| Epochs | 2 |
| Effective batch size | 8 (1 x 8 grad accum) |
| Max sequence length | 4096 |
| Base precision | 4-bit (QLoRA) |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
Next-token accuracy on a deterministic held-out split of ermiaazarkhalili/Fable-5-Complete-2M-Clean (n = 19,994 samples), scored against the base model kai-os/Carnice-9b. Assistant tokens only; both models are scored identically.
| Metric | Base | This model | Δ |
|---|---|---|---|
| Top-1 accuracy | 0.7317 | 0.7745 | +0.0428 |
| Top-5 accuracy | 0.9188 | 0.9436 | +0.0247 |
A delta measures how far fine-tuning moved this model from its own starting point; it is not a ranking against other models, which start from different baselines.
Measured from our SLURM logs for this configuration. These are training-loss observations only — see the held-out evaluation above for measured accuracy.
| SLURM job | Steps | First loss | Final loss |
|---|---|---|---|
53293560 | 94,254 | 0.7872 | 0.7468 |
Trained by notebooks/fable_distillation_carnice-9b_fable_unsloth.ipynb, executed non-interactively with
papermill on a SLURM H100 partition (Unsloth + TRL, LoRA).
Card generated from the training run's own configuration and logs by
scripts/generate_hub_model_card.py.