Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
kozu
reasoning
chain-of-thought
instruction-following
sft
fable
mythos
conversational
Instructions to use Michael-Kozu/Deimos-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Michael-Kozu/Deimos-R1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Michael-Kozu/Deimos-R1") 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("Michael-Kozu/Deimos-R1") model = AutoModelForMultimodalLM.from_pretrained("Michael-Kozu/Deimos-R1", 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 Michael-Kozu/Deimos-R1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Michael-Kozu/Deimos-R1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Michael-Kozu/Deimos-R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Michael-Kozu/Deimos-R1
- SGLang
How to use Michael-Kozu/Deimos-R1 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 "Michael-Kozu/Deimos-R1" \ --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": "Michael-Kozu/Deimos-R1", "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 "Michael-Kozu/Deimos-R1" \ --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": "Michael-Kozu/Deimos-R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Michael-Kozu/Deimos-R1 with Docker Model Runner:
docker model run hf.co/Michael-Kozu/Deimos-R1
docs: simplify Deimos R1 release card
Browse files
README.md
CHANGED
|
@@ -138,29 +138,7 @@ language:
|
|
| 138 |
</section>
|
| 139 |
|
| 140 |
<section class="kz-section">
|
| 141 |
-
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-
|
| 142 |
-
<div class="kz-grid">
|
| 143 |
-
<div class="kz-card">
|
| 144 |
-
<div class="kz-card-head">Artifact</div>
|
| 145 |
-
<div class="kz-row"><span class="kz-key">Repository</span><span class="kz-val">Michael-Kozu/Deimos-R1</span></div>
|
| 146 |
-
<div class="kz-row"><span class="kz-key">Architecture</span><span class="kz-val">Qwen3.5 conditional generation</span></div>
|
| 147 |
-
<div class="kz-row"><span class="kz-key">Parameters</span><span class="kz-val">4,539,265,536</span></div>
|
| 148 |
-
<div class="kz-row"><span class="kz-key">Precision</span><span class="kz-val">BF16 · merged weights</span></div>
|
| 149 |
-
<div class="kz-row"><span class="kz-key">Context config</span><span class="kz-val">262,144 positions</span></div>
|
| 150 |
-
</div>
|
| 151 |
-
<div class="kz-card">
|
| 152 |
-
<div class="kz-card-head">Development</div>
|
| 153 |
-
<div class="kz-row"><span class="kz-key">Examples</span><span class="kz-val">10,005</span></div>
|
| 154 |
-
<div class="kz-row"><span class="kz-key">Method</span><span class="kz-val">QLoRA · 1 epoch</span></div>
|
| 155 |
-
<div class="kz-row"><span class="kz-key">Sequence</span><span class="kz-val">6,144 tokens</span></div>
|
| 156 |
-
<div class="kz-row"><span class="kz-key">Compute</span><span class="kz-val">1× NVIDIA GB10 · ~3h</span></div>
|
| 157 |
-
<div class="kz-row"><span class="kz-key">License</span><span class="kz-val">Apache-2.0</span></div>
|
| 158 |
-
</div>
|
| 159 |
-
</div>
|
| 160 |
-
</section>
|
| 161 |
-
|
| 162 |
-
<section class="kz-section">
|
| 163 |
-
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM6 15h3v3H6zm5-5h3v8h-3zm5-4h3v12h-3z"/></svg></span><h2 class="kz-stitle">Evaluation</h2></div><span class="kz-snum">03</span></div>
|
| 164 |
<p class="kz-lead">The table reports matched comparisons under the same open harness, generation budget, sampling settings, and seed. Values are run-local and should not be compared with vendor-published numbers produced by other evaluation stacks.</p>
|
| 165 |
<div class="kz-table-wrap">
|
| 166 |
<table class="kz-table">
|
|
@@ -199,7 +177,7 @@ language:
|
|
| 199 |
</section>
|
| 200 |
|
| 201 |
<section class="kz-section">
|
| 202 |
-
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M7 2h10v2H7zM5 4h14v16H5zm2 2v12h10V6zm2 2h6v2H9zm0 4h6v2H9z"/></svg></span><h2 class="kz-stitle">Data & development</h2></div><span class="kz-snum">
|
| 203 |
<p class="kz-lead"><strong>kozu_reasoning_v1.1</strong> is a roughly 10k-example blend of verified reasoning traces and human-authored instruction data. The release uses a three-layer quality process for the reasoning portion and a dedicated 800-example format-adherence slice.</p>
|
| 204 |
<div class="kz-source"><strong>Reasoning · ~5k</strong><span>Kuiper-R1 expansions of answer-scrubbed human reference solutions from <a href="https://huggingface.co/datasets/openai/gsm8k">GSM8K</a> and <a href="https://huggingface.co/datasets/AI-MO/NuminaMath-1.5">NuminaMath 1.5</a>. Retained traces passed symbolic answer verification, derivation checks, deterministic defect scans, and an adversarial judge panel.</span></div>
|
| 205 |
<div class="kz-source"><strong>Instruction · ~5k</strong><span>Human-authored pairs used from <a href="https://huggingface.co/datasets/databricks/databricks-dolly-15k">Databricks Dolly 15k</a> and <a href="https://huggingface.co/datasets/OpenAssistant/oasst2">OpenAssistant OASST2</a>.</span></div>
|
|
@@ -208,7 +186,7 @@ language:
|
|
| 208 |
</section>
|
| 209 |
|
| 210 |
<section class="kz-section">
|
| 211 |
-
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M3 3h18v18H3zm2 2v14h14V5zm2 3h2v2H7zm3 3h2v2h-2zm-3 3h2v2H7zm6 0h4v2h-4z"/></svg></span><h2 class="kz-stitle">Deployment</h2></div><span class="kz-snum">
|
| 212 |
<p class="kz-copy">The repository includes merged BF16 weights, tokenizer assets, processor configuration, generation configuration, and the model chat template. Thinking is enabled by default and appears inside <code><think>…</think></code> before the final answer.</p>
|
| 213 |
<pre><code>vllm serve Michael-Kozu/Deimos-R1 --served-model-name deimos-r1 \
|
| 214 |
--max-model-len 8192 --gpu-memory-utilization 0.80 --trust-remote-code</code></pre>
|
|
@@ -216,7 +194,7 @@ language:
|
|
| 216 |
</section>
|
| 217 |
|
| 218 |
<section class="kz-section">
|
| 219 |
-
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M11 2h2v2h-2zm-4 2h10v2H7zM5 6h14v14H5zm2 2v10h10V8zm4 2h2v4h-2zm0 6h2v2h-2z"/></svg></span><h2 class="kz-stitle">Limitations</h2></div><span class="kz-snum">
|
| 220 |
<ul class="kz-notes" style="margin-top:0">
|
| 221 |
<li>This is a research preview, not a safety-certified or production-guaranteed system.</li>
|
| 222 |
<li>The strongest evidence covers English reasoning and instruction following. Performance outside those domains is not established here.</li>
|
|
|
|
| 138 |
</section>
|
| 139 |
|
| 140 |
<section class="kz-section">
|
| 141 |
+
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM6 15h3v3H6zm5-5h3v8h-3zm5-4h3v12h-3z"/></svg></span><h2 class="kz-stitle">Evaluation</h2></div><span class="kz-snum">02</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
<p class="kz-lead">The table reports matched comparisons under the same open harness, generation budget, sampling settings, and seed. Values are run-local and should not be compared with vendor-published numbers produced by other evaluation stacks.</p>
|
| 143 |
<div class="kz-table-wrap">
|
| 144 |
<table class="kz-table">
|
|
|
|
| 177 |
</section>
|
| 178 |
|
| 179 |
<section class="kz-section">
|
| 180 |
+
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M7 2h10v2H7zM5 4h14v16H5zm2 2v12h10V6zm2 2h6v2H9zm0 4h6v2H9z"/></svg></span><h2 class="kz-stitle">Data & development</h2></div><span class="kz-snum">03</span></div>
|
| 181 |
<p class="kz-lead"><strong>kozu_reasoning_v1.1</strong> is a roughly 10k-example blend of verified reasoning traces and human-authored instruction data. The release uses a three-layer quality process for the reasoning portion and a dedicated 800-example format-adherence slice.</p>
|
| 182 |
<div class="kz-source"><strong>Reasoning · ~5k</strong><span>Kuiper-R1 expansions of answer-scrubbed human reference solutions from <a href="https://huggingface.co/datasets/openai/gsm8k">GSM8K</a> and <a href="https://huggingface.co/datasets/AI-MO/NuminaMath-1.5">NuminaMath 1.5</a>. Retained traces passed symbolic answer verification, derivation checks, deterministic defect scans, and an adversarial judge panel.</span></div>
|
| 183 |
<div class="kz-source"><strong>Instruction · ~5k</strong><span>Human-authored pairs used from <a href="https://huggingface.co/datasets/databricks/databricks-dolly-15k">Databricks Dolly 15k</a> and <a href="https://huggingface.co/datasets/OpenAssistant/oasst2">OpenAssistant OASST2</a>.</span></div>
|
|
|
|
| 186 |
</section>
|
| 187 |
|
| 188 |
<section class="kz-section">
|
| 189 |
+
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M3 3h18v18H3zm2 2v14h14V5zm2 3h2v2H7zm3 3h2v2h-2zm-3 3h2v2H7zm6 0h4v2h-4z"/></svg></span><h2 class="kz-stitle">Deployment</h2></div><span class="kz-snum">04</span></div>
|
| 190 |
<p class="kz-copy">The repository includes merged BF16 weights, tokenizer assets, processor configuration, generation configuration, and the model chat template. Thinking is enabled by default and appears inside <code><think>…</think></code> before the final answer.</p>
|
| 191 |
<pre><code>vllm serve Michael-Kozu/Deimos-R1 --served-model-name deimos-r1 \
|
| 192 |
--max-model-len 8192 --gpu-memory-utilization 0.80 --trust-remote-code</code></pre>
|
|
|
|
| 194 |
</section>
|
| 195 |
|
| 196 |
<section class="kz-section">
|
| 197 |
+
<div class="kz-shead"><div class="kz-shead-left"><span class="kz-sglyph"><svg class="kz-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M11 2h2v2h-2zm-4 2h10v2H7zM5 6h14v14H5zm2 2v10h10V8zm4 2h2v4h-2zm0 6h2v2h-2z"/></svg></span><h2 class="kz-stitle">Limitations</h2></div><span class="kz-snum">05</span></div>
|
| 198 |
<ul class="kz-notes" style="margin-top:0">
|
| 199 |
<li>This is a research preview, not a safety-certified or production-guaranteed system.</li>
|
| 200 |
<li>The strongest evidence covers English reasoning and instruction following. Performance outside those domains is not established here.</li>
|