CoolFace
Modelpublic

zait-ai/Roswaal-8B

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
1likes60downloads
Model Card

image

Roswaal-8B

Roswaal-8B is a full-parameter reasoning model built on top of a deeply uncensored Qwen3-8B and post-trained via Chain-of-Thought (CoT) distillation.

The result is a compact, fast, dramatically more capable 8B reasoning model that proves data quality beats brute-force volume. Headline capabilities:

  • โ€”๐Ÿ† Dominates benchmarks: Scores 87.64% exact_match on the full GSM8K test set (1,319 questions) using 5-shot evaluation โ€” outperforming both its base model and heavily fine-tuned 50K-synthetic variants.
  • โ€”๐Ÿง  Advanced Chain-of-Thought: Strictly trained to deconstruct complex prompts, show its work step-by-step, and perform self-correction inside <think> blocks before outputting the final answer.
  • โ€”โšก High-Efficiency Training: Trained locally on a single NVIDIA RTX 6000 Ada Generation (96GB VRAM) in just over an hour using Unsloth optimization.

Roswaal-8B is intentionally designed to engage seriously with technically demanding, multi-step logical and mathematical challenges without unnecessary refusals or boilerplate disclaimers.


Benchmark Results

image

Evaluated on the full GSM8K test set (1,319 problems) using lm-evaluation-harness with a 5-shot prompt configuration (temperature=0.1 / low-temp reasoning).

ModelGSM8K Accuracy
Gemma 3 4B IT89.2%
Qwen2.5 Coder 14B Instruct88.7%
Phi-4-mini88.6%
Roswaal-8B87.64%
Qwen2.5 Coder 7B Instruct86.7%
Phi 3.5 Mini Instruct86.2%
Phi-3 Medium (4k-instruct)85.2%
Gemma 2 9B84.9%
Llama 3.1 8B Instruct82.4%
Qwen3-8B79.4%
Mistral-7B77.9%
Llama 3.2 3B77.7%

Roswaal-8B scores 8.24 p.p. above Qwen3-8B on GSM8K.


Methodology: Why It Works

Unlike standard fine-tuning processes that attempt to map a question directly to an answer, Roswaal-8B was explicitly trained on ~20,000 highly curated Chain-of-Thought (CoT) sequences.

The training objective forces the model to:

  1. 1.Deconstruct complex prompts into smaller, actionable logical steps.
  2. 2.Self-correct during the generation phase (e.g., catching internal arithmetic errors before outputting the final answer).
  3. 3.Strictly isolate its internal monologue from the user-facing output using specialized structural tags.

Hyperparameters

ParameterSFT
MethodLoRA (16-bit)
LoRA rank (r)16
LoRA alpha32
LoRA targets"qproj", "kproj", "vproj", "oproj", "gateproj", "upproj", "down_proj"
Learning rate1e-4
SchedulerCosine
Optimizeradamw_8bit
Epochs1
Batch size8
Gradient accumulation4
Max sequence length2,048
Precisionbf16
Gradient checkpointingUnsloth

Prompt Format & Generation Strategy

Roswaal-8B relies on the standard ChatML template but requires a specific generation logic. The model expects to enclose its reasoning process inside <think>...</think> tags.

Recommended Generation Parameters:

  • โ€”Temperature: 0.1 to 0.6 (Keep it low to prevent logical drift during complex math).
  • โ€”Top_p: 0.9
  • โ€”Max_new_tokens: 1024 - 4096 (Crucial: The model needs enough token space to "think" before answering. Do not restrict this too heavily).

Developed by maxzt