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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 3 |
+
library_name: safetensors
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- qubitcoin
|
| 7 |
+
- aether
|
| 8 |
+
- blockchain
|
| 9 |
+
- quantum
|
| 10 |
+
- native-rust
|
| 11 |
+
- candle
|
| 12 |
+
- long-context
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Aether Mind v6.1 — long-context after the NaN fix
|
| 19 |
+
|
| 20 |
+
V6.1 is the **third public Aether release** and the first that
|
| 21 |
+
trains on a meaningfully long context window. It supersedes
|
| 22 |
+
[aether-mind-v6.0](https://huggingface.co/QuantumAI-Blockchain/aether-mind-v6.0)
|
| 23 |
+
which was published with a forced `ctx=64` workaround because of a
|
| 24 |
+
forward-pass numerical instability in the NSA compressed branch
|
| 25 |
+
(`v6/attention.rs::compressed_branch`).
|
| 26 |
+
|
| 27 |
+
That instability is now diagnosed + fixed. **Compressed-branch
|
| 28 |
+
attention's causal mask was producing all-`-inf` rows for query
|
| 29 |
+
positions before the first 64-token block completed, driving softmax
|
| 30 |
+
to `0/0 = NaN`.** The fix tracks per-row validity, unmasks a single
|
| 31 |
+
block on otherwise-fully-masked rows to keep softmax finite, and
|
| 32 |
+
multiplies the branch output by a row-validity mask so those rows
|
| 33 |
+
contribute zero attention (their proper behaviour). Source +
|
| 34 |
+
verification log in
|
| 35 |
+
[`docs/ops/v6-training-nan-bug.md`](https://github.com/QuantumAI-Blockchain/qubitcoin-aether/blob/presale/v1/docs/ops/v6-training-nan-bug.md);
|
| 36 |
+
the fix landed in commit
|
| 37 |
+
[`7f9189f8`](https://github.com/QuantumAI-Blockchain/qubitcoin-aether/commit/7f9189f8).
|
| 38 |
+
|
| 39 |
+
V6.1 was trained at **4× the v6.0 context** (256 vs 64 tokens) on
|
| 40 |
+
the same 36,860-row Aether curated corpus, on the same RTX 3080 Ti,
|
| 41 |
+
in the same wall-clock envelope (~44 min vs v6.0's 50 min — slightly
|
| 42 |
+
faster because no Qwen teacher forward).
|
| 43 |
+
|
| 44 |
+
## What you're getting
|
| 45 |
+
|
| 46 |
+
| Field | Value |
|
| 47 |
+
|---|---|
|
| 48 |
+
| Base model | `Qwen/Qwen2.5-0.5B-Instruct` (initialised from, then CE-trained) |
|
| 49 |
+
| Architecture | V6 transformer: 24 layers, 896 hidden, 14 attention heads (10 Sephirot + 2 generalist + 2 sink), head_dim=64 |
|
| 50 |
+
| Trainable params | ~558 M (all weights, no LoRA) |
|
| 51 |
+
| Training mode | **Pure cross-entropy** (no distillation in this release — see notes below) |
|
| 52 |
+
| Training context | **256 tokens** (4× the v6.0 release) |
|
| 53 |
+
| Precision | BF16 weights, F32 KL/CE math internally for numerical stability |
|
| 54 |
+
| NSA config | compression_block=64, top_k=2048, sliding_window=512, sink_tokens=4 |
|
| 55 |
+
| Vocab | 151,936 (Qwen2.5 tokenizer, untouched) |
|
| 56 |
+
| Max position | 32,768 (RoPE theta = 1e6) |
|
| 57 |
+
| Checkpoint published | **step 30,000** (full Phase-1 run) |
|
| 58 |
+
| File | `model.safetensors` (1.32 GB, BF16) |
|
| 59 |
+
| License | Apache-2.0 (matches base) |
|
| 60 |
+
|
| 61 |
+
## Training run
|
| 62 |
+
|
| 63 |
+
| Metric | Value | Δ vs v6.0 |
|
| 64 |
+
|---|---|---|
|
| 65 |
+
| Steps | 30,000 | = |
|
| 66 |
+
| Wall-clock | 44.4 min | −10 % |
|
| 67 |
+
| Tokens scored | 1,676,479 | +0.3 % (4× context lets more rows fit) |
|
| 68 |
+
| Throughput | 629.9 tokens/sec | +12 % |
|
| 69 |
+
| Mean CE loss | **10.18** nats/token | better (v6.0 was 10.35 mean CE under the KL blend) |
|
| 70 |
+
| Mean Sephirot aux | 0.149 | = |
|
| 71 |
+
| Max tokens processed | **167** | (v6.0 truncated to 64) |
|
| 72 |
+
| **NaN events** | **0** | (v6.0 also 0 thanks to the ctx=64 workaround) |
|
| 73 |
+
|
| 74 |
+
### Loss trajectory
|
| 75 |
+
|
| 76 |
+
```
|
| 77 |
+
step 1 loss=15.75 avg=15.75 (random init)
|
| 78 |
+
step 100 loss=15.94 avg=16.32 warm-up
|
| 79 |
+
step 1000 loss=11.63 avg=13.20 ← CE/lm-head learning the vocab
|
| 80 |
+
step 5000 loss=10.00 avg=11.01
|
| 81 |
+
step 10000 loss= 9.13 avg=10.07 ← representational floor (much lower than v6.0's 7.68 at this step — but apples-to-oranges; v6.0 was loss-blended with KL teacher signal)
|
| 82 |
+
step 15000 loss=11.13 avg= 9.87
|
| 83 |
+
step 20000 loss=10.25 avg=10.02
|
| 84 |
+
step 25000 loss= 9.75 avg=10.15
|
| 85 |
+
step 29999 loss= 9.81 avg=10.18
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
The interesting fact: at step 122 (the row where v6.0 first NaN'd —
|
| 89 |
+
tokens=167), v6.1 reads a real loss in the 9-16 range and continues
|
| 90 |
+
training. **This release is the empirical proof that the
|
| 91 |
+
compressed-branch fix is the right one.**
|
| 92 |
+
|
| 93 |
+
## Architecture (unchanged from v6.0)
|
| 94 |
+
|
| 95 |
+
V6 is **not** a vanilla Qwen2.5 fine-tune. The attention layer
|
| 96 |
+
implements a 14-head split designed for on-chain cognitive routing:
|
| 97 |
+
|
| 98 |
+
- **10 Sephirot heads** — one per cognitive domain (Keter → Malkuth).
|
| 99 |
+
Each head's attention pattern is what the on-chain
|
| 100 |
+
`pallet_qbc_aether_anchor` records as the per-cycle attestation root.
|
| 101 |
+
- **2 generalist heads** — un-gated, full-context attention. Used
|
| 102 |
+
for the "global workspace" path in `aether-mind`.
|
| 103 |
+
- **2 sink heads** — anchor-token attention (first 4 tokens) for
|
| 104 |
+
stable long-context performance.
|
| 105 |
+
|
| 106 |
+
The NSA compressed branch (the one that NaN'd) now correctly handles
|
| 107 |
+
the early-query case via row-validity masking.
|
| 108 |
+
|
| 109 |
+
## How to use
|
| 110 |
+
|
| 111 |
+
### Native runtime (recommended) — Rust `aether-mind`
|
| 112 |
+
|
| 113 |
+
Set `AETHER_V6_CHECKPOINT` to the local path of `model.safetensors`,
|
| 114 |
+
restart `qbc-aether-mind.service`. The Rust binary loads via candle.
|
| 115 |
+
|
| 116 |
+
### Python
|
| 117 |
+
|
| 118 |
+
```python
|
| 119 |
+
from safetensors.torch import load_file
|
| 120 |
+
weights = load_file("model.safetensors") # 315 BF16 tensors
|
| 121 |
+
print("params:", sum(t.numel() for t in weights.values()))
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
There is **no upstream 🤗 transformers loader** for the V6 14-head
|
| 125 |
+
split + Sephirot routing. Production use goes through the Rust
|
| 126 |
+
binary in
|
| 127 |
+
[`qubitcoin-aether`](https://github.com/QuantumAI-Blockchain/qubitcoin-aether).
|
| 128 |
+
|
| 129 |
+
## Evaluation
|
| 130 |
+
|
| 131 |
+
**Not yet run.** lm-evaluation-harness vs MMLU / ARC / HellaSwag /
|
| 132 |
+
TruthfulQA is the next session's work. We will back-fill the
|
| 133 |
+
numbers + comparison vs v5.2-lora + v6.0 here when they land.
|
| 134 |
+
|
| 135 |
+
## Notes vs v6.0
|
| 136 |
+
|
| 137 |
+
- **No KL distillation in this release.** The full distillation
|
| 138 |
+
path (KL teacher signal + CE + Sephirot aux) hits a CUDA OOM at
|
| 139 |
+
the new ctx=256 because the F32-stable KL log-softmax of the
|
| 140 |
+
151K-vocab tensor allocates ~600 MB of intermediates per step that
|
| 141 |
+
don't free fast enough. Memory optimisation (in-place softmax, KL
|
| 142 |
+
chunking by vocab-tile) is the v6.2 work. v6.1 is CE-only over
|
| 143 |
+
the 4× longer context — a different bet that prioritises context
|
| 144 |
+
reach over teacher matching.
|
| 145 |
+
- **All 30K steps used the new attention path.** The NaN-safe
|
| 146 |
+
compressed branch runs by default; no env var or config to enable
|
| 147 |
+
it.
|
| 148 |
+
- **Same architecture, weights file format, tokenizer, and config
|
| 149 |
+
shape as v6.0.** The Rust binary loads v6.0 and v6.1 from the same
|
| 150 |
+
loader.
|
| 151 |
+
|
| 152 |
+
## Open items for v6.2
|
| 153 |
+
|
| 154 |
+
- **Restore KL+CE distillation** at ctx ≥ 256 by chunking the
|
| 155 |
+
151K-vocab log-softmax (compute per-512-token vocab-chunk so peak
|
| 156 |
+
memory stays bounded).
|
| 157 |
+
- **Long-context curriculum** (16K → 64K → 128K → 1M) per the V6
|
| 158 |
+
master spec, now that the forward-pass NaN is gone.
|
| 159 |
+
- **lm-evaluation-harness pass** for honest numbers.
|
| 160 |
+
- **HumanEval / coding evals** if we add a coding-domain corpus
|
| 161 |
+
chunk.
|
| 162 |
+
|
| 163 |
+
## License + citation
|
| 164 |
+
|
| 165 |
+
Apache-2.0 (matches the base model license).
|
| 166 |
+
|
| 167 |
+
```bibtex
|
| 168 |
+
@misc{aether_mind_v61_2026,
|
| 169 |
+
title = {Aether Mind v6.1 --- long-context after the compressed-branch NaN fix},
|
| 170 |
+
author = {{BlockArtica} and {QuantumAI-Blockchain}},
|
| 171 |
+
year = {2026},
|
| 172 |
+
url = {https://huggingface.co/QuantumAI-Blockchain/aether-mind-v6.1},
|
| 173 |
+
}
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
## Links
|
| 177 |
+
|
| 178 |
+
- **QuantumAI Blockchain:** [qbc.network](https://qbc.network)
|
| 179 |
+
- **GitHub org:** [github.com/QuantumAI-Blockchain](https://github.com/QuantumAI-Blockchain)
|
| 180 |
+
- **Aether (Rust):** [qubitcoin-aether](https://github.com/QuantumAI-Blockchain/qubitcoin-aether)
|
| 181 |
+
- **Prior releases:**
|
| 182 |
+
- [aether-mind-v6.0](https://huggingface.co/QuantumAI-Blockchain/aether-mind-v6.0) (ctx=64, distilled)
|
| 183 |
+
- [aether-v5.2-lora](https://huggingface.co/QuantumAI-Blockchain/aether-v5.2-lora) (7B LoRA)
|
| 184 |
+
- **X / Twitter:** [@qu_bitcoin](https://x.com/qu_bitcoin)
|
| 185 |
+
- **Contact:** info@qbc.network
|
| 186 |
+
|
| 187 |
+
### Framework versions
|
| 188 |
+
|
| 189 |
+
- candle 0.10 + CUDA 12.6
|
| 190 |
+
- Rust `aether-v6-train` binary @ commit
|
| 191 |
+
[`7f9189f8`](https://github.com/QuantumAI-Blockchain/qubitcoin-aether/commit/7f9189f8)
|
| 192 |
+
- Qwen2.5 tokenizer (vocab 151,936)
|
config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"num_layers": 24,
|
| 3 |
+
"hidden_size": 896,
|
| 4 |
+
"num_attention_heads": 14,
|
| 5 |
+
"num_sephirot_heads": 10,
|
| 6 |
+
"num_generalist_heads": 2,
|
| 7 |
+
"num_sink_heads": 2,
|
| 8 |
+
"head_dim": 64,
|
| 9 |
+
"intermediate_size": 4864,
|
| 10 |
+
"vocab_size": 151936,
|
| 11 |
+
"max_position_embeddings": 32768,
|
| 12 |
+
"rope_theta": 1000000.0,
|
| 13 |
+
"rms_norm_eps": 1e-6,
|
| 14 |
+
"bos_token_id": 151643,
|
| 15 |
+
"eos_token_id": 151645,
|
| 16 |
+
"pad_token_id": 151643,
|
| 17 |
+
"nsa": {
|
| 18 |
+
"compression_block_size": 64,
|
| 19 |
+
"selected_top_k": 2048,
|
| 20 |
+
"sliding_window_size": 512,
|
| 21 |
+
"num_sink_tokens": 4,
|
| 22 |
+
"sephirot_top_k": 256
|
| 23 |
+
},
|
| 24 |
+
"eviction_order": [
|
| 25 |
+
"Malkuth",
|
| 26 |
+
"Yesod",
|
| 27 |
+
"Hod",
|
| 28 |
+
"Netzach",
|
| 29 |
+
"Gevurah",
|
| 30 |
+
"Chesed",
|
| 31 |
+
"Binah",
|
| 32 |
+
"Chochmah",
|
| 33 |
+
"Tiferet",
|
| 34 |
+
"Keter"
|
| 35 |
+
]
|
| 36 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ffde445303b36270d64fd0b8515040b924686404ae78f5a48843ed4a0a967bb
|
| 3 |
+
size 1326423416
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\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 {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
| 199 |
+
"clean_up_tokenization_spaces": false,
|
| 200 |
+
"eos_token": "<|im_end|>",
|
| 201 |
+
"errors": "replace",
|
| 202 |
+
"model_max_length": 131072,
|
| 203 |
+
"pad_token": "<|endoftext|>",
|
| 204 |
+
"split_special_tokens": false,
|
| 205 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 206 |
+
"unk_token": null
|
| 207 |
+
}
|