Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
fp8
fp8-block
compressed-tensors
llm-compressor
qwen3.5
qwen3.6
Mixture of Experts
mtp
speculative-decoding
vllm
code
reasoning
conversational
Instructions to use shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP") model = AutoModelForMultimodalLM.from_pretrained("shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP") 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP
- SGLang
How to use shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP 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 "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP" \ --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": "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP", "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 "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP" \ --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": "shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP with Docker Model Runner:
docker model run hf.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP
Add files using upload-large-folder tool
Browse files- .gitattributes +4 -0
- README.md +254 -0
- assets/ornith_35b_eval.png +3 -0
- assets/ornith_logo.png +3 -0
- chat_template.jinja +150 -0
- config.json +184 -0
- generation_config.json +13 -0
- model-00001-of-00016.safetensors +3 -0
- model-00002-of-00016.safetensors +3 -0
- model-00003-of-00016.safetensors +3 -0
- model-00004-of-00016.safetensors +3 -0
- model-00005-of-00016.safetensors +3 -0
- model-00006-of-00016.safetensors +3 -0
- model-00007-of-00016.safetensors +3 -0
- model-00008-of-00016.safetensors +3 -0
- model-00009-of-00016.safetensors +3 -0
- model-00010-of-00016.safetensors +3 -0
- model-00011-of-00016.safetensors +3 -0
- model-00012-of-00016.safetensors +3 -0
- model-00013-of-00016.safetensors +3 -0
- model-00014-of-00016.safetensors +3 -0
- model-00015-of-00016.safetensors +3 -0
- model-00016-of-00016.safetensors +3 -0
- model-mtp.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +21 -0
- processor_config.json +60 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
- video_preprocessor_config.json +21 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/ornith_35b_eval.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/ornith_397b_eval.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/ornith_logo.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
license_link: https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B/blob/main/LICENSE
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
base_model:
|
| 7 |
+
- deepreinforce-ai/Ornith-1.0-35B
|
| 8 |
+
- shisa-ai/Ornith-1.0-35B-FP8-BLOCK
|
| 9 |
+
- Qwen/Qwen3.6-35B-A3B
|
| 10 |
+
tags:
|
| 11 |
+
- fp8
|
| 12 |
+
- fp8-block
|
| 13 |
+
- compressed-tensors
|
| 14 |
+
- llm-compressor
|
| 15 |
+
- qwen3.5
|
| 16 |
+
- qwen3.6
|
| 17 |
+
- moe
|
| 18 |
+
- mtp
|
| 19 |
+
- speculative-decoding
|
| 20 |
+
- vllm
|
| 21 |
+
- code
|
| 22 |
+
- reasoning
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
<img width="600px" src="assets/ornith_logo.png">
|
| 26 |
+
|
| 27 |
+
# Ornith-1.0-35B-FP8-BLOCK-MTP
|
| 28 |
+
|
| 29 |
+
This is the official MTP-enabled derivative of
|
| 30 |
+
[`shisa-ai/Ornith-1.0-35B-FP8-BLOCK`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK).
|
| 31 |
+
It keeps the original FP8_BLOCK / `compressed-tensors` Ornith base weights and
|
| 32 |
+
adds a BF16 Qwen3.6 MTP head in `model-mtp.safetensors`.
|
| 33 |
+
|
| 34 |
+
This artifact was built internally as a zero-training Qwen3.6 MTP graft, but the
|
| 35 |
+
public upload name is:
|
| 36 |
+
[`shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP).
|
| 37 |
+
Based on our matched local vLLM tests, this is the recommended Ornith 35B MTP
|
| 38 |
+
checkpoint for throughput. The best measured row used
|
| 39 |
+
`num_speculative_tokens=3` and reached `246.522` output tok/s on our validation
|
| 40 |
+
workload, a `+21.4%` improvement over the no-spec baseline.
|
| 41 |
+
|
| 42 |
+
The MTP recipe was adapted from
|
| 43 |
+
[`protoLabsAI/Ornith-1.0-9B-MTP`](https://huggingface.co/protoLabsAI/Ornith-1.0-9B-MTP),
|
| 44 |
+
which demonstrated grafting a same-family Qwen MTP head into an Ornith
|
| 45 |
+
checkpoint and optionally KL-distilling only the MTP head. Thanks to
|
| 46 |
+
[`protoLabsAI`](https://huggingface.co/protoLabsAI)
|
| 47 |
+
for the MTP graft/distillation technique and base recipe.
|
| 48 |
+
|
| 49 |
+
## What Changed
|
| 50 |
+
|
| 51 |
+
- Base checkpoint: [`shisa-ai/Ornith-1.0-35B-FP8-BLOCK`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK)
|
| 52 |
+
- Donor MTP checkpoint: `Qwen/Qwen3.6-35B-A3B`
|
| 53 |
+
- Added shard: `model-mtp.safetensors`
|
| 54 |
+
- Added tensors: `19` top-level `mtp.*` tensors
|
| 55 |
+
- MTP dtype: BF16
|
| 56 |
+
- Base weights: unchanged FP8_BLOCK / `compressed-tensors`
|
| 57 |
+
- Training: none; this is a direct MTP tensor graft
|
| 58 |
+
|
| 59 |
+
No private training corpus is needed for this checkpoint because it is not
|
| 60 |
+
distilled. The graft copies the donor `mtp.*` tensors into the Ornith FP8_BLOCK
|
| 61 |
+
checkpoint and updates the safetensors index.
|
| 62 |
+
|
| 63 |
+
## Important Result Summary
|
| 64 |
+
|
| 65 |
+
This is the strongest Ornith 35B MTP checkpoint from our local serving tests. It
|
| 66 |
+
also beat the one-epoch Qwen3.6 KL-distilled derivative in matched vLLM serving,
|
| 67 |
+
even though that distilled derivative had a slightly better offline KL proxy.
|
| 68 |
+
|
| 69 |
+
Recommended starting point:
|
| 70 |
+
|
| 71 |
+
- Use `num_speculative_tokens=3` when optimizing for output throughput.
|
| 72 |
+
- Use `num_speculative_tokens=1` or no speculative decoding if your workload is
|
| 73 |
+
more sensitive to inter-token latency or acceptance stability.
|
| 74 |
+
- Re-benchmark on your own traffic before making it a production default.
|
| 75 |
+
|
| 76 |
+
## Local Benchmark Methodology
|
| 77 |
+
|
| 78 |
+
Hardware:
|
| 79 |
+
|
| 80 |
+
- One `NVIDIA RTX PRO 6000 Blackwell Workstation Edition`
|
| 81 |
+
- Single-GPU serving on GPU0 only
|
| 82 |
+
|
| 83 |
+
Runtime:
|
| 84 |
+
|
| 85 |
+
- vLLM `0.23.0`
|
| 86 |
+
- FlashInfer attention backend
|
| 87 |
+
- FP8 KV cache
|
| 88 |
+
- `compressed-tensors` quantization
|
| 89 |
+
- No LMCache for the benchmark rows below
|
| 90 |
+
- `MAX_MODEL_LEN=32768`
|
| 91 |
+
- `MAX_NUM_SEQS=16`
|
| 92 |
+
- `MAX_BATCHED_TOKENS=32768`
|
| 93 |
+
- `MAX_CUDAGRAPH_CAPTURE_SIZE=16`
|
| 94 |
+
- `GPU_MEMORY_UTIL=0.95`
|
| 95 |
+
|
| 96 |
+
Workload:
|
| 97 |
+
|
| 98 |
+
- Private custom validation benchmark derived from local code/agentic prompts
|
| 99 |
+
- `64` requests
|
| 100 |
+
- `63,327` total input tokens
|
| 101 |
+
- `16,384` generated tokens (`256` per request)
|
| 102 |
+
- `max_concurrency=1`
|
| 103 |
+
- `request_rate=inf`
|
| 104 |
+
- `temperature=0.6`, `top_p=0.95`, `top_k=20`
|
| 105 |
+
- `ignore_eos`
|
| 106 |
+
|
| 107 |
+
The private benchmark data is not uploaded. The benchmark used vLLM's
|
| 108 |
+
`bench serve --dataset-name custom` path. To reproduce the command shape with
|
| 109 |
+
your own non-private data, use a JSONL custom dataset with `prompt` and
|
| 110 |
+
`output_tokens` fields and run a command like:
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
CUDA_VISIBLE_DEVICES=0 vllm bench serve \
|
| 114 |
+
--backend vllm \
|
| 115 |
+
--base-url http://127.0.0.1:8000 \
|
| 116 |
+
--endpoint /v1/completions \
|
| 117 |
+
--model ornith-35b-fp8-block-mtp \
|
| 118 |
+
--tokenizer shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP \
|
| 119 |
+
--dataset-name custom \
|
| 120 |
+
--dataset-path /path/to/custom-prompts.jsonl \
|
| 121 |
+
--skip-chat-template \
|
| 122 |
+
--disable-shuffle \
|
| 123 |
+
--no-oversample \
|
| 124 |
+
--num-prompts 64 \
|
| 125 |
+
--custom-output-len -1 \
|
| 126 |
+
--max-concurrency 1 \
|
| 127 |
+
--request-rate inf \
|
| 128 |
+
--temperature 0.6 \
|
| 129 |
+
--top-p 0.95 \
|
| 130 |
+
--top-k 20 \
|
| 131 |
+
--ignore-eos
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
## Local Results
|
| 135 |
+
|
| 136 |
+
Matched c=1 validation-prompt serving results:
|
| 137 |
+
|
| 138 |
+
| Variant | MTP tokens | Output tok/s | Delta vs baseline | Median TTFT ms | Median TPOT ms | Median ITL ms | Acceptance |
|
| 139 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 140 |
+
| Baseline no-spec | 0 | 203.142 | - | 51.722 | 4.647 | 4.648 | - |
|
| 141 |
+
| Official MTP, Qwen3.6 graft | 1 | 221.032 | +8.8% | 60.311 | 4.209 | 7.713 | 85.82% |
|
| 142 |
+
| Official MTP, Qwen3.6 graft | 3 | 246.522 | +21.4% | 65.482 | 3.571 | 10.739 | 66.98% |
|
| 143 |
+
|
| 144 |
+
Comparison against the companion KL-distilled artifact:
|
| 145 |
+
|
| 146 |
+
| Variant | MTP tokens | Output tok/s | Delta vs baseline | Median TTFT ms | Median TPOT ms | Median ITL ms | Acceptance |
|
| 147 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 148 |
+
| Official MTP, Qwen3.6 graft | 3 | 246.522 | +21.4% | 65.482 | 3.571 | 10.739 | 66.98% |
|
| 149 |
+
| Qwen3.6 KL-distill | 3 | 237.581 | +17.0% | 66.581 | 3.625 | 10.861 | 67.11% |
|
| 150 |
+
|
| 151 |
+
The distill checkpoint is planned as
|
| 152 |
+
[`shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP-qwen36-distill`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP-qwen36-distill).
|
| 153 |
+
It improved the offline proxy, but it did not beat this official MTP checkpoint
|
| 154 |
+
in matched serving throughput.
|
| 155 |
+
|
| 156 |
+
Offline proxy on the same validation split:
|
| 157 |
+
|
| 158 |
+
- Official MTP, Qwen3.6 graft: distribution-overlap acceptance proxy `0.841`,
|
| 159 |
+
mean KL `0.3162`
|
| 160 |
+
- Qwen3.6 KL-distill: distribution-overlap acceptance proxy `0.849`, mean KL
|
| 161 |
+
`0.2967`
|
| 162 |
+
|
| 163 |
+
### Internal Alternatives Tested
|
| 164 |
+
|
| 165 |
+
We also tested a Qwen3.5 donor graft, but it is not planned for upload. The
|
| 166 |
+
Qwen3.5 rows were from an earlier MTP1-only ShareGPT sweep, so they are useful
|
| 167 |
+
as donor-selection context rather than a direct replacement for the validation
|
| 168 |
+
table above.
|
| 169 |
+
|
| 170 |
+
| Variant | c | Output tok/s | Delta vs baseline | Median TPOT ms | Acceptance |
|
| 171 |
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 172 |
+
| Baseline no-spec | 1 | 200.340 | - | 4.733 | - |
|
| 173 |
+
| Qwen3.6 MTP1 graft | 1 | 211.736 | +5.7% | 4.296 | 80.63% |
|
| 174 |
+
| Qwen3.5 MTP1 graft | 1 | 213.091 | +6.4% | 4.402 | 77.90% |
|
| 175 |
+
| Baseline no-spec | 4 | 500.689 | - | 6.955 | - |
|
| 176 |
+
| Qwen3.6 MTP1 graft | 4 | 528.654 | +5.6% | 6.443 | 81.42% |
|
| 177 |
+
| Qwen3.5 MTP1 graft | 4 | 531.581 | +6.1% | 6.554 | 76.65% |
|
| 178 |
+
|
| 179 |
+
The Qwen3.5 graft was marginally faster in those MTP1 rows, but it had lower
|
| 180 |
+
acceptance. The later Qwen3.6 validation sweep at MTP3 produced the best retained
|
| 181 |
+
throughput result, so Qwen3.6 is the donor used for the official upload.
|
| 182 |
+
|
| 183 |
+
## vLLM Usage
|
| 184 |
+
|
| 185 |
+
MTP serving requires a vLLM build that supports Qwen3.5 MoE MTP checkpoints.
|
| 186 |
+
The local runs used vLLM `0.23.0`.
|
| 187 |
+
|
| 188 |
+
```bash
|
| 189 |
+
vllm serve shisa-ai/Ornith-1.0-35B-FP8-BLOCK-MTP \
|
| 190 |
+
--served-model-name ornith-35b-fp8-block-mtp \
|
| 191 |
+
--trust-remote-code \
|
| 192 |
+
--quantization compressed-tensors \
|
| 193 |
+
--language-model-only \
|
| 194 |
+
--max-model-len 32768 \
|
| 195 |
+
--gpu-memory-utilization 0.95 \
|
| 196 |
+
--max-num-seqs 16 \
|
| 197 |
+
--max-num-batched-tokens 32768 \
|
| 198 |
+
--max-cudagraph-capture-size 16 \
|
| 199 |
+
--attention-backend flashinfer \
|
| 200 |
+
--kv-cache-dtype fp8 \
|
| 201 |
+
--generation-config vllm \
|
| 202 |
+
--enable-prefix-caching \
|
| 203 |
+
--enable-auto-tool-choice \
|
| 204 |
+
--tool-call-parser qwen3_xml \
|
| 205 |
+
--reasoning-parser qwen3 \
|
| 206 |
+
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
`num_speculative_tokens=3` gave the best local output throughput for this
|
| 210 |
+
checkpoint, but it also reduced acceptance to about `67%` and increased
|
| 211 |
+
inter-token latency relative to no-spec serving. Re-benchmark on your hardware
|
| 212 |
+
and workload before using it as a default.
|
| 213 |
+
|
| 214 |
+
## Quantization Summary
|
| 215 |
+
|
| 216 |
+
The base checkpoint is unchanged from
|
| 217 |
+
[`shisa-ai/Ornith-1.0-35B-FP8-BLOCK`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK):
|
| 218 |
+
|
| 219 |
+
- Source model: [`deepreinforce-ai/Ornith-1.0-35B`](https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B)
|
| 220 |
+
- Quantization tool: `llm-compressor` model-free PTQ
|
| 221 |
+
- Quantization format: `compressed-tensors`
|
| 222 |
+
- Scheme: `FP8_BLOCK`
|
| 223 |
+
- Calibration data: none; this is data-free/model-free PTQ
|
| 224 |
+
- Weight quantization: static FP8, symmetric, block strategy, `128x128` blocks
|
| 225 |
+
- Activation quantization: dynamic FP8, symmetric, group strategy, group size `128`
|
| 226 |
+
- Target modules: `Linear`
|
| 227 |
+
- `compressed-tensors` metadata version recorded in `config.json`: `0.15.1.a20260406`
|
| 228 |
+
|
| 229 |
+
The quantization ignore list includes `re:^mtp.*`, so the grafted MTP head
|
| 230 |
+
remains BF16.
|
| 231 |
+
|
| 232 |
+
## License and Attribution
|
| 233 |
+
|
| 234 |
+
The source Ornith model is MIT licensed. This derivative keeps the source
|
| 235 |
+
license metadata and links to the upstream license file.
|
| 236 |
+
|
| 237 |
+
Attribution:
|
| 238 |
+
|
| 239 |
+
- Source model: [`deepreinforce-ai/Ornith-1.0-35B`](https://huggingface.co/deepreinforce-ai/Ornith-1.0-35B)
|
| 240 |
+
- FP8_BLOCK base: [`shisa-ai/Ornith-1.0-35B-FP8-BLOCK`](https://huggingface.co/shisa-ai/Ornith-1.0-35B-FP8-BLOCK)
|
| 241 |
+
- MTP donor: [`Qwen/Qwen3.6-35B-A3B`](https://huggingface.co/Qwen/Qwen3.6-35B-A3B)
|
| 242 |
+
- MTP graft/distill recipe inspiration:
|
| 243 |
+
[`protoLabsAI/Ornith-1.0-9B-MTP`](https://huggingface.co/protoLabsAI/Ornith-1.0-9B-MTP)
|
| 244 |
+
|
| 245 |
+
If you use the source model, cite the original Ornith release:
|
| 246 |
+
|
| 247 |
+
```bibtex
|
| 248 |
+
@misc{ornith-35b,
|
| 249 |
+
title = {{Ornith-1.0-35B}: Agentic Coding, Open to All},
|
| 250 |
+
url = {https://deep-reinforce.com/ornith_1_0.html},
|
| 251 |
+
author = {{DeepReinforce Team}},
|
| 252 |
+
year = {2026}
|
| 253 |
+
}
|
| 254 |
+
```
|
assets/ornith_35b_eval.png
ADDED
|
Git LFS Details
|
assets/ornith_logo.png
ADDED
|
Git LFS Details
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 101 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 102 |
+
{%- for tool_call in message.tool_calls %}
|
| 103 |
+
{%- if tool_call.function is defined %}
|
| 104 |
+
{%- set tool_call = tool_call.function %}
|
| 105 |
+
{%- endif %}
|
| 106 |
+
{%- if loop.first %}
|
| 107 |
+
{%- if content|trim %}
|
| 108 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 109 |
+
{%- else %}
|
| 110 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 111 |
+
{%- endif %}
|
| 112 |
+
{%- else %}
|
| 113 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 114 |
+
{%- endif %}
|
| 115 |
+
{%- if tool_call.arguments is defined %}
|
| 116 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 117 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 118 |
+
{%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
|
| 119 |
+
{{- args_value }}
|
| 120 |
+
{{- '\n</parameter>\n' }}
|
| 121 |
+
{%- endfor %}
|
| 122 |
+
{%- endif %}
|
| 123 |
+
{{- '</function>\n</tool_call>' }}
|
| 124 |
+
{%- endfor %}
|
| 125 |
+
{%- endif %}
|
| 126 |
+
{{- '<|im_end|>\n' }}
|
| 127 |
+
{%- elif message.role == "tool" %}
|
| 128 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 129 |
+
{{- '<|im_start|>user' }}
|
| 130 |
+
{%- endif %}
|
| 131 |
+
{{- '\n<tool_response>\n' }}
|
| 132 |
+
{{- content }}
|
| 133 |
+
{{- '\n</tool_response>' }}
|
| 134 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 135 |
+
{{- '<|im_end|>\n' }}
|
| 136 |
+
{%- elif loop.last %}
|
| 137 |
+
{{- '<|im_end|>\n' }}
|
| 138 |
+
{%- endif %}
|
| 139 |
+
{%- else %}
|
| 140 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 141 |
+
{%- endif %}
|
| 142 |
+
{%- endfor %}
|
| 143 |
+
{%- if add_generation_prompt %}
|
| 144 |
+
{{- '<|im_start|>assistant\n' }}
|
| 145 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 146 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 147 |
+
{%- else %}
|
| 148 |
+
{{- '<think>\n' }}
|
| 149 |
+
{%- endif %}
|
| 150 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5MoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"bos_token_id": null,
|
| 6 |
+
"dtype": "bfloat16",
|
| 7 |
+
"eos_token_id": 248046,
|
| 8 |
+
"hidden_size": 2048,
|
| 9 |
+
"image_token_id": 248056,
|
| 10 |
+
"model_type": "qwen3_5_moe",
|
| 11 |
+
"pad_token_id": 248044,
|
| 12 |
+
"quantization_config": {
|
| 13 |
+
"config_groups": {
|
| 14 |
+
"FP8_BLOCK": {
|
| 15 |
+
"format": "float-quantized",
|
| 16 |
+
"input_activations": {
|
| 17 |
+
"actorder": null,
|
| 18 |
+
"block_structure": null,
|
| 19 |
+
"dynamic": true,
|
| 20 |
+
"group_size": 128,
|
| 21 |
+
"num_bits": 8,
|
| 22 |
+
"observer": null,
|
| 23 |
+
"observer_kwargs": {},
|
| 24 |
+
"scale_dtype": null,
|
| 25 |
+
"strategy": "group",
|
| 26 |
+
"symmetric": true,
|
| 27 |
+
"type": "float",
|
| 28 |
+
"zp_dtype": null
|
| 29 |
+
},
|
| 30 |
+
"output_activations": null,
|
| 31 |
+
"targets": [
|
| 32 |
+
"Linear"
|
| 33 |
+
],
|
| 34 |
+
"weights": {
|
| 35 |
+
"actorder": null,
|
| 36 |
+
"block_structure": [
|
| 37 |
+
128,
|
| 38 |
+
128
|
| 39 |
+
],
|
| 40 |
+
"dynamic": false,
|
| 41 |
+
"group_size": null,
|
| 42 |
+
"num_bits": 8,
|
| 43 |
+
"observer": "memoryless_minmax",
|
| 44 |
+
"observer_kwargs": {},
|
| 45 |
+
"scale_dtype": null,
|
| 46 |
+
"strategy": "block",
|
| 47 |
+
"symmetric": true,
|
| 48 |
+
"type": "float",
|
| 49 |
+
"zp_dtype": null
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
"format": "float-quantized",
|
| 54 |
+
"global_compression_ratio": null,
|
| 55 |
+
"ignore": [
|
| 56 |
+
"re:.*lm_head$",
|
| 57 |
+
"re:.*embed_tokens$",
|
| 58 |
+
"re:.*visual.*",
|
| 59 |
+
"re:.*mlp\\.gate$",
|
| 60 |
+
"re:.*mlp\\.shared_expert_gate$",
|
| 61 |
+
"re:.*linear_attn.*",
|
| 62 |
+
"re:^mtp.*"
|
| 63 |
+
],
|
| 64 |
+
"kv_cache_scheme": null,
|
| 65 |
+
"quant_method": "compressed-tensors",
|
| 66 |
+
"quantization_status": "compressed",
|
| 67 |
+
"transform_config": {},
|
| 68 |
+
"version": "0.15.1.a20260406"
|
| 69 |
+
},
|
| 70 |
+
"text_config": {
|
| 71 |
+
"attention_bias": false,
|
| 72 |
+
"attention_dropout": 0.0,
|
| 73 |
+
"attn_output_gate": true,
|
| 74 |
+
"bos_token_id": 248044,
|
| 75 |
+
"dtype": "bfloat16",
|
| 76 |
+
"eos_token_id": 248044,
|
| 77 |
+
"full_attention_interval": 4,
|
| 78 |
+
"head_dim": 256,
|
| 79 |
+
"hidden_act": "silu",
|
| 80 |
+
"hidden_size": 2048,
|
| 81 |
+
"initializer_range": 0.02,
|
| 82 |
+
"layer_types": [
|
| 83 |
+
"linear_attention",
|
| 84 |
+
"linear_attention",
|
| 85 |
+
"linear_attention",
|
| 86 |
+
"full_attention",
|
| 87 |
+
"linear_attention",
|
| 88 |
+
"linear_attention",
|
| 89 |
+
"linear_attention",
|
| 90 |
+
"full_attention",
|
| 91 |
+
"linear_attention",
|
| 92 |
+
"linear_attention",
|
| 93 |
+
"linear_attention",
|
| 94 |
+
"full_attention",
|
| 95 |
+
"linear_attention",
|
| 96 |
+
"linear_attention",
|
| 97 |
+
"linear_attention",
|
| 98 |
+
"full_attention",
|
| 99 |
+
"linear_attention",
|
| 100 |
+
"linear_attention",
|
| 101 |
+
"linear_attention",
|
| 102 |
+
"full_attention",
|
| 103 |
+
"linear_attention",
|
| 104 |
+
"linear_attention",
|
| 105 |
+
"linear_attention",
|
| 106 |
+
"full_attention",
|
| 107 |
+
"linear_attention",
|
| 108 |
+
"linear_attention",
|
| 109 |
+
"linear_attention",
|
| 110 |
+
"full_attention",
|
| 111 |
+
"linear_attention",
|
| 112 |
+
"linear_attention",
|
| 113 |
+
"linear_attention",
|
| 114 |
+
"full_attention",
|
| 115 |
+
"linear_attention",
|
| 116 |
+
"linear_attention",
|
| 117 |
+
"linear_attention",
|
| 118 |
+
"full_attention",
|
| 119 |
+
"linear_attention",
|
| 120 |
+
"linear_attention",
|
| 121 |
+
"linear_attention",
|
| 122 |
+
"full_attention"
|
| 123 |
+
],
|
| 124 |
+
"linear_conv_kernel_dim": 4,
|
| 125 |
+
"linear_key_head_dim": 128,
|
| 126 |
+
"linear_num_key_heads": 16,
|
| 127 |
+
"linear_num_value_heads": 32,
|
| 128 |
+
"linear_value_head_dim": 128,
|
| 129 |
+
"mamba_ssm_dtype": "float32",
|
| 130 |
+
"max_position_embeddings": 262144,
|
| 131 |
+
"model_type": "qwen3_5_moe_text",
|
| 132 |
+
"moe_intermediate_size": 512,
|
| 133 |
+
"mtp_num_hidden_layers": 1,
|
| 134 |
+
"mtp_use_dedicated_embeddings": false,
|
| 135 |
+
"num_attention_heads": 16,
|
| 136 |
+
"num_experts": 256,
|
| 137 |
+
"num_experts_per_tok": 8,
|
| 138 |
+
"num_hidden_layers": 40,
|
| 139 |
+
"num_key_value_heads": 2,
|
| 140 |
+
"output_router_logits": false,
|
| 141 |
+
"pad_token_id": 248044,
|
| 142 |
+
"partial_rotary_factor": 0.25,
|
| 143 |
+
"rms_norm_eps": 1e-06,
|
| 144 |
+
"rope_parameters": {
|
| 145 |
+
"mrope_interleaved": true,
|
| 146 |
+
"mrope_section": [
|
| 147 |
+
11,
|
| 148 |
+
11,
|
| 149 |
+
10
|
| 150 |
+
],
|
| 151 |
+
"partial_rotary_factor": 0.25,
|
| 152 |
+
"rope_theta": 10000000,
|
| 153 |
+
"rope_type": "default"
|
| 154 |
+
},
|
| 155 |
+
"router_aux_loss_coef": 0.0,
|
| 156 |
+
"shared_expert_intermediate_size": 512,
|
| 157 |
+
"tie_word_embeddings": false,
|
| 158 |
+
"use_cache": false,
|
| 159 |
+
"vocab_size": 248320
|
| 160 |
+
},
|
| 161 |
+
"tie_word_embeddings": false,
|
| 162 |
+
"transformers_version": "5.8.1",
|
| 163 |
+
"use_cache": false,
|
| 164 |
+
"video_token_id": 248057,
|
| 165 |
+
"vision_config": {
|
| 166 |
+
"deepstack_visual_indexes": [],
|
| 167 |
+
"depth": 27,
|
| 168 |
+
"dtype": "bfloat16",
|
| 169 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 170 |
+
"hidden_size": 1152,
|
| 171 |
+
"in_channels": 3,
|
| 172 |
+
"initializer_range": 0.02,
|
| 173 |
+
"intermediate_size": 4304,
|
| 174 |
+
"model_type": "qwen3_5_moe_vision",
|
| 175 |
+
"num_heads": 16,
|
| 176 |
+
"num_position_embeddings": 2304,
|
| 177 |
+
"out_hidden_size": 2048,
|
| 178 |
+
"patch_size": 16,
|
| 179 |
+
"spatial_merge_size": 2,
|
| 180 |
+
"temporal_patch_size": 2
|
| 181 |
+
},
|
| 182 |
+
"vision_end_token_id": 248054,
|
| 183 |
+
"vision_start_token_id": 248053
|
| 184 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 248044,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
248046,
|
| 6 |
+
248044
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 248044,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "5.8.1"
|
| 13 |
+
}
|
model-00001-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6acc6ee4849edd4144463fdc4af79ef44806508061ee4235cd3686829843997
|
| 3 |
+
size 3247489288
|
model-00002-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:225dc3ac6d6a2a49c522e9964f896ca4106282fc7e2b0077ff7ffde7f5550d13
|
| 3 |
+
size 2323081312
|
model-00003-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f99e18083610d798ae8e954e44cbf98f6ed56863f77842a60b43a79d7b8ebbb
|
| 3 |
+
size 2564352640
|
model-00004-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab5b34d6ecedaa09554598718b5f0def2401a5a14ec7e6955a6724d99d94b339
|
| 3 |
+
size 2050333072
|
model-00005-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1dfff8f0b5361f5b7c4373c4a90126964d5337659d9356d198ed7707a5f51e
|
| 3 |
+
size 2323088704
|
model-00006-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2853acef01bd1fbcf925ab972888e3c8b4b00433d2c2324d0828c7adbd4f2df5
|
| 3 |
+
size 2564357296
|
model-00007-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90b2948a6e7484e4eae7395dffc70ec6dfa0b383c3513fc5f0a3d5a3ac1d1401
|
| 3 |
+
size 2050336704
|
model-00008-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:373bfacbd888b63fa7731ca9e45f9df15888ef40d2dc42be667ee54bd6213ff3
|
| 3 |
+
size 2323085472
|
model-00009-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3984e7317bb31ba9dc8f716696f533847ece00ba59eb5a8749fb531f3205a59
|
| 3 |
+
size 2564357296
|
model-00010-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a18765cf02a02d22a3f0eb646b485810c79f80ed8ff40e75fdd7a9359bd681f2
|
| 3 |
+
size 2050336704
|
model-00011-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f78937cc1446ccdb4d8936add82c5d0766a203837d39eb351c856fbb19a7b7e3
|
| 3 |
+
size 2323085472
|
model-00012-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1913e8003d0989325096afdc492b7b57b76216cbf00fae74d5c00f60e3b4f382
|
| 3 |
+
size 2564357296
|
model-00013-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:583b508b8b3bf012b1fa1e27b8e32b9e85dac36e278a85ad5c4a18eaaaa28c9d
|
| 3 |
+
size 2050336704
|
model-00014-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e27f78fc0e8e97a3b75d6b7d5f3c2fa07027aed9900dbce27cd6a197430ee478
|
| 3 |
+
size 2323085472
|
model-00015-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7a8bcbbc3c916063f63f627752ac69e72a0469a3552af4ed72f7d2e33a3b991
|
| 3 |
+
size 2564357296
|
model-00016-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54ce9cc09bbff21d75ddbec413be4452bf4e32ba02427e99e96ceaff8e505aa0
|
| 3 |
+
size 1730271792
|
model-mtp.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62e6f4b910fd5ff7594e85863fe28cfd0177890c8251655ee9bcbc35a208d78b
|
| 3 |
+
size 1689283688
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 16777216,
|
| 4 |
+
"shortest_edge": 65536
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 16777216,
|
| 24 |
+
"shortest_edge": 65536
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen3VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"do_convert_rgb": true,
|
| 31 |
+
"do_normalize": true,
|
| 32 |
+
"do_rescale": true,
|
| 33 |
+
"do_resize": true,
|
| 34 |
+
"do_sample_frames": true,
|
| 35 |
+
"fps": 2,
|
| 36 |
+
"image_mean": [
|
| 37 |
+
0.5,
|
| 38 |
+
0.5,
|
| 39 |
+
0.5
|
| 40 |
+
],
|
| 41 |
+
"image_std": [
|
| 42 |
+
0.5,
|
| 43 |
+
0.5,
|
| 44 |
+
0.5
|
| 45 |
+
],
|
| 46 |
+
"max_frames": 768,
|
| 47 |
+
"merge_size": 2,
|
| 48 |
+
"min_frames": 4,
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"resample": 3,
|
| 51 |
+
"rescale_factor": 0.00392156862745098,
|
| 52 |
+
"return_metadata": false,
|
| 53 |
+
"size": {
|
| 54 |
+
"longest_edge": 25165824,
|
| 55 |
+
"shortest_edge": 4096
|
| 56 |
+
},
|
| 57 |
+
"temporal_patch_size": 2,
|
| 58 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 59 |
+
}
|
| 60 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"processor_class": "Qwen3VLProcessor",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null,
|
| 30 |
+
"video_token": "<|video_pad|>",
|
| 31 |
+
"vision_bos_token": "<|vision_start|>",
|
| 32 |
+
"vision_eos_token": "<|vision_end|>"
|
| 33 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 25165824,
|
| 4 |
+
"shortest_edge": 4096
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 21 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|