--- license: apache-2.0 language: - en library_name: transformers pipeline_tag: text-generation base_model: Qwen/Qwen3.5-9B datasets: - zwhe99/DeepMath-103K tags: - qwen3.5 - reasoning - math - code - lora - merged --- # Aurelius-9B **Aurelius-9B** is an open-weights (Apache-2.0) 9B hybrid-attention reasoning model fine-tuned from [`Qwen/Qwen3.5-9B`](https://huggingface.co/Qwen/Qwen3.5-9B). It is trained via two stages of on-policy LoRA supervised self-distillation on [`zwhe99/DeepMath-103K`](https://huggingface.co/datasets/zwhe99/DeepMath-103K) prompts using verifier-filtered self-generations (no external teacher text or closed-API outputs) and merged back into BF16 safetensors, preserving the full base architecture, vision tower, and multi-token prediction (MTP) head. > For the complete pre-registered evaluation protocol, Seal §6 operating characteristics, Amendment A1 disclosures, historical candidate notes, and decision ledger, see [EVALUATION_REPORT.md](./EVALUATION_REPORT.md). --- ## Model Details | Property | Value | |---|---| | **Base Model** | [`Qwen/Qwen3.5-9B`](https://huggingface.co/Qwen/Qwen3.5-9B) (rev `c202236235762e1c871ad0ccb60c8ee5ba337b9a`) | | **Architecture** | 32 layers (24 GDN linear-attention + 8 full-attention, every 4th layer) | | **Hidden / Vocab / Context** | 4,096 / 248,320 / 262,144 max positions | | **Release Format** | Merged BF16 safetensors (vision tower & MTP head preserved) | | **Recommended Sampler** | `temperature=1.0`, `top_p=0.95`, `top_k=20`, `min_p=0.0`, `enable_thinking=True` | | **License** | Apache-2.0 | --- ## Quickstart ### vLLM (Evaluated Path) Use the merged checkpoint (`Aurelien33/Aurelius-9B`). Do **not** use `vllm` `enable_lora` with standalone adapters on `Qwen3.5-9B`; in our parity tests, `vLLM 0.28.0` `enable_lora` did not apply the language-model adapter deltas. ```python import os os.environ["VLLM_USE_FLASHINFER_SAMPLER"] = "0" os.environ["VLLM_DISABLE_FLASHINFER_PREFILL"] = "1" from vllm import LLM, SamplingParams llm = LLM( model="Aurelien33/Aurelius-9B", dtype="bfloat16", max_model_len=65536, gpu_memory_utilization=0.90, enable_prefix_caching=False, mamba_ssm_cache_dtype="float32", trust_remote_code=True, ) msgs = [{"role": "user", "content": "What is 17 * 23? Put your final answer in \\boxed{}."}] sp = SamplingParams(temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, max_tokens=8192, seed=101) out = llm.chat(msgs, sp, chat_template_kwargs={"enable_thinking": True}) print(out[0].outputs[0].text) ``` ### Transformers ```python from transformers import AutoModelForCausalLM, AutoTokenizer model_id = "Aurelien33/Aurelius-9B" tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype="bfloat16", device_map="auto", trust_remote_code=True ) prompt = tok.apply_chat_template( [{"role": "user", "content": "What is 17 * 23? Put your final answer in \\boxed{}."}], tokenize=False, add_generation_prompt=True, enable_thinking=True, ) inputs = tok(prompt, return_tensors="pt").to(model.device) outputs = model.generate( **inputs, max_new_tokens=8192, do_sample=True, temperature=1.0, top_p=0.95, top_k=20 ) print(tok.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)) ``` *(Note: `vLLM 0.28.0` BF16 was the evaluated inference path for the release numbers below.)* --- ## Evaluation Summary Aurelius-9B was evaluated on a pre-registered **observed-loss screen** against `Qwen/Qwen3.5-9B` (Colab A100, BF16, `vLLM 0.28.0`, `enable_thinking=True`, zero resource-affected draws, verdict `d99feacf…`): | Gate | Benchmark | Freshness Label | Draws (`n × k`) | Aurelius-9B | Base (`Qwen3.5-9B`) | Δ (`ΣD`) | Allowed Loss | Result | |---|---|---|---:|---:|---:|---:|---:|---| | `G-AIME26` | AIME 2026 I+II | AT RISK | 90 (`30 × 3`) | 76 | 77 | −1 | 6 | **PASS** | | `G-MATH` | CMIMC 2026 | FRESH | 93 (`31 × 3`) | 74 | 74 | 0 | 6 | **PASS** | | `G-CODE` | CodeAssay | FRESH | 185 (`185 × 1`) | 148 | 141 | +7 | 7 | **PASS** | | `G-GPQA-L` | GPQA-Diamond | SPENT legacy guard | 594 (`198 × 3`) | 485 | 470 | +15 | 14 | **PASS** | | `D-ARXIV` | ArXivMath 2026-03 | FRESH (descriptive) | 93 (`31 × 3`) | 23 | 15 | +8 | — | Descriptive only | **Scope & Interpretation:** This is a pre-registered no-damage observed-loss screen, not a claim of general capability superiority or statistical certainty across arbitrary benchmarks. `AIME 2026 I+II` is labelled `AT RISK` (released 14 days before the base model) and `GPQA-Diamond` is a `SPENT legacy guard`. Full protocol details, operating characteristics, Amendment A1, and the separate historical 2026-10-16 candidate record are preserved in [EVALUATION_REPORT.md](./EVALUATION_REPORT.md). --- ## Training & Lineage - **Lineage:** `Qwen/Qwen3.5-9B` → Stage 1 (`sftp_self`: 184 CERTEQ-verified self-draws from 256 `DeepMath-103K` prompts, `2.21M` tokens, 12 steps) → Stage 2 (`roundB_self`: 214 CERTEQ-verified uncapped closed-`` self-draws from 320 prompts, `2.68M` tokens, 13 steps) → BF16 tensor merge. - **LoRA Configuration:** `r=32`, `α=64`, `dropout=0.0`, `lr=5e-5`, `max_length=16,384`, 12 target modules (`q/k/v/o_proj`, `gate/up/down_proj`, and GDN `in_proj_qkv/z/a/b`, `out_proj`), ~3.1 hours total on an NVIDIA GB10. - **Data Provenance:** Trained solely on `DeepMath-103K` (MIT) prompts with the model's own verified generations. No teacher text, no closed-API outputs, no RL stages, and no non-commercial (`CC-BY-NC`) data are in the release lineage. --- ## Safety & Limitations - **Safety Check (Disclosure, Not Certification):** In a paired single-turn check (`k=2`, cap `16,384`, judge `nvidia/nemotron-3-ultra-550b-a55b`, 8/8 controls) on `HarmBench-standard` (`n=200`, MIT) and `XSTest-safe` (`n=250`, CC-BY-4.0), refusal-rate deltas vs. base were indistinguishable from noise (`-0.2 pp [-1.5, +1.0]` and `-0.4 pp [-1.8, +0.8]`). - **Limitations & Intended Use:** - Built for research, evaluation, and local single-GPU reasoning (math, code, science) with human oversight. - **Untested paths:** Multi-turn conversations containing prior `` blocks, tool calling, empty system prompts, thinking-off math/code, and quantized/GGUF formats are not tested or certified. - **Generation caps:** Long reasoning traces can exhaust token budgets; allocate sufficient `max_tokens` (32k–65k for competition math). - **Language coverage:** Evaluated on English/US-style STEM and coding benchmarks only. --- ## License, Attribution & Citation Released under **Apache-2.0**. Built with `Qwen/Qwen3.5-9B` (Apache-2.0, Copyright Qwen team; modification notice: *"LoRA SFT adaptation and continued SFT; merged artifact."*). Training prompts from `DeepMath-103K` (MIT). Safety instruments: `HarmBench` (MIT) and `XSTest` (CC-BY-4.0). ```bibtex @misc{aurelius9b2026, title = {Aurelius-9B}, author = {Christien Antonio}, year = {2026}, howpublished = {Hugging Face}, url = {https://huggingface.co/Aurelien33/Aurelius-9B}, note = {Merged BF16 release} } ``` *Full audit trail & disclosures: [EVALUATION_REPORT.md](./EVALUATION_REPORT.md)*