Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
qwen3.5
reasoning
math
code
lora
merged
conversational
Run this model with HF Jobs
Run Aurelien33/Aurelius-9B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Aurelien33/Aurelius-9B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Aurelien33/Aurelius-9B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Aurelien33/Aurelius-9B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Aurelien33/Aurelius-9B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Aurelien33/Aurelius-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aurelien33/Aurelius-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Aurelien33/Aurelius-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Aurelien33/Aurelius-9B") model = AutoModelForMultimodalLM.from_pretrained("Aurelien33/Aurelius-9B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Aurelien33/Aurelius-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Aurelien33/Aurelius-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aurelien33/Aurelius-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Aurelien33/Aurelius-9B
- SGLang
How to use Aurelien33/Aurelius-9B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Aurelien33/Aurelius-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aurelien33/Aurelius-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Aurelien33/Aurelius-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aurelien33/Aurelius-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Aurelien33/Aurelius-9B with Docker Model Runner:
docker model run hf.co/Aurelien33/Aurelius-9B
|
Download README.md from Aurelien33/Aurelius-9B: direct link, hf CLI and curl.
- Browser
- Download file 7.27 kB
-
https://huggingface.co/Aurelien33/Aurelius-9B/resolve/main/README.md
- Command line
-
hf download hf://Aurelien33/Aurelius-9B/README.md
-
curl -L -o README.md https://huggingface.co/Aurelien33/Aurelius-9B/resolve/main/README.md
7.27 kB
| 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-`</think>` 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 `<think>` 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)* | |