Agents-A1-4B text tower as an int8hu pipelined Core AI bundle (macOS 27, gpu-pipelined-b2)
Browse files- .gitattributes +2 -0
- README.md +94 -0
- config.json +7 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/main.hash +1 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/main.mlirb +3 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/metadata.json +5 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/metadata.json +28 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/added_tokens.json +35 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/chat_template.jinja +168 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/merges.txt +0 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/special_tokens_map.json +38 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/tokenizer.json +3 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/tokenizer_config.json +311 -0
- gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: coreai
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: InternScience/Agents-A1-4B
|
| 5 |
+
tags:
|
| 6 |
+
- apple
|
| 7 |
+
- coreai
|
| 8 |
+
- aimodel
|
| 9 |
+
- on-device
|
| 10 |
+
- qwen3.5
|
| 11 |
+
- agent
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
base_model_relation: quantized
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Agents-A1-4B — Apple Core AI (`.aimodel`)
|
| 17 |
+
|
| 18 |
+
The [source card](https://huggingface.co/InternScience/Agents-A1-4B) describes the model as “Agents‑A1 is a long-horizon agentic model from InternScience”. Its declared license is `apache-2.0`.
|
| 19 |
+
This bundle converts the **TEXT tower** of the `Qwen3_5ForConditionalGeneration` checkpoint. Its `text_config` equals Qwen/Qwen3.5-4B, so the zoo's 4B recipe applies unchanged with an HF-id swap.
|
| 20 |
+
|
| 21 |
+
> [!NOTE]
|
| 22 |
+
> Exported with `coreai-core 1.0.0b2` for the Mac-class `coreai-pipelined` GPU engine on macOS 27. The canonical bundle path is `gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/`.
|
| 23 |
+
|
| 24 |
+
## Bundles
|
| 25 |
+
|
| 26 |
+
- **`gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/`**: **5,770,816,352 bytes** (5.771 GB, decimal), 11 files.
|
| 27 |
+
- `int8hu --head-sym`: transformer int8 per block of 32, with an untied vocabulary head quantized using per-block-32 absmax int8.
|
| 28 |
+
- Full LanguageBundle: `.aimodel`, `metadata.json`, and `tokenizer/`. Single-step input shape `[1,1]`; vocabulary 248320; exported maximum context 4096 tokens.
|
| 29 |
+
|
| 30 |
+
## Measured
|
| 31 |
+
|
| 32 |
+
Apple M4 Max GPU, macOS 27.0, Release tools. Correctness uses greedy `coreai-pipelined`, `COREAI_CHUNK_THRESHOLD=1`, and warmup off; the reference oracle runs fp32 on CPU.
|
| 33 |
+
|
| 34 |
+
| Check | Result |
|
| 35 |
+
|---|---|
|
| 36 |
+
| France raw prompt: `The capital of France is` | 16/16 tokens exact against fp32 CPU ([transcript](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b.json)) |
|
| 37 |
+
| Alphabet raw prompt: `The alphabet begins A, B, C, D, E, F,` | 16/16 tokens exact against fp32 CPU ([transcript](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b-alphabet.json)) |
|
| 38 |
+
| Chat no-think, `1+1=?` | `1 + 1 = 2`; 8/8 IDs exact including EOS 248046 (the [transcript](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b-chat-nothink.json) records the 7 tokens before EOS) |
|
| 39 |
+
| Tool calls, no-think | 3/3 in the template's XML format: `get_weather(Tokyo, celsius)`, `convert_currency(250, USD, EUR)`, `search_web("Swift 6.3 release notes")`; stopped at 40 / 55 / 31 tokens, with nothing after each closing tag |
|
| 40 |
+
| Swift-side template | Template applied without error; `</think>` followed by `Canberra`; stopped at 201 tokens |
|
| 41 |
+
| Eight fixed sanity questions, no-think | 8/8 expected-substring hits and 8/8 EOS stops |
|
| 42 |
+
| First / cached load (llm-runner) | 3.377 s / 0.807 s |
|
| 43 |
+
|
| 44 |
+
Decode speed: no number yet. The `llm-benchmark` run in the conversion record was taken with other GPU jobs on the machine and is not reported here; a quiet-window measurement (`-p 128 -g 256 -n 3`, Release) is added when taken.
|
| 45 |
+
|
| 46 |
+
## Run (macOS)
|
| 47 |
+
|
| 48 |
+
Use the [zoo's engine patch stack](https://github.com/john-rocky/coreai-model-zoo): `apps/coreai-shared-product.patch` followed by `apps/coreai-pipelined-extra-states.patch`. From the downloaded `gpu-pipelined-b2/` directory, run a Release build:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
COREAI_CHUNK_THRESHOLD=1 llm-benchmark --model agents_a1_4b_decode_int8hu_block32_sym -p 128 -g 256 -n 3
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
- Set `COREAI_CHUNK_THRESHOLD=1` **before engine creation** so prefill uses pipelined single-token steps.
|
| 55 |
+
- **Never call `engine.warmup()`**: it requests a query shape the static `[1,1]` graph rejects. A one-token generation after load can warm the engine.
|
| 56 |
+
- Use **Release** builds for timing.
|
| 57 |
+
|
| 58 |
+
The original chat template is preserved:
|
| 59 |
+
|
| 60 |
+
- Without a system message, it injects an **Intern-A1 deep research assistant** persona and the hard-coded **`Current date: 2026-07-14`**. An app should pass its own system message with the real date.
|
| 61 |
+
- Thinking is **on by default**. `enable_thinking=False` renders the no-think prefix.
|
| 62 |
+
- Tool calls use an XML `<function=…>` block, **not JSON**, inside `<tool_call>`. The required shape is:
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
<tool_call>
|
| 66 |
+
<function=…>
|
| 67 |
+
<parameter=…>…</parameter>
|
| 68 |
+
</function>
|
| 69 |
+
</tool_call>
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
- The chat stop token is **`<|im_end|>` (248046)**. The `text_config.eos_token_id` value **248044** is not the chat stop.
|
| 73 |
+
|
| 74 |
+
## iPhone
|
| 75 |
+
|
| 76 |
+
No iPhone bundle is provided. The 4B-class graph exceeds on-device GPU specialization and needs ahead-of-time (h18p) compilation.
|
| 77 |
+
|
| 78 |
+
## Reproduce
|
| 79 |
+
|
| 80 |
+
The [unchanged exporter](https://github.com/john-rocky/coreai-model-zoo/blob/main/conversion/export_qwen3_5_decode_pipelined.py) and [recipe](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/recipe.toml) specify the conversion:
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
python3 conversion/zoo_convert.py show agents-a1-4b
|
| 84 |
+
python3 conversion/export_qwen3_5_decode_pipelined.py int8hu --head-sym --hf-id InternScience/Agents-A1-4B
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
Gate transcripts: [gate-agents-a1-4b.json](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b.json), [gate-agents-a1-4b-alphabet.json](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b-alphabet.json), and [gate-agents-a1-4b-chat-nothink.json](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/agents-a1-4b/gate-agents-a1-4b-chat-nothink.json). Runtime and quantization details are in the zoo's [pipelined-engine notes](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/pipelined-engine.md).
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
**⬇️ Download:** [🤗 mlboydaisuke/Agents-A1-4B-CoreAI](https://huggingface.co/mlboydaisuke/Agents-A1-4B-CoreAI) — this card and the
|
| 92 |
+
model page are the same document. Reproduce it: `python3 conversion/zoo_convert.py show agents-a1-4b` prints the
|
| 93 |
+
command and its prerequisites; [`recipe.toml`](recipe.toml) is the record. Conversion and gates were run by
|
| 94 |
+
Codex (gpt-6-astra) under supervision; the transcripts above are its evidence.
|
config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "coreai-aimodel",
|
| 3 |
+
"format": "aimodel",
|
| 4 |
+
"framework": "Apple Core AI (iOS 27 / macOS 27)",
|
| 5 |
+
"repository": "https://github.com/john-rocky/coreai-model-zoo",
|
| 6 |
+
"note": "Converted .aimodel bundles for Apple's Core AI framework. See README.md for the bundle layout and run instructions."
|
| 7 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1;��)+n�B:��hh5�����j�E��_!�
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:313bb1e3292b6e02fd423afce601686835c9fa9af0ce6a8f131d45bb815f218d
|
| 3 |
+
size 5742220349
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/agents_a1_4b_decode_int8hu_block32_sym.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assetVersion" : "2.0",
|
| 3 |
+
"producer" : "coreai-core 1.0.0b2",
|
| 4 |
+
"creationDate" : "20260921T031750Z"
|
| 5 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/metadata.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata_version": "0.2",
|
| 3 |
+
"kind": "llm",
|
| 4 |
+
"name": "agents_a1_4b_decode_int8hu_block32_sym",
|
| 5 |
+
"assets": {
|
| 6 |
+
"main": "agents_a1_4b_decode_int8hu_block32_sym.aimodel"
|
| 7 |
+
},
|
| 8 |
+
"language": {
|
| 9 |
+
"tokenizer": "InternScience/Agents-A1-4B",
|
| 10 |
+
"vocab_size": 248320,
|
| 11 |
+
"max_context_length": 4096,
|
| 12 |
+
"embedded_tokenizer": true,
|
| 13 |
+
"function_map": {
|
| 14 |
+
"main": [
|
| 15 |
+
"main"
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"source": {
|
| 20 |
+
"model_definition": "torch",
|
| 21 |
+
"hf_model_id": "InternScience/Agents-A1-4B"
|
| 22 |
+
},
|
| 23 |
+
"compression": null,
|
| 24 |
+
"compilation": {
|
| 25 |
+
"date": "2026-09-21T03:17:52.611885+00:00",
|
| 26 |
+
"targets": []
|
| 27 |
+
}
|
| 28 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/added_tokens.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</think>": 248069,
|
| 3 |
+
"</tool_call>": 248059,
|
| 4 |
+
"</tool_response>": 248067,
|
| 5 |
+
"<think>": 248068,
|
| 6 |
+
"<tool_call>": 248058,
|
| 7 |
+
"<tool_response>": 248066,
|
| 8 |
+
"<tts_pad>": 248072,
|
| 9 |
+
"<tts_text_bos>": 248073,
|
| 10 |
+
"<tts_text_bos_single>": 248075,
|
| 11 |
+
"<tts_text_eod>": 248074,
|
| 12 |
+
"<|audio_end|>": 248071,
|
| 13 |
+
"<|audio_pad|>": 248076,
|
| 14 |
+
"<|audio_start|>": 248070,
|
| 15 |
+
"<|box_end|>": 248050,
|
| 16 |
+
"<|box_start|>": 248049,
|
| 17 |
+
"<|endoftext|>": 248044,
|
| 18 |
+
"<|file_sep|>": 248065,
|
| 19 |
+
"<|fim_middle|>": 248061,
|
| 20 |
+
"<|fim_pad|>": 248063,
|
| 21 |
+
"<|fim_prefix|>": 248060,
|
| 22 |
+
"<|fim_suffix|>": 248062,
|
| 23 |
+
"<|im_end|>": 248046,
|
| 24 |
+
"<|im_start|>": 248045,
|
| 25 |
+
"<|image_pad|>": 248056,
|
| 26 |
+
"<|object_ref_end|>": 248048,
|
| 27 |
+
"<|object_ref_start|>": 248047,
|
| 28 |
+
"<|quad_end|>": 248052,
|
| 29 |
+
"<|quad_start|>": 248051,
|
| 30 |
+
"<|repo_name|>": 248064,
|
| 31 |
+
"<|video_pad|>": 248057,
|
| 32 |
+
"<|vision_end|>": 248054,
|
| 33 |
+
"<|vision_pad|>": 248055,
|
| 34 |
+
"<|vision_start|>": 248053
|
| 35 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/chat_template.jinja
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{%- set default_system_prompt -%}
|
| 43 |
+
You are Intern-A1, a deep research assistant developed by InternAgent Team, Shanghai Artificial Intelligence Laboratory. 你是Intern-A1, 一个由上海人工智能实验室的InternAgent团队开发的深度研究人工智能助手。 You can have natural multi-turn conversations with users on any topic.
|
| 44 |
+
|
| 45 |
+
## Daily Chat & Simple Questions
|
| 46 |
+
For everyday conversations, greetings, opinions, coding help, factual lookups, definitions, calculations, explanations, and any question you can confidently answer from your knowledge — just respond directly and naturally in the user's language as Intern-A1. Do NOT use any tools for these.
|
| 47 |
+
|
| 48 |
+
## Research & Search Questions
|
| 49 |
+
Only when the user's question requires up-to-date information, in-depth investigation, multi-source verification, or involves recent events, niche topics, or anything you are uncertain about, use the available tools.
|
| 50 |
+
|
| 51 |
+
Research strategy:
|
| 52 |
+
- Start with a focused search query to get an overview.
|
| 53 |
+
- If the initial search is insufficient, refine your query with more specific terms.
|
| 54 |
+
- Stop searching once you have enough information to provide a comprehensive answer. Do not over-research.
|
| 55 |
+
|
| 56 |
+
Current date: 2026-07-14
|
| 57 |
+
{%- endset -%}
|
| 58 |
+
{%- if not messages %}
|
| 59 |
+
{{- raise_exception('No messages provided.') }}
|
| 60 |
+
{%- endif %}
|
| 61 |
+
{%- set user_system_content = render_content(messages[0].content, false, true)|trim if messages[0].role == 'system' else '' %}
|
| 62 |
+
{%- set system_content = user_system_content if user_system_content else default_system_prompt %}
|
| 63 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 64 |
+
{{- '<|im_start|>system\n' }}
|
| 65 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 66 |
+
{%- for tool in tools %}
|
| 67 |
+
{{- "\n" }}
|
| 68 |
+
{{- tool | tojson }}
|
| 69 |
+
{%- endfor %}
|
| 70 |
+
{{- "\n</tools>" }}
|
| 71 |
+
{{- '\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>' }}
|
| 72 |
+
{%- if system_content %}
|
| 73 |
+
{{- '\n\n' + system_content }}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{{- '<|im_end|>\n' }}
|
| 76 |
+
{%- else %}
|
| 77 |
+
{%- if system_content %}
|
| 78 |
+
{{- '<|im_start|>system\n' + system_content + '<|im_end|>\n' }}
|
| 79 |
+
{%- endif %}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 82 |
+
{%- for message in messages[::-1] %}
|
| 83 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 84 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 85 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 86 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 87 |
+
{%- set ns.multi_step_tool = false %}
|
| 88 |
+
{%- set ns.last_query_index = index %}
|
| 89 |
+
{%- endif %}
|
| 90 |
+
{%- endif %}
|
| 91 |
+
{%- endfor %}
|
| 92 |
+
{%- if ns.multi_step_tool %}
|
| 93 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 94 |
+
{%- endif %}
|
| 95 |
+
{%- for message in messages %}
|
| 96 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 97 |
+
{%- if message.role == "system" %}
|
| 98 |
+
{%- if not loop.first %}
|
| 99 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 100 |
+
{%- endif %}
|
| 101 |
+
{%- elif message.role == "user" %}
|
| 102 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 103 |
+
{%- elif message.role == "assistant" %}
|
| 104 |
+
{%- set reasoning_content = '' %}
|
| 105 |
+
{%- if message.reasoning_content is string %}
|
| 106 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 107 |
+
{%- else %}
|
| 108 |
+
{%- if '</think>' in content %}
|
| 109 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 110 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 111 |
+
{%- endif %}
|
| 112 |
+
{%- endif %}
|
| 113 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 114 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 115 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 120 |
+
{%- for tool_call in message.tool_calls %}
|
| 121 |
+
{%- if tool_call.function is defined %}
|
| 122 |
+
{%- set tool_call = tool_call.function %}
|
| 123 |
+
{%- endif %}
|
| 124 |
+
{%- if loop.first %}
|
| 125 |
+
{%- if content|trim %}
|
| 126 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 127 |
+
{%- else %}
|
| 128 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{%- else %}
|
| 131 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 132 |
+
{%- endif %}
|
| 133 |
+
{%- if tool_call.arguments is defined %}
|
| 134 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 135 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 136 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 137 |
+
{{- args_value }}
|
| 138 |
+
{{- '\n</parameter>\n' }}
|
| 139 |
+
{%- endfor %}
|
| 140 |
+
{%- endif %}
|
| 141 |
+
{{- '</function>\n</tool_call>' }}
|
| 142 |
+
{%- endfor %}
|
| 143 |
+
{%- endif %}
|
| 144 |
+
{{- '<|im_end|>\n' }}
|
| 145 |
+
{%- elif message.role == "tool" %}
|
| 146 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 147 |
+
{{- '<|im_start|>user' }}
|
| 148 |
+
{%- endif %}
|
| 149 |
+
{{- '\n<tool_response>\n' }}
|
| 150 |
+
{{- content }}
|
| 151 |
+
{{- '\n</tool_response>' }}
|
| 152 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 153 |
+
{{- '<|im_end|>\n' }}
|
| 154 |
+
{%- elif loop.last %}
|
| 155 |
+
{{- '<|im_end|>\n' }}
|
| 156 |
+
{%- endif %}
|
| 157 |
+
{%- else %}
|
| 158 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 159 |
+
{%- endif %}
|
| 160 |
+
{%- endfor %}
|
| 161 |
+
{%- if add_generation_prompt %}
|
| 162 |
+
{{- '<|im_start|>assistant\n' }}
|
| 163 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 164 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 165 |
+
{%- else %}
|
| 166 |
+
{{- '<think>\n' }}
|
| 167 |
+
{%- endif %}
|
| 168 |
+
{%- endif %}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/special_tokens_map.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"eos_token": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false
|
| 26 |
+
},
|
| 27 |
+
"image_token": "<|image_pad|>",
|
| 28 |
+
"pad_token": {
|
| 29 |
+
"content": "<|endoftext|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false
|
| 34 |
+
},
|
| 35 |
+
"video_token": "<|video_pad|>",
|
| 36 |
+
"vision_bos_token": "<|vision_start|>",
|
| 37 |
+
"vision_eos_token": "<|vision_end|>"
|
| 38 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
|
| 3 |
+
size 19989343
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"248044": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"248045": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"248046": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"248047": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"248048": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"248049": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"248050": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"248051": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"248052": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"248053": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"248054": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"248055": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"248056": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"248057": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"248058": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"248059": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"248060": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"248061": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"248062": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"248063": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"248064": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"248065": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"248066": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"248067": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"248068": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"248069": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
},
|
| 213 |
+
"248070": {
|
| 214 |
+
"content": "<|audio_start|>",
|
| 215 |
+
"lstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"rstrip": false,
|
| 218 |
+
"single_word": false,
|
| 219 |
+
"special": true
|
| 220 |
+
},
|
| 221 |
+
"248071": {
|
| 222 |
+
"content": "<|audio_end|>",
|
| 223 |
+
"lstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"rstrip": false,
|
| 226 |
+
"single_word": false,
|
| 227 |
+
"special": true
|
| 228 |
+
},
|
| 229 |
+
"248072": {
|
| 230 |
+
"content": "<tts_pad>",
|
| 231 |
+
"lstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"rstrip": false,
|
| 234 |
+
"single_word": false,
|
| 235 |
+
"special": true
|
| 236 |
+
},
|
| 237 |
+
"248073": {
|
| 238 |
+
"content": "<tts_text_bos>",
|
| 239 |
+
"lstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"rstrip": false,
|
| 242 |
+
"single_word": false,
|
| 243 |
+
"special": true
|
| 244 |
+
},
|
| 245 |
+
"248074": {
|
| 246 |
+
"content": "<tts_text_eod>",
|
| 247 |
+
"lstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"rstrip": false,
|
| 250 |
+
"single_word": false,
|
| 251 |
+
"special": true
|
| 252 |
+
},
|
| 253 |
+
"248075": {
|
| 254 |
+
"content": "<tts_text_bos_single>",
|
| 255 |
+
"lstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"rstrip": false,
|
| 258 |
+
"single_word": false,
|
| 259 |
+
"special": true
|
| 260 |
+
},
|
| 261 |
+
"248076": {
|
| 262 |
+
"content": "<|audio_pad|>",
|
| 263 |
+
"lstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"rstrip": false,
|
| 266 |
+
"single_word": false,
|
| 267 |
+
"special": true
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"additional_special_tokens": [
|
| 271 |
+
"<|im_start|>",
|
| 272 |
+
"<|im_end|>",
|
| 273 |
+
"<|object_ref_start|>",
|
| 274 |
+
"<|object_ref_end|>",
|
| 275 |
+
"<|box_start|>",
|
| 276 |
+
"<|box_end|>",
|
| 277 |
+
"<|quad_start|>",
|
| 278 |
+
"<|quad_end|>",
|
| 279 |
+
"<|vision_start|>",
|
| 280 |
+
"<|vision_end|>",
|
| 281 |
+
"<|vision_pad|>",
|
| 282 |
+
"<|image_pad|>",
|
| 283 |
+
"<|video_pad|>"
|
| 284 |
+
],
|
| 285 |
+
"audio_bos_token": "<|audio_start|>",
|
| 286 |
+
"audio_eos_token": "<|audio_end|>",
|
| 287 |
+
"audio_token": "<|audio_pad|>",
|
| 288 |
+
"bos_token": null,
|
| 289 |
+
"clean_up_tokenization_spaces": false,
|
| 290 |
+
"eos_token": "<|im_end|>",
|
| 291 |
+
"errors": "replace",
|
| 292 |
+
"extra_special_tokens": {
|
| 293 |
+
"audio_bos_token": "<|audio_start|>",
|
| 294 |
+
"audio_eos_token": "<|audio_end|>",
|
| 295 |
+
"audio_token": "<|audio_pad|>",
|
| 296 |
+
"image_token": "<|image_pad|>",
|
| 297 |
+
"video_token": "<|video_pad|>",
|
| 298 |
+
"vision_bos_token": "<|vision_start|>",
|
| 299 |
+
"vision_eos_token": "<|vision_end|>"
|
| 300 |
+
},
|
| 301 |
+
"image_token": "<|image_pad|>",
|
| 302 |
+
"model_max_length": 262144,
|
| 303 |
+
"pad_token": "<|endoftext|>",
|
| 304 |
+
"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+",
|
| 305 |
+
"split_special_tokens": false,
|
| 306 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 307 |
+
"unk_token": null,
|
| 308 |
+
"video_token": "<|video_pad|>",
|
| 309 |
+
"vision_bos_token": "<|vision_start|>",
|
| 310 |
+
"vision_eos_token": "<|vision_end|>"
|
| 311 |
+
}
|
gpu-pipelined-b2/agents_a1_4b_decode_int8hu_block32_sym/tokenizer/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|