Image-Text-to-Text
MLX
Safetensors
qwen3_5_moe
mlx-vlm
mtplx
qwen3.5
Mixture of Experts
vision
speculative-decoding
apple-silicon
conversational
4-bit precision
Instructions to use Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx") config = load_config("Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- BUILD_RECIPE.json +102 -0
- README.md +63 -0
- RELEASE_MANIFEST.json +192 -0
- SHA256SUMS +34 -0
- chat_template.jinja +150 -0
- config.json +959 -0
- configuration.json +1 -0
- conversion_receipt.json +96 -0
- generation_config.json +12 -0
- merges.txt +0 -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-vision-00001-of-00001.safetensors +3 -0
- model.safetensors.index.json +0 -0
- mtp/weights.safetensors +3 -0
- mtplx_runtime.json +55 -0
- preprocessor_config.json +21 -0
- processor_config.json +60 -0
- tokenizer.json +3 -0
- tokenizer_config.json +305 -0
- video_preprocessor_config.json +21 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
BUILD_RECIPE.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_id": "qwen35-moe-ornith15-quant-matrix-v1",
|
| 3 |
+
"architecture_signature": {
|
| 4 |
+
"full_attention_layers": 10,
|
| 5 |
+
"layer_types": [
|
| 6 |
+
"linear_attention",
|
| 7 |
+
"linear_attention",
|
| 8 |
+
"linear_attention",
|
| 9 |
+
"full_attention",
|
| 10 |
+
"linear_attention",
|
| 11 |
+
"linear_attention",
|
| 12 |
+
"linear_attention",
|
| 13 |
+
"full_attention",
|
| 14 |
+
"linear_attention",
|
| 15 |
+
"linear_attention",
|
| 16 |
+
"linear_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"linear_attention",
|
| 19 |
+
"linear_attention",
|
| 20 |
+
"linear_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"full_attention"
|
| 46 |
+
],
|
| 47 |
+
"layers": 40,
|
| 48 |
+
"linear_attention_layers": 30,
|
| 49 |
+
"model_type": "qwen3_5_moe",
|
| 50 |
+
"num_experts": 256,
|
| 51 |
+
"num_experts_per_tok": 8,
|
| 52 |
+
"text_model_type": "qwen3_5_moe_text"
|
| 53 |
+
},
|
| 54 |
+
"body_bits": 4,
|
| 55 |
+
"body_group_size": 32,
|
| 56 |
+
"body_mode": "affine",
|
| 57 |
+
"expected_float_exclusions": 60,
|
| 58 |
+
"expected_q4_modules": 372,
|
| 59 |
+
"expected_q8_modules": 80,
|
| 60 |
+
"expected_quantizable_modules": 512,
|
| 61 |
+
"module_overrides": [
|
| 62 |
+
{
|
| 63 |
+
"precision": "bf16",
|
| 64 |
+
"quantize": false,
|
| 65 |
+
"suffix": "linear_attn.in_proj_a"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"precision": "bf16",
|
| 69 |
+
"quantize": false,
|
| 70 |
+
"suffix": "linear_attn.in_proj_b"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"bits": 8,
|
| 74 |
+
"group_size": 64,
|
| 75 |
+
"mode": "affine",
|
| 76 |
+
"suffix": "mlp.gate"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"bits": 8,
|
| 80 |
+
"group_size": 64,
|
| 81 |
+
"mode": "affine",
|
| 82 |
+
"suffix": "mlp.shared_expert_gate"
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"mtp_depth": "runtime-qualified",
|
| 86 |
+
"mtp_policy": "same-parent-bf16-sidecar",
|
| 87 |
+
"profile": "control-candidate",
|
| 88 |
+
"recipe_id": "affine4-router8-bf16-recurrence",
|
| 89 |
+
"recipe_version": 1,
|
| 90 |
+
"source_signature": {
|
| 91 |
+
"indexed_tensors": 1811,
|
| 92 |
+
"mtp_tensors": 785,
|
| 93 |
+
"recurrent_a_weights": 30,
|
| 94 |
+
"recurrent_b_weights": 30,
|
| 95 |
+
"vision_tensors": 333
|
| 96 |
+
},
|
| 97 |
+
"vision_policy": "same-parent-bf16-preserve",
|
| 98 |
+
"artifact_name": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 99 |
+
"source_model": "ornith-ai/Ornith-1.5-35B-A3B",
|
| 100 |
+
"source_revision": "fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 101 |
+
"release_repo": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx"
|
| 102 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
license_link: https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B/blob/fbb995a79eedd569a5edc5f2af9644c0fa1124fc/LICENSE
|
| 4 |
+
base_model:
|
| 5 |
+
- ornith-ai/Ornith-1.5-35B-A3B
|
| 6 |
+
base_model_relation: quantized
|
| 7 |
+
library_name: mlx
|
| 8 |
+
pipeline_tag: image-text-to-text
|
| 9 |
+
tags:
|
| 10 |
+
- mlx
|
| 11 |
+
- mlx-vlm
|
| 12 |
+
- mtplx
|
| 13 |
+
- qwen3.5
|
| 14 |
+
- moe
|
| 15 |
+
- vision
|
| 16 |
+
- speculative-decoding
|
| 17 |
+
- apple-silicon
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx
|
| 21 |
+
|
| 22 |
+
Affine 4-bit language body with 8-bit MoE router gates and recurrent-state inputs retained in BF16, plus BF16 vision and native BF16 MTP. Built from [ornith-ai/Ornith-1.5-35B-A3B](https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B) revision [`fbb995a`](https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B/tree/fbb995a79eedd569a5edc5f2af9644c0fa1124fc) for Apple Silicon.
|
| 23 |
+
|
| 24 |
+
## Format
|
| 25 |
+
|
| 26 |
+
- Logical size: 24.29 GB
|
| 27 |
+
- Qwen3.5 MoE multimodal: 35B total parameters, 3B active
|
| 28 |
+
- Language body: affine 4-bit/group-32 with 80 MoE router gates at affine 8-bit/group-64; 60 recurrent input modules retained in BF16
|
| 29 |
+
- Vision: 333 same-parent BF16 tensors
|
| 30 |
+
- MTP: 785 same-parent BF16 tensors in `mtp/weights.safetensors`
|
| 31 |
+
- Context metadata: 262,144 tokens
|
| 32 |
+
- Tokenizer, chat template, and image/video processor metadata preserved
|
| 33 |
+
|
| 34 |
+
The fail-closed precision recipe and conversion assertions are included in `BUILD_RECIPE.json` and `conversion_receipt.json`.
|
| 35 |
+
|
| 36 |
+
The matched AR/D1/D2/D3 sweep selected **D1** at 118.50 decode tok/s on the qualification host.
|
| 37 |
+
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
mtplx serve \
|
| 42 |
+
--model Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx \
|
| 43 |
+
--profile turbo \
|
| 44 |
+
--generation-mode mtp \
|
| 45 |
+
--load-mtp \
|
| 46 |
+
--depth 1
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
python -m mlx_vlm.generate \
|
| 51 |
+
--model Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx \
|
| 52 |
+
--image image.jpg \
|
| 53 |
+
--prompt "Describe this image." \
|
| 54 |
+
--max-tokens 256
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Qualification and limitations
|
| 58 |
+
|
| 59 |
+
- Structural loading, deterministic text, vision, and MTPLX tensor gates passed locally.
|
| 60 |
+
- This control quant is experimental; behavior may differ from the BF16 parent and the higher-precision hybrid.
|
| 61 |
+
- Full BF16 parent parity was not run on the 64 GiB qualification host.
|
| 62 |
+
- Post-publication Shiftedx Bench results will be attached to the immutable evaluated weight revision.
|
| 63 |
+
- Review the [upstream model card](https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B) for intended use, training details, license, and safety considerations.
|
RELEASE_MANIFEST.json
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_name": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 3 |
+
"repo_id": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 4 |
+
"source_model": "ornith-ai/Ornith-1.5-35B-A3B",
|
| 5 |
+
"source_revision": "fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 6 |
+
"recipe": "Affine 4-bit + router 8-bit + BF16 recurrence control",
|
| 7 |
+
"qualification": "locally-qualified-experimental",
|
| 8 |
+
"structure": {
|
| 9 |
+
"quantized_modules": 452,
|
| 10 |
+
"affine8_modules": 80,
|
| 11 |
+
"affine4_modules": 372,
|
| 12 |
+
"bf16_recurrent_inputs": 60,
|
| 13 |
+
"vision_tensors": 333,
|
| 14 |
+
"mtp_tensors": 785,
|
| 15 |
+
"indexed_shards": 17
|
| 16 |
+
},
|
| 17 |
+
"staged_at": "2026-08-19T19:39:53+00:00",
|
| 18 |
+
"file_count": 34,
|
| 19 |
+
"total_bytes": 24285012018,
|
| 20 |
+
"files": [
|
| 21 |
+
{
|
| 22 |
+
"path": "BUILD_RECIPE.json",
|
| 23 |
+
"size": 2716,
|
| 24 |
+
"sha256": "7fac1b87818cda5dc3e399b46f3bc1f1b089c65ea2628c06434ecc64ed610f8e"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"path": "README.md",
|
| 28 |
+
"size": 2432,
|
| 29 |
+
"sha256": "7d40810e2f9c588a9606c4a5388d35a58fe08cf7b14177db5eae4bd9edeb6f2c"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"path": "chat_template.jinja",
|
| 33 |
+
"size": 7536,
|
| 34 |
+
"sha256": "182e77dd83bd8e9ca818b240b82e28f243762cd5dda32e6eef327df7b1cd107e"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"path": "config.json",
|
| 38 |
+
"size": 24863,
|
| 39 |
+
"sha256": "9068fb8e783b971df25bba6e372379f7b0a65f275c0dc5d0d5c54bd04c60d782"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"path": "configuration.json",
|
| 43 |
+
"size": 58,
|
| 44 |
+
"sha256": "c1b09db419119513247e9b8b912c4b9897106c9b20c6cada7e107d993c5435eb"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"path": "conversion_receipt.json",
|
| 48 |
+
"size": 2864,
|
| 49 |
+
"sha256": "c3fd7724c0e85aa48dd3e77bbb546ab5a7b815499ba6e737b8ae2ced483b4669"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"path": "generation_config.json",
|
| 53 |
+
"size": 202,
|
| 54 |
+
"sha256": "e70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"path": "merges.txt",
|
| 58 |
+
"size": 3353259,
|
| 59 |
+
"sha256": "a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"path": "model-00001-of-00016.safetensors",
|
| 63 |
+
"size": 1204383247,
|
| 64 |
+
"sha256": "9972f4d4b3af487ce73524077e20b0c42fb5583eb580fb58ae217e4ed4d0e7c2"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"path": "model-00002-of-00016.safetensors",
|
| 68 |
+
"size": 1241660582,
|
| 69 |
+
"sha256": "0dc685ed5e81521ea572fff851b5c740f7c4929050efb3a30448fa211c0d1a48"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"path": "model-00003-of-00016.safetensors",
|
| 73 |
+
"size": 1557632078,
|
| 74 |
+
"sha256": "efafa965f93e5600f908b3c0758f5df74643f634372bc130f104aac1998c35b4"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"path": "model-00004-of-00016.safetensors",
|
| 78 |
+
"size": 1409428926,
|
| 79 |
+
"sha256": "0de9b36da58514a63e17cf0586875373f2de4477e1636b3831486f538c3ab1d9"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"path": "model-00005-of-00016.safetensors",
|
| 83 |
+
"size": 1241660684,
|
| 84 |
+
"sha256": "83a7d46f34709417c3c983cd009dfd04c3e62d48f94935091030828a3a490f31"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"path": "model-00006-of-00016.safetensors",
|
| 88 |
+
"size": 1557632128,
|
| 89 |
+
"sha256": "0cfb554dc2e8adef4ba75291fd19c3ea4d361bbb5532399acd8390f889905340"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"path": "model-00007-of-00016.safetensors",
|
| 93 |
+
"size": 1409429086,
|
| 94 |
+
"sha256": "0b2579f6eadb4454df2a114f1879a69bed3805dd5276b5b72732fd96647a75f4"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"path": "model-00008-of-00016.safetensors",
|
| 98 |
+
"size": 1241660794,
|
| 99 |
+
"sha256": "40e1fe64a7765565ec3b95e43d9f73fb4afea163b878445505b762fc6cf187fb"
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"path": "model-00009-of-00016.safetensors",
|
| 103 |
+
"size": 1557632192,
|
| 104 |
+
"sha256": "240ab5195cf227f0698431cba0cb48cf9a8dd6a6256be56caa3887c0b91907e4"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"path": "model-00010-of-00016.safetensors",
|
| 108 |
+
"size": 1409428994,
|
| 109 |
+
"sha256": "b857d803e9feb576bb636548bbf633887c910521bb06d5d1361b8df9b3df9a8b"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"path": "model-00011-of-00016.safetensors",
|
| 113 |
+
"size": 1241660694,
|
| 114 |
+
"sha256": "c48512b3df7a9cbbf0a513485692ccbda9607222ef4c08ac3ba813dff4f2f226"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"path": "model-00012-of-00016.safetensors",
|
| 118 |
+
"size": 1557632126,
|
| 119 |
+
"sha256": "13c7856bdd76b220e219523d83f12cdcb4db1620c27d0d146e99fb2ee62a444a"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"path": "model-00013-of-00016.safetensors",
|
| 123 |
+
"size": 1409429118,
|
| 124 |
+
"sha256": "c32facde86e275a624dcec1e26bb98143d81378673add5435ce6ea0597ce322d"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"path": "model-00014-of-00016.safetensors",
|
| 128 |
+
"size": 1241660734,
|
| 129 |
+
"sha256": "492d46520ccb004a7e77e9fb49072a625aeca775f97c1af131bcdd13ccf5cb61"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"path": "model-00015-of-00016.safetensors",
|
| 133 |
+
"size": 1557632166,
|
| 134 |
+
"sha256": "52cd8aeddbca3c25ff0511495ee46e151ad787c427ef4735b8336cab02b0b00a"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"path": "model-00016-of-00016.safetensors",
|
| 138 |
+
"size": 840749811,
|
| 139 |
+
"sha256": "ddbda98a53ec88f9ae3da2d1141edd0dcda4a237130b15e86625f5d25e2be0f5"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"path": "model-vision-00001-of-00001.safetensors",
|
| 143 |
+
"size": 893179493,
|
| 144 |
+
"sha256": "ce387e11510de90772c482840c6d2bb8df1fe0f2d280b02cfea8484d04007f6b"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"path": "model.safetensors.index.json",
|
| 148 |
+
"size": 197539,
|
| 149 |
+
"sha256": "f02ea76b6d5e2c53d78bc0371b4ec8b4ae1db08481938ed1496e45ec05ba87c0"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"path": "mtp/weights.safetensors",
|
| 153 |
+
"size": 1689375998,
|
| 154 |
+
"sha256": "33a4a0693757980c1c18cbbeba4d5f68922e084727d6e21dec33593b99f8733c"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"path": "mtplx_runtime.json",
|
| 158 |
+
"size": 2273,
|
| 159 |
+
"sha256": "d39694d5bc3c8cf5427dd2e5107a021f0fb959240f132603e4231a6d7602dc3d"
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"path": "preprocessor_config.json",
|
| 163 |
+
"size": 390,
|
| 164 |
+
"sha256": "27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"path": "processor_config.json",
|
| 168 |
+
"size": 1191,
|
| 169 |
+
"sha256": "d89ef49ce9cd37fbf510158e13c1ef063d9286411c1ec9049932dbe0487143b1"
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"path": "tokenizer.json",
|
| 173 |
+
"size": 12807982,
|
| 174 |
+
"sha256": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42"
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"path": "tokenizer_config.json",
|
| 178 |
+
"size": 16718,
|
| 179 |
+
"sha256": "5186f0defcd7f232382c7f0aebcd2252d073bb921ab240e407b7ae8745d2b29b"
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"path": "video_preprocessor_config.json",
|
| 183 |
+
"size": 385,
|
| 184 |
+
"sha256": "7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"path": "vocab.json",
|
| 188 |
+
"size": 6722759,
|
| 189 |
+
"sha256": "ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003"
|
| 190 |
+
}
|
| 191 |
+
]
|
| 192 |
+
}
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
7fac1b87818cda5dc3e399b46f3bc1f1b089c65ea2628c06434ecc64ed610f8e BUILD_RECIPE.json
|
| 2 |
+
7d40810e2f9c588a9606c4a5388d35a58fe08cf7b14177db5eae4bd9edeb6f2c README.md
|
| 3 |
+
182e77dd83bd8e9ca818b240b82e28f243762cd5dda32e6eef327df7b1cd107e chat_template.jinja
|
| 4 |
+
9068fb8e783b971df25bba6e372379f7b0a65f275c0dc5d0d5c54bd04c60d782 config.json
|
| 5 |
+
c1b09db419119513247e9b8b912c4b9897106c9b20c6cada7e107d993c5435eb configuration.json
|
| 6 |
+
c3fd7724c0e85aa48dd3e77bbb546ab5a7b815499ba6e737b8ae2ced483b4669 conversion_receipt.json
|
| 7 |
+
e70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e generation_config.json
|
| 8 |
+
a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d merges.txt
|
| 9 |
+
9972f4d4b3af487ce73524077e20b0c42fb5583eb580fb58ae217e4ed4d0e7c2 model-00001-of-00016.safetensors
|
| 10 |
+
0dc685ed5e81521ea572fff851b5c740f7c4929050efb3a30448fa211c0d1a48 model-00002-of-00016.safetensors
|
| 11 |
+
efafa965f93e5600f908b3c0758f5df74643f634372bc130f104aac1998c35b4 model-00003-of-00016.safetensors
|
| 12 |
+
0de9b36da58514a63e17cf0586875373f2de4477e1636b3831486f538c3ab1d9 model-00004-of-00016.safetensors
|
| 13 |
+
83a7d46f34709417c3c983cd009dfd04c3e62d48f94935091030828a3a490f31 model-00005-of-00016.safetensors
|
| 14 |
+
0cfb554dc2e8adef4ba75291fd19c3ea4d361bbb5532399acd8390f889905340 model-00006-of-00016.safetensors
|
| 15 |
+
0b2579f6eadb4454df2a114f1879a69bed3805dd5276b5b72732fd96647a75f4 model-00007-of-00016.safetensors
|
| 16 |
+
40e1fe64a7765565ec3b95e43d9f73fb4afea163b878445505b762fc6cf187fb model-00008-of-00016.safetensors
|
| 17 |
+
240ab5195cf227f0698431cba0cb48cf9a8dd6a6256be56caa3887c0b91907e4 model-00009-of-00016.safetensors
|
| 18 |
+
b857d803e9feb576bb636548bbf633887c910521bb06d5d1361b8df9b3df9a8b model-00010-of-00016.safetensors
|
| 19 |
+
c48512b3df7a9cbbf0a513485692ccbda9607222ef4c08ac3ba813dff4f2f226 model-00011-of-00016.safetensors
|
| 20 |
+
13c7856bdd76b220e219523d83f12cdcb4db1620c27d0d146e99fb2ee62a444a model-00012-of-00016.safetensors
|
| 21 |
+
c32facde86e275a624dcec1e26bb98143d81378673add5435ce6ea0597ce322d model-00013-of-00016.safetensors
|
| 22 |
+
492d46520ccb004a7e77e9fb49072a625aeca775f97c1af131bcdd13ccf5cb61 model-00014-of-00016.safetensors
|
| 23 |
+
52cd8aeddbca3c25ff0511495ee46e151ad787c427ef4735b8336cab02b0b00a model-00015-of-00016.safetensors
|
| 24 |
+
ddbda98a53ec88f9ae3da2d1141edd0dcda4a237130b15e86625f5d25e2be0f5 model-00016-of-00016.safetensors
|
| 25 |
+
ce387e11510de90772c482840c6d2bb8df1fe0f2d280b02cfea8484d04007f6b model-vision-00001-of-00001.safetensors
|
| 26 |
+
f02ea76b6d5e2c53d78bc0371b4ec8b4ae1db08481938ed1496e45ec05ba87c0 model.safetensors.index.json
|
| 27 |
+
33a4a0693757980c1c18cbbeba4d5f68922e084727d6e21dec33593b99f8733c mtp/weights.safetensors
|
| 28 |
+
d39694d5bc3c8cf5427dd2e5107a021f0fb959240f132603e4231a6d7602dc3d mtplx_runtime.json
|
| 29 |
+
27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.json
|
| 30 |
+
d89ef49ce9cd37fbf510158e13c1ef063d9286411c1ec9049932dbe0487143b1 processor_config.json
|
| 31 |
+
5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42 tokenizer.json
|
| 32 |
+
5186f0defcd7f232382c7f0aebcd2252d073bb921ab240e407b7ae8745d2b29b tokenizer_config.json
|
| 33 |
+
7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13 video_preprocessor_config.json
|
| 34 |
+
ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003 vocab.json
|
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,959 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"text_config": {
|
| 13 |
+
"attention_bias": false,
|
| 14 |
+
"attention_dropout": 0.0,
|
| 15 |
+
"attn_output_gate": true,
|
| 16 |
+
"bos_token_id": 248044,
|
| 17 |
+
"dtype": "bfloat16",
|
| 18 |
+
"eos_token_id": 248044,
|
| 19 |
+
"full_attention_interval": 4,
|
| 20 |
+
"head_dim": 256,
|
| 21 |
+
"hidden_act": "silu",
|
| 22 |
+
"hidden_size": 2048,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"layer_types": [
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"full_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"linear_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"linear_attention",
|
| 62 |
+
"linear_attention",
|
| 63 |
+
"linear_attention",
|
| 64 |
+
"full_attention"
|
| 65 |
+
],
|
| 66 |
+
"linear_conv_kernel_dim": 4,
|
| 67 |
+
"linear_key_head_dim": 128,
|
| 68 |
+
"linear_num_key_heads": 16,
|
| 69 |
+
"linear_num_value_heads": 32,
|
| 70 |
+
"linear_value_head_dim": 128,
|
| 71 |
+
"mamba_ssm_dtype": "float32",
|
| 72 |
+
"max_position_embeddings": 262144,
|
| 73 |
+
"model_type": "qwen3_5_moe_text",
|
| 74 |
+
"moe_intermediate_size": 512,
|
| 75 |
+
"mtp_num_hidden_layers": 1,
|
| 76 |
+
"mtp_use_dedicated_embeddings": false,
|
| 77 |
+
"num_attention_heads": 16,
|
| 78 |
+
"num_experts": 256,
|
| 79 |
+
"num_experts_per_tok": 8,
|
| 80 |
+
"num_hidden_layers": 40,
|
| 81 |
+
"num_key_value_heads": 2,
|
| 82 |
+
"output_router_logits": false,
|
| 83 |
+
"pad_token_id": 248044,
|
| 84 |
+
"partial_rotary_factor": 0.25,
|
| 85 |
+
"rms_norm_eps": 1e-06,
|
| 86 |
+
"rope_parameters": {
|
| 87 |
+
"mrope_interleaved": true,
|
| 88 |
+
"mrope_section": [
|
| 89 |
+
11,
|
| 90 |
+
11,
|
| 91 |
+
10
|
| 92 |
+
],
|
| 93 |
+
"partial_rotary_factor": 0.25,
|
| 94 |
+
"rope_theta": 10000000,
|
| 95 |
+
"type": "default"
|
| 96 |
+
},
|
| 97 |
+
"router_aux_loss_coef": 0.0,
|
| 98 |
+
"shared_expert_intermediate_size": 512,
|
| 99 |
+
"tie_word_embeddings": false,
|
| 100 |
+
"use_cache": false,
|
| 101 |
+
"vocab_size": 248320,
|
| 102 |
+
"num_nextn_predict_layers": 1
|
| 103 |
+
},
|
| 104 |
+
"tie_word_embeddings": false,
|
| 105 |
+
"transformers_version": "5.8.1",
|
| 106 |
+
"video_token_id": 248057,
|
| 107 |
+
"vision_end_token_id": 248054,
|
| 108 |
+
"vision_start_token_id": 248053,
|
| 109 |
+
"publisher": "ornith-ai",
|
| 110 |
+
"mtp_num_hidden_layers": 1,
|
| 111 |
+
"num_nextn_predict_layers": 1,
|
| 112 |
+
"quantization": {
|
| 113 |
+
"group_size": 32,
|
| 114 |
+
"bits": 4,
|
| 115 |
+
"mode": "affine",
|
| 116 |
+
"language_model.model.layers.0.mlp.gate": {
|
| 117 |
+
"bits": 8,
|
| 118 |
+
"group_size": 64,
|
| 119 |
+
"mode": "affine"
|
| 120 |
+
},
|
| 121 |
+
"language_model.model.layers.0.mlp.shared_expert_gate": {
|
| 122 |
+
"bits": 8,
|
| 123 |
+
"group_size": 64,
|
| 124 |
+
"mode": "affine"
|
| 125 |
+
},
|
| 126 |
+
"language_model.model.layers.1.mlp.gate": {
|
| 127 |
+
"bits": 8,
|
| 128 |
+
"group_size": 64,
|
| 129 |
+
"mode": "affine"
|
| 130 |
+
},
|
| 131 |
+
"language_model.model.layers.1.mlp.shared_expert_gate": {
|
| 132 |
+
"bits": 8,
|
| 133 |
+
"group_size": 64,
|
| 134 |
+
"mode": "affine"
|
| 135 |
+
},
|
| 136 |
+
"language_model.model.layers.2.mlp.gate": {
|
| 137 |
+
"bits": 8,
|
| 138 |
+
"group_size": 64,
|
| 139 |
+
"mode": "affine"
|
| 140 |
+
},
|
| 141 |
+
"language_model.model.layers.2.mlp.shared_expert_gate": {
|
| 142 |
+
"bits": 8,
|
| 143 |
+
"group_size": 64,
|
| 144 |
+
"mode": "affine"
|
| 145 |
+
},
|
| 146 |
+
"language_model.model.layers.3.mlp.gate": {
|
| 147 |
+
"bits": 8,
|
| 148 |
+
"group_size": 64,
|
| 149 |
+
"mode": "affine"
|
| 150 |
+
},
|
| 151 |
+
"language_model.model.layers.3.mlp.shared_expert_gate": {
|
| 152 |
+
"bits": 8,
|
| 153 |
+
"group_size": 64,
|
| 154 |
+
"mode": "affine"
|
| 155 |
+
},
|
| 156 |
+
"language_model.model.layers.4.mlp.gate": {
|
| 157 |
+
"bits": 8,
|
| 158 |
+
"group_size": 64,
|
| 159 |
+
"mode": "affine"
|
| 160 |
+
},
|
| 161 |
+
"language_model.model.layers.4.mlp.shared_expert_gate": {
|
| 162 |
+
"bits": 8,
|
| 163 |
+
"group_size": 64,
|
| 164 |
+
"mode": "affine"
|
| 165 |
+
},
|
| 166 |
+
"language_model.model.layers.5.mlp.gate": {
|
| 167 |
+
"bits": 8,
|
| 168 |
+
"group_size": 64,
|
| 169 |
+
"mode": "affine"
|
| 170 |
+
},
|
| 171 |
+
"language_model.model.layers.5.mlp.shared_expert_gate": {
|
| 172 |
+
"bits": 8,
|
| 173 |
+
"group_size": 64,
|
| 174 |
+
"mode": "affine"
|
| 175 |
+
},
|
| 176 |
+
"language_model.model.layers.6.mlp.gate": {
|
| 177 |
+
"bits": 8,
|
| 178 |
+
"group_size": 64,
|
| 179 |
+
"mode": "affine"
|
| 180 |
+
},
|
| 181 |
+
"language_model.model.layers.6.mlp.shared_expert_gate": {
|
| 182 |
+
"bits": 8,
|
| 183 |
+
"group_size": 64,
|
| 184 |
+
"mode": "affine"
|
| 185 |
+
},
|
| 186 |
+
"language_model.model.layers.7.mlp.gate": {
|
| 187 |
+
"bits": 8,
|
| 188 |
+
"group_size": 64,
|
| 189 |
+
"mode": "affine"
|
| 190 |
+
},
|
| 191 |
+
"language_model.model.layers.7.mlp.shared_expert_gate": {
|
| 192 |
+
"bits": 8,
|
| 193 |
+
"group_size": 64,
|
| 194 |
+
"mode": "affine"
|
| 195 |
+
},
|
| 196 |
+
"language_model.model.layers.8.mlp.gate": {
|
| 197 |
+
"bits": 8,
|
| 198 |
+
"group_size": 64,
|
| 199 |
+
"mode": "affine"
|
| 200 |
+
},
|
| 201 |
+
"language_model.model.layers.8.mlp.shared_expert_gate": {
|
| 202 |
+
"bits": 8,
|
| 203 |
+
"group_size": 64,
|
| 204 |
+
"mode": "affine"
|
| 205 |
+
},
|
| 206 |
+
"language_model.model.layers.9.mlp.gate": {
|
| 207 |
+
"bits": 8,
|
| 208 |
+
"group_size": 64,
|
| 209 |
+
"mode": "affine"
|
| 210 |
+
},
|
| 211 |
+
"language_model.model.layers.9.mlp.shared_expert_gate": {
|
| 212 |
+
"bits": 8,
|
| 213 |
+
"group_size": 64,
|
| 214 |
+
"mode": "affine"
|
| 215 |
+
},
|
| 216 |
+
"language_model.model.layers.10.mlp.gate": {
|
| 217 |
+
"bits": 8,
|
| 218 |
+
"group_size": 64,
|
| 219 |
+
"mode": "affine"
|
| 220 |
+
},
|
| 221 |
+
"language_model.model.layers.10.mlp.shared_expert_gate": {
|
| 222 |
+
"bits": 8,
|
| 223 |
+
"group_size": 64,
|
| 224 |
+
"mode": "affine"
|
| 225 |
+
},
|
| 226 |
+
"language_model.model.layers.11.mlp.gate": {
|
| 227 |
+
"bits": 8,
|
| 228 |
+
"group_size": 64,
|
| 229 |
+
"mode": "affine"
|
| 230 |
+
},
|
| 231 |
+
"language_model.model.layers.11.mlp.shared_expert_gate": {
|
| 232 |
+
"bits": 8,
|
| 233 |
+
"group_size": 64,
|
| 234 |
+
"mode": "affine"
|
| 235 |
+
},
|
| 236 |
+
"language_model.model.layers.12.mlp.gate": {
|
| 237 |
+
"bits": 8,
|
| 238 |
+
"group_size": 64,
|
| 239 |
+
"mode": "affine"
|
| 240 |
+
},
|
| 241 |
+
"language_model.model.layers.12.mlp.shared_expert_gate": {
|
| 242 |
+
"bits": 8,
|
| 243 |
+
"group_size": 64,
|
| 244 |
+
"mode": "affine"
|
| 245 |
+
},
|
| 246 |
+
"language_model.model.layers.13.mlp.gate": {
|
| 247 |
+
"bits": 8,
|
| 248 |
+
"group_size": 64,
|
| 249 |
+
"mode": "affine"
|
| 250 |
+
},
|
| 251 |
+
"language_model.model.layers.13.mlp.shared_expert_gate": {
|
| 252 |
+
"bits": 8,
|
| 253 |
+
"group_size": 64,
|
| 254 |
+
"mode": "affine"
|
| 255 |
+
},
|
| 256 |
+
"language_model.model.layers.14.mlp.gate": {
|
| 257 |
+
"bits": 8,
|
| 258 |
+
"group_size": 64,
|
| 259 |
+
"mode": "affine"
|
| 260 |
+
},
|
| 261 |
+
"language_model.model.layers.14.mlp.shared_expert_gate": {
|
| 262 |
+
"bits": 8,
|
| 263 |
+
"group_size": 64,
|
| 264 |
+
"mode": "affine"
|
| 265 |
+
},
|
| 266 |
+
"language_model.model.layers.15.mlp.gate": {
|
| 267 |
+
"bits": 8,
|
| 268 |
+
"group_size": 64,
|
| 269 |
+
"mode": "affine"
|
| 270 |
+
},
|
| 271 |
+
"language_model.model.layers.15.mlp.shared_expert_gate": {
|
| 272 |
+
"bits": 8,
|
| 273 |
+
"group_size": 64,
|
| 274 |
+
"mode": "affine"
|
| 275 |
+
},
|
| 276 |
+
"language_model.model.layers.16.mlp.gate": {
|
| 277 |
+
"bits": 8,
|
| 278 |
+
"group_size": 64,
|
| 279 |
+
"mode": "affine"
|
| 280 |
+
},
|
| 281 |
+
"language_model.model.layers.16.mlp.shared_expert_gate": {
|
| 282 |
+
"bits": 8,
|
| 283 |
+
"group_size": 64,
|
| 284 |
+
"mode": "affine"
|
| 285 |
+
},
|
| 286 |
+
"language_model.model.layers.17.mlp.gate": {
|
| 287 |
+
"bits": 8,
|
| 288 |
+
"group_size": 64,
|
| 289 |
+
"mode": "affine"
|
| 290 |
+
},
|
| 291 |
+
"language_model.model.layers.17.mlp.shared_expert_gate": {
|
| 292 |
+
"bits": 8,
|
| 293 |
+
"group_size": 64,
|
| 294 |
+
"mode": "affine"
|
| 295 |
+
},
|
| 296 |
+
"language_model.model.layers.18.mlp.gate": {
|
| 297 |
+
"bits": 8,
|
| 298 |
+
"group_size": 64,
|
| 299 |
+
"mode": "affine"
|
| 300 |
+
},
|
| 301 |
+
"language_model.model.layers.18.mlp.shared_expert_gate": {
|
| 302 |
+
"bits": 8,
|
| 303 |
+
"group_size": 64,
|
| 304 |
+
"mode": "affine"
|
| 305 |
+
},
|
| 306 |
+
"language_model.model.layers.19.mlp.gate": {
|
| 307 |
+
"bits": 8,
|
| 308 |
+
"group_size": 64,
|
| 309 |
+
"mode": "affine"
|
| 310 |
+
},
|
| 311 |
+
"language_model.model.layers.19.mlp.shared_expert_gate": {
|
| 312 |
+
"bits": 8,
|
| 313 |
+
"group_size": 64,
|
| 314 |
+
"mode": "affine"
|
| 315 |
+
},
|
| 316 |
+
"language_model.model.layers.20.mlp.gate": {
|
| 317 |
+
"bits": 8,
|
| 318 |
+
"group_size": 64,
|
| 319 |
+
"mode": "affine"
|
| 320 |
+
},
|
| 321 |
+
"language_model.model.layers.20.mlp.shared_expert_gate": {
|
| 322 |
+
"bits": 8,
|
| 323 |
+
"group_size": 64,
|
| 324 |
+
"mode": "affine"
|
| 325 |
+
},
|
| 326 |
+
"language_model.model.layers.21.mlp.gate": {
|
| 327 |
+
"bits": 8,
|
| 328 |
+
"group_size": 64,
|
| 329 |
+
"mode": "affine"
|
| 330 |
+
},
|
| 331 |
+
"language_model.model.layers.21.mlp.shared_expert_gate": {
|
| 332 |
+
"bits": 8,
|
| 333 |
+
"group_size": 64,
|
| 334 |
+
"mode": "affine"
|
| 335 |
+
},
|
| 336 |
+
"language_model.model.layers.22.mlp.gate": {
|
| 337 |
+
"bits": 8,
|
| 338 |
+
"group_size": 64,
|
| 339 |
+
"mode": "affine"
|
| 340 |
+
},
|
| 341 |
+
"language_model.model.layers.22.mlp.shared_expert_gate": {
|
| 342 |
+
"bits": 8,
|
| 343 |
+
"group_size": 64,
|
| 344 |
+
"mode": "affine"
|
| 345 |
+
},
|
| 346 |
+
"language_model.model.layers.23.mlp.gate": {
|
| 347 |
+
"bits": 8,
|
| 348 |
+
"group_size": 64,
|
| 349 |
+
"mode": "affine"
|
| 350 |
+
},
|
| 351 |
+
"language_model.model.layers.23.mlp.shared_expert_gate": {
|
| 352 |
+
"bits": 8,
|
| 353 |
+
"group_size": 64,
|
| 354 |
+
"mode": "affine"
|
| 355 |
+
},
|
| 356 |
+
"language_model.model.layers.24.mlp.gate": {
|
| 357 |
+
"bits": 8,
|
| 358 |
+
"group_size": 64,
|
| 359 |
+
"mode": "affine"
|
| 360 |
+
},
|
| 361 |
+
"language_model.model.layers.24.mlp.shared_expert_gate": {
|
| 362 |
+
"bits": 8,
|
| 363 |
+
"group_size": 64,
|
| 364 |
+
"mode": "affine"
|
| 365 |
+
},
|
| 366 |
+
"language_model.model.layers.25.mlp.gate": {
|
| 367 |
+
"bits": 8,
|
| 368 |
+
"group_size": 64,
|
| 369 |
+
"mode": "affine"
|
| 370 |
+
},
|
| 371 |
+
"language_model.model.layers.25.mlp.shared_expert_gate": {
|
| 372 |
+
"bits": 8,
|
| 373 |
+
"group_size": 64,
|
| 374 |
+
"mode": "affine"
|
| 375 |
+
},
|
| 376 |
+
"language_model.model.layers.26.mlp.gate": {
|
| 377 |
+
"bits": 8,
|
| 378 |
+
"group_size": 64,
|
| 379 |
+
"mode": "affine"
|
| 380 |
+
},
|
| 381 |
+
"language_model.model.layers.26.mlp.shared_expert_gate": {
|
| 382 |
+
"bits": 8,
|
| 383 |
+
"group_size": 64,
|
| 384 |
+
"mode": "affine"
|
| 385 |
+
},
|
| 386 |
+
"language_model.model.layers.27.mlp.gate": {
|
| 387 |
+
"bits": 8,
|
| 388 |
+
"group_size": 64,
|
| 389 |
+
"mode": "affine"
|
| 390 |
+
},
|
| 391 |
+
"language_model.model.layers.27.mlp.shared_expert_gate": {
|
| 392 |
+
"bits": 8,
|
| 393 |
+
"group_size": 64,
|
| 394 |
+
"mode": "affine"
|
| 395 |
+
},
|
| 396 |
+
"language_model.model.layers.28.mlp.gate": {
|
| 397 |
+
"bits": 8,
|
| 398 |
+
"group_size": 64,
|
| 399 |
+
"mode": "affine"
|
| 400 |
+
},
|
| 401 |
+
"language_model.model.layers.28.mlp.shared_expert_gate": {
|
| 402 |
+
"bits": 8,
|
| 403 |
+
"group_size": 64,
|
| 404 |
+
"mode": "affine"
|
| 405 |
+
},
|
| 406 |
+
"language_model.model.layers.29.mlp.gate": {
|
| 407 |
+
"bits": 8,
|
| 408 |
+
"group_size": 64,
|
| 409 |
+
"mode": "affine"
|
| 410 |
+
},
|
| 411 |
+
"language_model.model.layers.29.mlp.shared_expert_gate": {
|
| 412 |
+
"bits": 8,
|
| 413 |
+
"group_size": 64,
|
| 414 |
+
"mode": "affine"
|
| 415 |
+
},
|
| 416 |
+
"language_model.model.layers.30.mlp.gate": {
|
| 417 |
+
"bits": 8,
|
| 418 |
+
"group_size": 64,
|
| 419 |
+
"mode": "affine"
|
| 420 |
+
},
|
| 421 |
+
"language_model.model.layers.30.mlp.shared_expert_gate": {
|
| 422 |
+
"bits": 8,
|
| 423 |
+
"group_size": 64,
|
| 424 |
+
"mode": "affine"
|
| 425 |
+
},
|
| 426 |
+
"language_model.model.layers.31.mlp.gate": {
|
| 427 |
+
"bits": 8,
|
| 428 |
+
"group_size": 64,
|
| 429 |
+
"mode": "affine"
|
| 430 |
+
},
|
| 431 |
+
"language_model.model.layers.31.mlp.shared_expert_gate": {
|
| 432 |
+
"bits": 8,
|
| 433 |
+
"group_size": 64,
|
| 434 |
+
"mode": "affine"
|
| 435 |
+
},
|
| 436 |
+
"language_model.model.layers.32.mlp.gate": {
|
| 437 |
+
"bits": 8,
|
| 438 |
+
"group_size": 64,
|
| 439 |
+
"mode": "affine"
|
| 440 |
+
},
|
| 441 |
+
"language_model.model.layers.32.mlp.shared_expert_gate": {
|
| 442 |
+
"bits": 8,
|
| 443 |
+
"group_size": 64,
|
| 444 |
+
"mode": "affine"
|
| 445 |
+
},
|
| 446 |
+
"language_model.model.layers.33.mlp.gate": {
|
| 447 |
+
"bits": 8,
|
| 448 |
+
"group_size": 64,
|
| 449 |
+
"mode": "affine"
|
| 450 |
+
},
|
| 451 |
+
"language_model.model.layers.33.mlp.shared_expert_gate": {
|
| 452 |
+
"bits": 8,
|
| 453 |
+
"group_size": 64,
|
| 454 |
+
"mode": "affine"
|
| 455 |
+
},
|
| 456 |
+
"language_model.model.layers.34.mlp.gate": {
|
| 457 |
+
"bits": 8,
|
| 458 |
+
"group_size": 64,
|
| 459 |
+
"mode": "affine"
|
| 460 |
+
},
|
| 461 |
+
"language_model.model.layers.34.mlp.shared_expert_gate": {
|
| 462 |
+
"bits": 8,
|
| 463 |
+
"group_size": 64,
|
| 464 |
+
"mode": "affine"
|
| 465 |
+
},
|
| 466 |
+
"language_model.model.layers.35.mlp.gate": {
|
| 467 |
+
"bits": 8,
|
| 468 |
+
"group_size": 64,
|
| 469 |
+
"mode": "affine"
|
| 470 |
+
},
|
| 471 |
+
"language_model.model.layers.35.mlp.shared_expert_gate": {
|
| 472 |
+
"bits": 8,
|
| 473 |
+
"group_size": 64,
|
| 474 |
+
"mode": "affine"
|
| 475 |
+
},
|
| 476 |
+
"language_model.model.layers.36.mlp.gate": {
|
| 477 |
+
"bits": 8,
|
| 478 |
+
"group_size": 64,
|
| 479 |
+
"mode": "affine"
|
| 480 |
+
},
|
| 481 |
+
"language_model.model.layers.36.mlp.shared_expert_gate": {
|
| 482 |
+
"bits": 8,
|
| 483 |
+
"group_size": 64,
|
| 484 |
+
"mode": "affine"
|
| 485 |
+
},
|
| 486 |
+
"language_model.model.layers.37.mlp.gate": {
|
| 487 |
+
"bits": 8,
|
| 488 |
+
"group_size": 64,
|
| 489 |
+
"mode": "affine"
|
| 490 |
+
},
|
| 491 |
+
"language_model.model.layers.37.mlp.shared_expert_gate": {
|
| 492 |
+
"bits": 8,
|
| 493 |
+
"group_size": 64,
|
| 494 |
+
"mode": "affine"
|
| 495 |
+
},
|
| 496 |
+
"language_model.model.layers.38.mlp.gate": {
|
| 497 |
+
"bits": 8,
|
| 498 |
+
"group_size": 64,
|
| 499 |
+
"mode": "affine"
|
| 500 |
+
},
|
| 501 |
+
"language_model.model.layers.38.mlp.shared_expert_gate": {
|
| 502 |
+
"bits": 8,
|
| 503 |
+
"group_size": 64,
|
| 504 |
+
"mode": "affine"
|
| 505 |
+
},
|
| 506 |
+
"language_model.model.layers.39.mlp.gate": {
|
| 507 |
+
"bits": 8,
|
| 508 |
+
"group_size": 64,
|
| 509 |
+
"mode": "affine"
|
| 510 |
+
},
|
| 511 |
+
"language_model.model.layers.39.mlp.shared_expert_gate": {
|
| 512 |
+
"bits": 8,
|
| 513 |
+
"group_size": 64,
|
| 514 |
+
"mode": "affine"
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
"quantization_config": {
|
| 518 |
+
"group_size": 32,
|
| 519 |
+
"bits": 4,
|
| 520 |
+
"mode": "affine",
|
| 521 |
+
"language_model.model.layers.0.mlp.gate": {
|
| 522 |
+
"bits": 8,
|
| 523 |
+
"group_size": 64,
|
| 524 |
+
"mode": "affine"
|
| 525 |
+
},
|
| 526 |
+
"language_model.model.layers.0.mlp.shared_expert_gate": {
|
| 527 |
+
"bits": 8,
|
| 528 |
+
"group_size": 64,
|
| 529 |
+
"mode": "affine"
|
| 530 |
+
},
|
| 531 |
+
"language_model.model.layers.1.mlp.gate": {
|
| 532 |
+
"bits": 8,
|
| 533 |
+
"group_size": 64,
|
| 534 |
+
"mode": "affine"
|
| 535 |
+
},
|
| 536 |
+
"language_model.model.layers.1.mlp.shared_expert_gate": {
|
| 537 |
+
"bits": 8,
|
| 538 |
+
"group_size": 64,
|
| 539 |
+
"mode": "affine"
|
| 540 |
+
},
|
| 541 |
+
"language_model.model.layers.2.mlp.gate": {
|
| 542 |
+
"bits": 8,
|
| 543 |
+
"group_size": 64,
|
| 544 |
+
"mode": "affine"
|
| 545 |
+
},
|
| 546 |
+
"language_model.model.layers.2.mlp.shared_expert_gate": {
|
| 547 |
+
"bits": 8,
|
| 548 |
+
"group_size": 64,
|
| 549 |
+
"mode": "affine"
|
| 550 |
+
},
|
| 551 |
+
"language_model.model.layers.3.mlp.gate": {
|
| 552 |
+
"bits": 8,
|
| 553 |
+
"group_size": 64,
|
| 554 |
+
"mode": "affine"
|
| 555 |
+
},
|
| 556 |
+
"language_model.model.layers.3.mlp.shared_expert_gate": {
|
| 557 |
+
"bits": 8,
|
| 558 |
+
"group_size": 64,
|
| 559 |
+
"mode": "affine"
|
| 560 |
+
},
|
| 561 |
+
"language_model.model.layers.4.mlp.gate": {
|
| 562 |
+
"bits": 8,
|
| 563 |
+
"group_size": 64,
|
| 564 |
+
"mode": "affine"
|
| 565 |
+
},
|
| 566 |
+
"language_model.model.layers.4.mlp.shared_expert_gate": {
|
| 567 |
+
"bits": 8,
|
| 568 |
+
"group_size": 64,
|
| 569 |
+
"mode": "affine"
|
| 570 |
+
},
|
| 571 |
+
"language_model.model.layers.5.mlp.gate": {
|
| 572 |
+
"bits": 8,
|
| 573 |
+
"group_size": 64,
|
| 574 |
+
"mode": "affine"
|
| 575 |
+
},
|
| 576 |
+
"language_model.model.layers.5.mlp.shared_expert_gate": {
|
| 577 |
+
"bits": 8,
|
| 578 |
+
"group_size": 64,
|
| 579 |
+
"mode": "affine"
|
| 580 |
+
},
|
| 581 |
+
"language_model.model.layers.6.mlp.gate": {
|
| 582 |
+
"bits": 8,
|
| 583 |
+
"group_size": 64,
|
| 584 |
+
"mode": "affine"
|
| 585 |
+
},
|
| 586 |
+
"language_model.model.layers.6.mlp.shared_expert_gate": {
|
| 587 |
+
"bits": 8,
|
| 588 |
+
"group_size": 64,
|
| 589 |
+
"mode": "affine"
|
| 590 |
+
},
|
| 591 |
+
"language_model.model.layers.7.mlp.gate": {
|
| 592 |
+
"bits": 8,
|
| 593 |
+
"group_size": 64,
|
| 594 |
+
"mode": "affine"
|
| 595 |
+
},
|
| 596 |
+
"language_model.model.layers.7.mlp.shared_expert_gate": {
|
| 597 |
+
"bits": 8,
|
| 598 |
+
"group_size": 64,
|
| 599 |
+
"mode": "affine"
|
| 600 |
+
},
|
| 601 |
+
"language_model.model.layers.8.mlp.gate": {
|
| 602 |
+
"bits": 8,
|
| 603 |
+
"group_size": 64,
|
| 604 |
+
"mode": "affine"
|
| 605 |
+
},
|
| 606 |
+
"language_model.model.layers.8.mlp.shared_expert_gate": {
|
| 607 |
+
"bits": 8,
|
| 608 |
+
"group_size": 64,
|
| 609 |
+
"mode": "affine"
|
| 610 |
+
},
|
| 611 |
+
"language_model.model.layers.9.mlp.gate": {
|
| 612 |
+
"bits": 8,
|
| 613 |
+
"group_size": 64,
|
| 614 |
+
"mode": "affine"
|
| 615 |
+
},
|
| 616 |
+
"language_model.model.layers.9.mlp.shared_expert_gate": {
|
| 617 |
+
"bits": 8,
|
| 618 |
+
"group_size": 64,
|
| 619 |
+
"mode": "affine"
|
| 620 |
+
},
|
| 621 |
+
"language_model.model.layers.10.mlp.gate": {
|
| 622 |
+
"bits": 8,
|
| 623 |
+
"group_size": 64,
|
| 624 |
+
"mode": "affine"
|
| 625 |
+
},
|
| 626 |
+
"language_model.model.layers.10.mlp.shared_expert_gate": {
|
| 627 |
+
"bits": 8,
|
| 628 |
+
"group_size": 64,
|
| 629 |
+
"mode": "affine"
|
| 630 |
+
},
|
| 631 |
+
"language_model.model.layers.11.mlp.gate": {
|
| 632 |
+
"bits": 8,
|
| 633 |
+
"group_size": 64,
|
| 634 |
+
"mode": "affine"
|
| 635 |
+
},
|
| 636 |
+
"language_model.model.layers.11.mlp.shared_expert_gate": {
|
| 637 |
+
"bits": 8,
|
| 638 |
+
"group_size": 64,
|
| 639 |
+
"mode": "affine"
|
| 640 |
+
},
|
| 641 |
+
"language_model.model.layers.12.mlp.gate": {
|
| 642 |
+
"bits": 8,
|
| 643 |
+
"group_size": 64,
|
| 644 |
+
"mode": "affine"
|
| 645 |
+
},
|
| 646 |
+
"language_model.model.layers.12.mlp.shared_expert_gate": {
|
| 647 |
+
"bits": 8,
|
| 648 |
+
"group_size": 64,
|
| 649 |
+
"mode": "affine"
|
| 650 |
+
},
|
| 651 |
+
"language_model.model.layers.13.mlp.gate": {
|
| 652 |
+
"bits": 8,
|
| 653 |
+
"group_size": 64,
|
| 654 |
+
"mode": "affine"
|
| 655 |
+
},
|
| 656 |
+
"language_model.model.layers.13.mlp.shared_expert_gate": {
|
| 657 |
+
"bits": 8,
|
| 658 |
+
"group_size": 64,
|
| 659 |
+
"mode": "affine"
|
| 660 |
+
},
|
| 661 |
+
"language_model.model.layers.14.mlp.gate": {
|
| 662 |
+
"bits": 8,
|
| 663 |
+
"group_size": 64,
|
| 664 |
+
"mode": "affine"
|
| 665 |
+
},
|
| 666 |
+
"language_model.model.layers.14.mlp.shared_expert_gate": {
|
| 667 |
+
"bits": 8,
|
| 668 |
+
"group_size": 64,
|
| 669 |
+
"mode": "affine"
|
| 670 |
+
},
|
| 671 |
+
"language_model.model.layers.15.mlp.gate": {
|
| 672 |
+
"bits": 8,
|
| 673 |
+
"group_size": 64,
|
| 674 |
+
"mode": "affine"
|
| 675 |
+
},
|
| 676 |
+
"language_model.model.layers.15.mlp.shared_expert_gate": {
|
| 677 |
+
"bits": 8,
|
| 678 |
+
"group_size": 64,
|
| 679 |
+
"mode": "affine"
|
| 680 |
+
},
|
| 681 |
+
"language_model.model.layers.16.mlp.gate": {
|
| 682 |
+
"bits": 8,
|
| 683 |
+
"group_size": 64,
|
| 684 |
+
"mode": "affine"
|
| 685 |
+
},
|
| 686 |
+
"language_model.model.layers.16.mlp.shared_expert_gate": {
|
| 687 |
+
"bits": 8,
|
| 688 |
+
"group_size": 64,
|
| 689 |
+
"mode": "affine"
|
| 690 |
+
},
|
| 691 |
+
"language_model.model.layers.17.mlp.gate": {
|
| 692 |
+
"bits": 8,
|
| 693 |
+
"group_size": 64,
|
| 694 |
+
"mode": "affine"
|
| 695 |
+
},
|
| 696 |
+
"language_model.model.layers.17.mlp.shared_expert_gate": {
|
| 697 |
+
"bits": 8,
|
| 698 |
+
"group_size": 64,
|
| 699 |
+
"mode": "affine"
|
| 700 |
+
},
|
| 701 |
+
"language_model.model.layers.18.mlp.gate": {
|
| 702 |
+
"bits": 8,
|
| 703 |
+
"group_size": 64,
|
| 704 |
+
"mode": "affine"
|
| 705 |
+
},
|
| 706 |
+
"language_model.model.layers.18.mlp.shared_expert_gate": {
|
| 707 |
+
"bits": 8,
|
| 708 |
+
"group_size": 64,
|
| 709 |
+
"mode": "affine"
|
| 710 |
+
},
|
| 711 |
+
"language_model.model.layers.19.mlp.gate": {
|
| 712 |
+
"bits": 8,
|
| 713 |
+
"group_size": 64,
|
| 714 |
+
"mode": "affine"
|
| 715 |
+
},
|
| 716 |
+
"language_model.model.layers.19.mlp.shared_expert_gate": {
|
| 717 |
+
"bits": 8,
|
| 718 |
+
"group_size": 64,
|
| 719 |
+
"mode": "affine"
|
| 720 |
+
},
|
| 721 |
+
"language_model.model.layers.20.mlp.gate": {
|
| 722 |
+
"bits": 8,
|
| 723 |
+
"group_size": 64,
|
| 724 |
+
"mode": "affine"
|
| 725 |
+
},
|
| 726 |
+
"language_model.model.layers.20.mlp.shared_expert_gate": {
|
| 727 |
+
"bits": 8,
|
| 728 |
+
"group_size": 64,
|
| 729 |
+
"mode": "affine"
|
| 730 |
+
},
|
| 731 |
+
"language_model.model.layers.21.mlp.gate": {
|
| 732 |
+
"bits": 8,
|
| 733 |
+
"group_size": 64,
|
| 734 |
+
"mode": "affine"
|
| 735 |
+
},
|
| 736 |
+
"language_model.model.layers.21.mlp.shared_expert_gate": {
|
| 737 |
+
"bits": 8,
|
| 738 |
+
"group_size": 64,
|
| 739 |
+
"mode": "affine"
|
| 740 |
+
},
|
| 741 |
+
"language_model.model.layers.22.mlp.gate": {
|
| 742 |
+
"bits": 8,
|
| 743 |
+
"group_size": 64,
|
| 744 |
+
"mode": "affine"
|
| 745 |
+
},
|
| 746 |
+
"language_model.model.layers.22.mlp.shared_expert_gate": {
|
| 747 |
+
"bits": 8,
|
| 748 |
+
"group_size": 64,
|
| 749 |
+
"mode": "affine"
|
| 750 |
+
},
|
| 751 |
+
"language_model.model.layers.23.mlp.gate": {
|
| 752 |
+
"bits": 8,
|
| 753 |
+
"group_size": 64,
|
| 754 |
+
"mode": "affine"
|
| 755 |
+
},
|
| 756 |
+
"language_model.model.layers.23.mlp.shared_expert_gate": {
|
| 757 |
+
"bits": 8,
|
| 758 |
+
"group_size": 64,
|
| 759 |
+
"mode": "affine"
|
| 760 |
+
},
|
| 761 |
+
"language_model.model.layers.24.mlp.gate": {
|
| 762 |
+
"bits": 8,
|
| 763 |
+
"group_size": 64,
|
| 764 |
+
"mode": "affine"
|
| 765 |
+
},
|
| 766 |
+
"language_model.model.layers.24.mlp.shared_expert_gate": {
|
| 767 |
+
"bits": 8,
|
| 768 |
+
"group_size": 64,
|
| 769 |
+
"mode": "affine"
|
| 770 |
+
},
|
| 771 |
+
"language_model.model.layers.25.mlp.gate": {
|
| 772 |
+
"bits": 8,
|
| 773 |
+
"group_size": 64,
|
| 774 |
+
"mode": "affine"
|
| 775 |
+
},
|
| 776 |
+
"language_model.model.layers.25.mlp.shared_expert_gate": {
|
| 777 |
+
"bits": 8,
|
| 778 |
+
"group_size": 64,
|
| 779 |
+
"mode": "affine"
|
| 780 |
+
},
|
| 781 |
+
"language_model.model.layers.26.mlp.gate": {
|
| 782 |
+
"bits": 8,
|
| 783 |
+
"group_size": 64,
|
| 784 |
+
"mode": "affine"
|
| 785 |
+
},
|
| 786 |
+
"language_model.model.layers.26.mlp.shared_expert_gate": {
|
| 787 |
+
"bits": 8,
|
| 788 |
+
"group_size": 64,
|
| 789 |
+
"mode": "affine"
|
| 790 |
+
},
|
| 791 |
+
"language_model.model.layers.27.mlp.gate": {
|
| 792 |
+
"bits": 8,
|
| 793 |
+
"group_size": 64,
|
| 794 |
+
"mode": "affine"
|
| 795 |
+
},
|
| 796 |
+
"language_model.model.layers.27.mlp.shared_expert_gate": {
|
| 797 |
+
"bits": 8,
|
| 798 |
+
"group_size": 64,
|
| 799 |
+
"mode": "affine"
|
| 800 |
+
},
|
| 801 |
+
"language_model.model.layers.28.mlp.gate": {
|
| 802 |
+
"bits": 8,
|
| 803 |
+
"group_size": 64,
|
| 804 |
+
"mode": "affine"
|
| 805 |
+
},
|
| 806 |
+
"language_model.model.layers.28.mlp.shared_expert_gate": {
|
| 807 |
+
"bits": 8,
|
| 808 |
+
"group_size": 64,
|
| 809 |
+
"mode": "affine"
|
| 810 |
+
},
|
| 811 |
+
"language_model.model.layers.29.mlp.gate": {
|
| 812 |
+
"bits": 8,
|
| 813 |
+
"group_size": 64,
|
| 814 |
+
"mode": "affine"
|
| 815 |
+
},
|
| 816 |
+
"language_model.model.layers.29.mlp.shared_expert_gate": {
|
| 817 |
+
"bits": 8,
|
| 818 |
+
"group_size": 64,
|
| 819 |
+
"mode": "affine"
|
| 820 |
+
},
|
| 821 |
+
"language_model.model.layers.30.mlp.gate": {
|
| 822 |
+
"bits": 8,
|
| 823 |
+
"group_size": 64,
|
| 824 |
+
"mode": "affine"
|
| 825 |
+
},
|
| 826 |
+
"language_model.model.layers.30.mlp.shared_expert_gate": {
|
| 827 |
+
"bits": 8,
|
| 828 |
+
"group_size": 64,
|
| 829 |
+
"mode": "affine"
|
| 830 |
+
},
|
| 831 |
+
"language_model.model.layers.31.mlp.gate": {
|
| 832 |
+
"bits": 8,
|
| 833 |
+
"group_size": 64,
|
| 834 |
+
"mode": "affine"
|
| 835 |
+
},
|
| 836 |
+
"language_model.model.layers.31.mlp.shared_expert_gate": {
|
| 837 |
+
"bits": 8,
|
| 838 |
+
"group_size": 64,
|
| 839 |
+
"mode": "affine"
|
| 840 |
+
},
|
| 841 |
+
"language_model.model.layers.32.mlp.gate": {
|
| 842 |
+
"bits": 8,
|
| 843 |
+
"group_size": 64,
|
| 844 |
+
"mode": "affine"
|
| 845 |
+
},
|
| 846 |
+
"language_model.model.layers.32.mlp.shared_expert_gate": {
|
| 847 |
+
"bits": 8,
|
| 848 |
+
"group_size": 64,
|
| 849 |
+
"mode": "affine"
|
| 850 |
+
},
|
| 851 |
+
"language_model.model.layers.33.mlp.gate": {
|
| 852 |
+
"bits": 8,
|
| 853 |
+
"group_size": 64,
|
| 854 |
+
"mode": "affine"
|
| 855 |
+
},
|
| 856 |
+
"language_model.model.layers.33.mlp.shared_expert_gate": {
|
| 857 |
+
"bits": 8,
|
| 858 |
+
"group_size": 64,
|
| 859 |
+
"mode": "affine"
|
| 860 |
+
},
|
| 861 |
+
"language_model.model.layers.34.mlp.gate": {
|
| 862 |
+
"bits": 8,
|
| 863 |
+
"group_size": 64,
|
| 864 |
+
"mode": "affine"
|
| 865 |
+
},
|
| 866 |
+
"language_model.model.layers.34.mlp.shared_expert_gate": {
|
| 867 |
+
"bits": 8,
|
| 868 |
+
"group_size": 64,
|
| 869 |
+
"mode": "affine"
|
| 870 |
+
},
|
| 871 |
+
"language_model.model.layers.35.mlp.gate": {
|
| 872 |
+
"bits": 8,
|
| 873 |
+
"group_size": 64,
|
| 874 |
+
"mode": "affine"
|
| 875 |
+
},
|
| 876 |
+
"language_model.model.layers.35.mlp.shared_expert_gate": {
|
| 877 |
+
"bits": 8,
|
| 878 |
+
"group_size": 64,
|
| 879 |
+
"mode": "affine"
|
| 880 |
+
},
|
| 881 |
+
"language_model.model.layers.36.mlp.gate": {
|
| 882 |
+
"bits": 8,
|
| 883 |
+
"group_size": 64,
|
| 884 |
+
"mode": "affine"
|
| 885 |
+
},
|
| 886 |
+
"language_model.model.layers.36.mlp.shared_expert_gate": {
|
| 887 |
+
"bits": 8,
|
| 888 |
+
"group_size": 64,
|
| 889 |
+
"mode": "affine"
|
| 890 |
+
},
|
| 891 |
+
"language_model.model.layers.37.mlp.gate": {
|
| 892 |
+
"bits": 8,
|
| 893 |
+
"group_size": 64,
|
| 894 |
+
"mode": "affine"
|
| 895 |
+
},
|
| 896 |
+
"language_model.model.layers.37.mlp.shared_expert_gate": {
|
| 897 |
+
"bits": 8,
|
| 898 |
+
"group_size": 64,
|
| 899 |
+
"mode": "affine"
|
| 900 |
+
},
|
| 901 |
+
"language_model.model.layers.38.mlp.gate": {
|
| 902 |
+
"bits": 8,
|
| 903 |
+
"group_size": 64,
|
| 904 |
+
"mode": "affine"
|
| 905 |
+
},
|
| 906 |
+
"language_model.model.layers.38.mlp.shared_expert_gate": {
|
| 907 |
+
"bits": 8,
|
| 908 |
+
"group_size": 64,
|
| 909 |
+
"mode": "affine"
|
| 910 |
+
},
|
| 911 |
+
"language_model.model.layers.39.mlp.gate": {
|
| 912 |
+
"bits": 8,
|
| 913 |
+
"group_size": 64,
|
| 914 |
+
"mode": "affine"
|
| 915 |
+
},
|
| 916 |
+
"language_model.model.layers.39.mlp.shared_expert_gate": {
|
| 917 |
+
"bits": 8,
|
| 918 |
+
"group_size": 64,
|
| 919 |
+
"mode": "affine"
|
| 920 |
+
}
|
| 921 |
+
},
|
| 922 |
+
"vision_config": {
|
| 923 |
+
"deepstack_visual_indexes": [],
|
| 924 |
+
"depth": 27,
|
| 925 |
+
"dtype": "bfloat16",
|
| 926 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 927 |
+
"hidden_size": 1152,
|
| 928 |
+
"in_channels": 3,
|
| 929 |
+
"initializer_range": 0.02,
|
| 930 |
+
"intermediate_size": 4304,
|
| 931 |
+
"model_type": "qwen3_5_moe_vision",
|
| 932 |
+
"num_heads": 16,
|
| 933 |
+
"num_position_embeddings": 2304,
|
| 934 |
+
"out_hidden_size": 2048,
|
| 935 |
+
"patch_size": 16,
|
| 936 |
+
"spatial_merge_size": 2,
|
| 937 |
+
"temporal_patch_size": 2
|
| 938 |
+
},
|
| 939 |
+
"mlx_lm_extra_tensors": {
|
| 940 |
+
"mtp_file": "mtp/weights.safetensors",
|
| 941 |
+
"mtp_tensor_count": 785
|
| 942 |
+
},
|
| 943 |
+
"mtplx_wrapper": {
|
| 944 |
+
"artifact_name": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 945 |
+
"source_model": "ornith-ai/Ornith-1.5-35B-A3B",
|
| 946 |
+
"source_revision": "fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 947 |
+
"body_source": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 948 |
+
"mtp_source": "ornith-ai/Ornith-1.5-35B-A3B@fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 949 |
+
"body_quantization": "affine4-router8-bf16-recurrence",
|
| 950 |
+
"runtime": "mtplx",
|
| 951 |
+
"mtplx_version": "2.7.1",
|
| 952 |
+
"native_mtp": true,
|
| 953 |
+
"validation_status": "locally-qualified-experimental"
|
| 954 |
+
},
|
| 955 |
+
"source_model": "ornith-ai/Ornith-1.5-35B-A3B",
|
| 956 |
+
"source_revision": "fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 957 |
+
"release_repo": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 958 |
+
"release_variant": "affine4-router8-bf16-recurrence-vision-mtplx"
|
| 959 |
+
}
|
configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"framework":"Pytorch","task":"visual-question-answering"}
|
conversion_receipt.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"status": "pass",
|
| 3 |
+
"adapter_id": "qwen35-moe-ornith15-quant-matrix-v1",
|
| 4 |
+
"recipe_id": "affine4-router8-bf16-recurrence",
|
| 5 |
+
"source": "ornith-ai/Ornith-1.5-35B-A3B@fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 6 |
+
"output": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 7 |
+
"validated_source": {
|
| 8 |
+
"architecture": {
|
| 9 |
+
"model_type": "qwen3_5_moe",
|
| 10 |
+
"text_model_type": "qwen3_5_moe_text",
|
| 11 |
+
"layers": 40,
|
| 12 |
+
"layer_types": [
|
| 13 |
+
"linear_attention",
|
| 14 |
+
"linear_attention",
|
| 15 |
+
"linear_attention",
|
| 16 |
+
"full_attention",
|
| 17 |
+
"linear_attention",
|
| 18 |
+
"linear_attention",
|
| 19 |
+
"linear_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"linear_attention",
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"full_attention"
|
| 53 |
+
],
|
| 54 |
+
"linear_attention_layers": 30,
|
| 55 |
+
"full_attention_layers": 10
|
| 56 |
+
},
|
| 57 |
+
"source": {
|
| 58 |
+
"indexed_tensors": 1811,
|
| 59 |
+
"vision_tensors": 333,
|
| 60 |
+
"mtp_tensors": 785,
|
| 61 |
+
"recurrent_a_weights": 30,
|
| 62 |
+
"recurrent_b_weights": 30
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"expected": {
|
| 66 |
+
"quantized_modules": 452,
|
| 67 |
+
"float_exclusions": 60,
|
| 68 |
+
"q8_modules": 80,
|
| 69 |
+
"q4_modules": 372
|
| 70 |
+
},
|
| 71 |
+
"observed": {
|
| 72 |
+
"quantized_modules": 452,
|
| 73 |
+
"float_exclusions": 60,
|
| 74 |
+
"q8_modules": 80,
|
| 75 |
+
"q4_modules": 372,
|
| 76 |
+
"packed_precision_counts": {
|
| 77 |
+
"4": 372,
|
| 78 |
+
"8": 80
|
| 79 |
+
},
|
| 80 |
+
"packed_layout_mismatches": [],
|
| 81 |
+
"float_exclusions_with_scales": 0,
|
| 82 |
+
"float_exclusion_dtypes": {
|
| 83 |
+
"BF16": 60
|
| 84 |
+
},
|
| 85 |
+
"vision_tensors_in_text_body": 0,
|
| 86 |
+
"mtp_tensors_in_text_body": 0
|
| 87 |
+
},
|
| 88 |
+
"hashes": {
|
| 89 |
+
"source_config_sha256": "af198ccbe6c17dd973da98bbf6c92ce1c3ec7261c2e2fbc4c4f5150018418ea8",
|
| 90 |
+
"source_index_sha256": "0ad9fbfbb1a7514773ed881d3c9403019bd7ae9ff4c6af3cfc65ca7da784d78f",
|
| 91 |
+
"source_chat_template_sha256": "182e77dd83bd8e9ca818b240b82e28f243762cd5dda32e6eef327df7b1cd107e",
|
| 92 |
+
"recipe_sha256": "4052d1a3790e00026ef3ae4abd0edb642d2cc70e4b048b0fa93b40ff559777b1",
|
| 93 |
+
"converter_sha256": "3ec4d2c198ea22a7fcbb25569a3c6fe5e2bae03cda8d4e7ebf8db0a70dc5c145"
|
| 94 |
+
},
|
| 95 |
+
"failures": []
|
| 96 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9972f4d4b3af487ce73524077e20b0c42fb5583eb580fb58ae217e4ed4d0e7c2
|
| 3 |
+
size 1204383247
|
model-00002-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dc685ed5e81521ea572fff851b5c740f7c4929050efb3a30448fa211c0d1a48
|
| 3 |
+
size 1241660582
|
model-00003-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efafa965f93e5600f908b3c0758f5df74643f634372bc130f104aac1998c35b4
|
| 3 |
+
size 1557632078
|
model-00004-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0de9b36da58514a63e17cf0586875373f2de4477e1636b3831486f538c3ab1d9
|
| 3 |
+
size 1409428926
|
model-00005-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83a7d46f34709417c3c983cd009dfd04c3e62d48f94935091030828a3a490f31
|
| 3 |
+
size 1241660684
|
model-00006-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cfb554dc2e8adef4ba75291fd19c3ea4d361bbb5532399acd8390f889905340
|
| 3 |
+
size 1557632128
|
model-00007-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b2579f6eadb4454df2a114f1879a69bed3805dd5276b5b72732fd96647a75f4
|
| 3 |
+
size 1409429086
|
model-00008-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40e1fe64a7765565ec3b95e43d9f73fb4afea163b878445505b762fc6cf187fb
|
| 3 |
+
size 1241660794
|
model-00009-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:240ab5195cf227f0698431cba0cb48cf9a8dd6a6256be56caa3887c0b91907e4
|
| 3 |
+
size 1557632192
|
model-00010-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b857d803e9feb576bb636548bbf633887c910521bb06d5d1361b8df9b3df9a8b
|
| 3 |
+
size 1409428994
|
model-00011-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c48512b3df7a9cbbf0a513485692ccbda9607222ef4c08ac3ba813dff4f2f226
|
| 3 |
+
size 1241660694
|
model-00012-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13c7856bdd76b220e219523d83f12cdcb4db1620c27d0d146e99fb2ee62a444a
|
| 3 |
+
size 1557632126
|
model-00013-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c32facde86e275a624dcec1e26bb98143d81378673add5435ce6ea0597ce322d
|
| 3 |
+
size 1409429118
|
model-00014-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:492d46520ccb004a7e77e9fb49072a625aeca775f97c1af131bcdd13ccf5cb61
|
| 3 |
+
size 1241660734
|
model-00015-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52cd8aeddbca3c25ff0511495ee46e151ad787c427ef4735b8336cab02b0b00a
|
| 3 |
+
size 1557632166
|
model-00016-of-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddbda98a53ec88f9ae3da2d1141edd0dcda4a237130b15e86625f5d25e2be0f5
|
| 3 |
+
size 840749811
|
model-vision-00001-of-00001.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce387e11510de90772c482840c6d2bb8df1fe0f2d280b02cfea8484d04007f6b
|
| 3 |
+
size 893179493
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mtp/weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33a4a0693757980c1c18cbbeba4d5f68922e084727d6e21dec33593b99f8733c
|
| 3 |
+
size 1689375998
|
mtplx_runtime.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_name": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 3 |
+
"model_id": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 4 |
+
"arch_id": "qwen3-next-mtp",
|
| 5 |
+
"mtplx_version": "2.7.1",
|
| 6 |
+
"base_model": "ornith-ai/Ornith-1.5-35B-A3B",
|
| 7 |
+
"base_revision": "fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 8 |
+
"body_source": "Shiftedx/ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 9 |
+
"mtp_source": "ornith-ai/Ornith-1.5-35B-A3B@fbb995a79eedd569a5edc5f2af9644c0fa1124fc",
|
| 10 |
+
"body_quantization": "affine4-router8-bf16-recurrence",
|
| 11 |
+
"mtp_sidecar_file": "mtp/weights.safetensors",
|
| 12 |
+
"mtp_tensor_count": 785,
|
| 13 |
+
"mtp_sidecar_format": "bf16",
|
| 14 |
+
"mtp_depth_max": 3,
|
| 15 |
+
"mtp_depth_recommended": 1,
|
| 16 |
+
"recommended_profile": "sustained",
|
| 17 |
+
"recommended_settings": {
|
| 18 |
+
"generation_mode": "mtp",
|
| 19 |
+
"depth": 1,
|
| 20 |
+
"reasoning_mode": "off",
|
| 21 |
+
"enable_thinking": false,
|
| 22 |
+
"temperature": 0.6,
|
| 23 |
+
"top_p": 0.95,
|
| 24 |
+
"top_k": 20
|
| 25 |
+
},
|
| 26 |
+
"mtp_contract": {
|
| 27 |
+
"base_hidden_variant": "post_norm",
|
| 28 |
+
"hidden_variant": "post_norm",
|
| 29 |
+
"concat_order": "embedding_hidden",
|
| 30 |
+
"mtp_position_mode": "cache",
|
| 31 |
+
"mtp_prequantized": false,
|
| 32 |
+
"mtp_sidecar_format": "bf16",
|
| 33 |
+
"mtp_source": "native-embedded-bf16"
|
| 34 |
+
},
|
| 35 |
+
"exactness_baseline": {
|
| 36 |
+
"status": "pending-local-validation",
|
| 37 |
+
"source": "native BF16 MTP tensors extracted from the pinned source model",
|
| 38 |
+
"suite": "pending mtplx inspect/tune plus text and vision smokes",
|
| 39 |
+
"sampler": "temperature=0.6, top_p=0.95, top_k=20, thinking=false",
|
| 40 |
+
"depth": 1,
|
| 41 |
+
"body_quantization_current": "affine4-router8-bf16-recurrence",
|
| 42 |
+
"body_quantization_validated": "pending",
|
| 43 |
+
"public_release_blocker": true,
|
| 44 |
+
"transfer_note": "The body is a local quantized/abliterated MLX artifact and the MTP sidecar is the model's native embedded BF16 MTP block. Keep local until MTPLX tune and API smoke validation update this block."
|
| 45 |
+
},
|
| 46 |
+
"validation_status": "locally-qualified-experimental",
|
| 47 |
+
"verified_on": {
|
| 48 |
+
"system": "Darwin",
|
| 49 |
+
"machine": "arm64",
|
| 50 |
+
"host_class": "Apple M4 Max, 64 GiB unified memory",
|
| 51 |
+
"model": "ornith-1.5-35b-a3b-affine4-router8-bf16recurrence-vision-mtplx",
|
| 52 |
+
"mtplx_version": "2.7.1",
|
| 53 |
+
"status": "locally-qualified-experimental"
|
| 54 |
+
}
|
| 55 |
+
}
|
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:5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42
|
| 3 |
+
size 12807982
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"248044": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"248045": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"248046": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"248047": {
|
| 29 |
+
"content": "<|object_ref_start|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"248048": {
|
| 37 |
+
"content": "<|object_ref_end|>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"248049": {
|
| 45 |
+
"content": "<|box_start|>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"248050": {
|
| 53 |
+
"content": "<|box_end|>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"248051": {
|
| 61 |
+
"content": "<|quad_start|>",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"248052": {
|
| 69 |
+
"content": "<|quad_end|>",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"248053": {
|
| 77 |
+
"content": "<|vision_start|>",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"248054": {
|
| 85 |
+
"content": "<|vision_end|>",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"248055": {
|
| 93 |
+
"content": "<|vision_pad|>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"248056": {
|
| 101 |
+
"content": "<|image_pad|>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"248057": {
|
| 109 |
+
"content": "<|video_pad|>",
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": false,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"248058": {
|
| 117 |
+
"content": "<tool_call>",
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": false,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": false
|
| 123 |
+
},
|
| 124 |
+
"248059": {
|
| 125 |
+
"content": "</tool_call>",
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": false,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": false
|
| 131 |
+
},
|
| 132 |
+
"248060": {
|
| 133 |
+
"content": "<|fim_prefix|>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": false
|
| 139 |
+
},
|
| 140 |
+
"248061": {
|
| 141 |
+
"content": "<|fim_middle|>",
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"rstrip": false,
|
| 145 |
+
"single_word": false,
|
| 146 |
+
"special": false
|
| 147 |
+
},
|
| 148 |
+
"248062": {
|
| 149 |
+
"content": "<|fim_suffix|>",
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"rstrip": false,
|
| 153 |
+
"single_word": false,
|
| 154 |
+
"special": false
|
| 155 |
+
},
|
| 156 |
+
"248063": {
|
| 157 |
+
"content": "<|fim_pad|>",
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"rstrip": false,
|
| 161 |
+
"single_word": false,
|
| 162 |
+
"special": false
|
| 163 |
+
},
|
| 164 |
+
"248064": {
|
| 165 |
+
"content": "<|repo_name|>",
|
| 166 |
+
"lstrip": false,
|
| 167 |
+
"normalized": false,
|
| 168 |
+
"rstrip": false,
|
| 169 |
+
"single_word": false,
|
| 170 |
+
"special": false
|
| 171 |
+
},
|
| 172 |
+
"248065": {
|
| 173 |
+
"content": "<|file_sep|>",
|
| 174 |
+
"lstrip": false,
|
| 175 |
+
"normalized": false,
|
| 176 |
+
"rstrip": false,
|
| 177 |
+
"single_word": false,
|
| 178 |
+
"special": false
|
| 179 |
+
},
|
| 180 |
+
"248066": {
|
| 181 |
+
"content": "<tool_response>",
|
| 182 |
+
"lstrip": false,
|
| 183 |
+
"normalized": false,
|
| 184 |
+
"rstrip": false,
|
| 185 |
+
"single_word": false,
|
| 186 |
+
"special": false
|
| 187 |
+
},
|
| 188 |
+
"248067": {
|
| 189 |
+
"content": "</tool_response>",
|
| 190 |
+
"lstrip": false,
|
| 191 |
+
"normalized": false,
|
| 192 |
+
"rstrip": false,
|
| 193 |
+
"single_word": false,
|
| 194 |
+
"special": false
|
| 195 |
+
},
|
| 196 |
+
"248068": {
|
| 197 |
+
"content": "<think>",
|
| 198 |
+
"lstrip": false,
|
| 199 |
+
"normalized": false,
|
| 200 |
+
"rstrip": false,
|
| 201 |
+
"single_word": false,
|
| 202 |
+
"special": false
|
| 203 |
+
},
|
| 204 |
+
"248069": {
|
| 205 |
+
"content": "</think>",
|
| 206 |
+
"lstrip": false,
|
| 207 |
+
"normalized": false,
|
| 208 |
+
"rstrip": false,
|
| 209 |
+
"single_word": false,
|
| 210 |
+
"special": false
|
| 211 |
+
},
|
| 212 |
+
"248070": {
|
| 213 |
+
"content": "<|audio_start|>",
|
| 214 |
+
"lstrip": false,
|
| 215 |
+
"normalized": false,
|
| 216 |
+
"rstrip": false,
|
| 217 |
+
"single_word": false,
|
| 218 |
+
"special": true
|
| 219 |
+
},
|
| 220 |
+
"248071": {
|
| 221 |
+
"content": "<|audio_end|>",
|
| 222 |
+
"lstrip": false,
|
| 223 |
+
"normalized": false,
|
| 224 |
+
"rstrip": false,
|
| 225 |
+
"single_word": false,
|
| 226 |
+
"special": true
|
| 227 |
+
},
|
| 228 |
+
"248072": {
|
| 229 |
+
"content": "<tts_pad>",
|
| 230 |
+
"lstrip": false,
|
| 231 |
+
"normalized": false,
|
| 232 |
+
"rstrip": false,
|
| 233 |
+
"single_word": false,
|
| 234 |
+
"special": true
|
| 235 |
+
},
|
| 236 |
+
"248073": {
|
| 237 |
+
"content": "<tts_text_bos>",
|
| 238 |
+
"lstrip": false,
|
| 239 |
+
"normalized": false,
|
| 240 |
+
"rstrip": false,
|
| 241 |
+
"single_word": false,
|
| 242 |
+
"special": true
|
| 243 |
+
},
|
| 244 |
+
"248074": {
|
| 245 |
+
"content": "<tts_text_eod>",
|
| 246 |
+
"lstrip": false,
|
| 247 |
+
"normalized": false,
|
| 248 |
+
"rstrip": false,
|
| 249 |
+
"single_word": false,
|
| 250 |
+
"special": true
|
| 251 |
+
},
|
| 252 |
+
"248075": {
|
| 253 |
+
"content": "<tts_text_bos_single>",
|
| 254 |
+
"lstrip": false,
|
| 255 |
+
"normalized": false,
|
| 256 |
+
"rstrip": false,
|
| 257 |
+
"single_word": false,
|
| 258 |
+
"special": true
|
| 259 |
+
},
|
| 260 |
+
"248076": {
|
| 261 |
+
"content": "<|audio_pad|>",
|
| 262 |
+
"lstrip": false,
|
| 263 |
+
"normalized": false,
|
| 264 |
+
"rstrip": false,
|
| 265 |
+
"single_word": false,
|
| 266 |
+
"special": true
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
"additional_special_tokens": [
|
| 270 |
+
"<|im_start|>",
|
| 271 |
+
"<|im_end|>",
|
| 272 |
+
"<|object_ref_start|>",
|
| 273 |
+
"<|object_ref_end|>",
|
| 274 |
+
"<|box_start|>",
|
| 275 |
+
"<|box_end|>",
|
| 276 |
+
"<|quad_start|>",
|
| 277 |
+
"<|quad_end|>",
|
| 278 |
+
"<|vision_start|>",
|
| 279 |
+
"<|vision_end|>",
|
| 280 |
+
"<|vision_pad|>",
|
| 281 |
+
"<|image_pad|>",
|
| 282 |
+
"<|video_pad|>"
|
| 283 |
+
],
|
| 284 |
+
"bos_token": null,
|
| 285 |
+
"chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\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>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}",
|
| 286 |
+
"clean_up_tokenization_spaces": false,
|
| 287 |
+
"eos_token": "<|im_end|>",
|
| 288 |
+
"errors": "replace",
|
| 289 |
+
"model_max_length": 262144,
|
| 290 |
+
"pad_token": "<|endoftext|>",
|
| 291 |
+
"split_special_tokens": false,
|
| 292 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 293 |
+
"unk_token": null,
|
| 294 |
+
"add_bos_token": false,
|
| 295 |
+
"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+",
|
| 296 |
+
"extra_special_tokens": {
|
| 297 |
+
"audio_bos_token": "<|audio_start|>",
|
| 298 |
+
"audio_eos_token": "<|audio_end|>",
|
| 299 |
+
"audio_token": "<|audio_pad|>",
|
| 300 |
+
"image_token": "<|image_pad|>",
|
| 301 |
+
"video_token": "<|video_pad|>",
|
| 302 |
+
"vision_bos_token": "<|vision_start|>",
|
| 303 |
+
"vision_eos_token": "<|vision_end|>"
|
| 304 |
+
}
|
| 305 |
+
}
|
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
|
|
|