ctx_compress epoch 0: certificate b6fb111bb86c0f48
Browse files- LICENSE +1 -0
- README.md +58 -0
- README.miner.md +25 -0
- certificates/e0.json +128 -0
- chat_template.jinja +118 -0
- config.json +89 -0
- evidence/arena_definition.json +757 -0
- evidence/links.json +8 -0
- generation_config.json +7 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +474 -0
- special_tokens_map.json +30 -0
- system/LICENSE +8 -0
- system/README.md +115 -0
- system/config.json +17 -0
- system/escalation/patcher.py +55 -0
- system/escalation/prompts/context_compression/repair.txt +15 -0
- system/escalation/prompts/context_compression/system.txt +1 -0
- system/escalation/prompts/generic/repair.txt +12 -0
- system/escalation/prompts/generic/system.txt +1 -0
- system/escalation/prompts/sql_generation/repair.txt +14 -0
- system/escalation/prompts/sql_generation/system.txt +1 -0
- system/harness/adapters/__init__.py +22 -0
- system/harness/adapters/base.py +63 -0
- system/harness/adapters/context_compression.py +64 -0
- system/harness/adapters/generic.py +20 -0
- system/harness/adapters/sql_generation.py +75 -0
- system/harness/engine.py +71 -0
- system/harness/prompts/context_compression/retry.txt +9 -0
- system/harness/prompts/context_compression/task.txt +5 -0
- system/harness/prompts/generic/retry.txt +11 -0
- system/harness/prompts/generic/task.txt +5 -0
- system/harness/prompts/sql_generation/retry.txt +14 -0
- system/harness/prompts/sql_generation/task.txt +8 -0
- system/harness/verifier.py +9 -0
- system/main.py +116 -0
- system/manifest.json +55 -0
- system/requirements.txt +5 -0
- tokenizer.json +0 -0
- tokenizer_config.json +783 -0
LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Licensed under the Microtensor submission terms: https://www.microtensor.cloud/terms
|
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: ibm-granite/granite-4.0-h-micro
|
| 4 |
+
tags:
|
| 5 |
+
- microtensor
|
| 6 |
+
- ctx_compress
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Agent session compaction, epoch 0
|
| 10 |
+
|
| 11 |
+
This model ranked in the top 3 of a pool in the Agent session compaction arena (`ctx_compress`) on Microtensor (testnet), epoch 0. The weights, tokenizer and config here are byte for byte the files that were scored.
|
| 12 |
+
|
| 13 |
+
| Placement | Score |
|
| 14 |
+
|---|---|
|
| 15 |
+
| 1st in the Model pool | 0.871 |
|
| 16 |
+
|
| 17 |
+
## Results
|
| 18 |
+
|
| 19 |
+
| Pool | Score | Lower bound | Items | Eligible |
|
| 20 |
+
|---|---|---|---|---|
|
| 21 |
+
| Model | 0.871 | 0.867 | 25 | yes |
|
| 22 |
+
| System | 0.000 | 0.785 | 25 | no |
|
| 23 |
+
|
| 24 |
+
## Spot check
|
| 25 |
+
|
| 26 |
+
The coordinator reran 40 sampled model calls on the profile card and 40 matched token for token. First token p95 5,457 ms, per token p95 8.3 ms, within the speed limits: yes, within the memory limit: yes.
|
| 27 |
+
|
| 28 |
+
## Use it
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 32 |
+
|
| 33 |
+
tokenizer = AutoTokenizer.from_pretrained("microtensor-io/ctx_compress-e7528c49")
|
| 34 |
+
model = AutoModelForCausalLM.from_pretrained("microtensor-io/ctx_compress-e7528c49")
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## What is in this repo
|
| 38 |
+
|
| 39 |
+
| Path | Contents |
|
| 40 |
+
|---|---|
|
| 41 |
+
| root | the scored model files, unchanged |
|
| 42 |
+
| `README.miner.md` | the miner's own README, unchanged |
|
| 43 |
+
| `system/` | the rest of the scored system: manifest, harness and repair code |
|
| 44 |
+
| `training/` | the miner's training record, when the miner published one |
|
| 45 |
+
| `certificates/` | one signed certificate per epoch this artifact placed in |
|
| 46 |
+
| `evidence/` | the arena definition and links to the public records |
|
| 47 |
+
|
| 48 |
+
## Verify it
|
| 49 |
+
|
| 50 |
+
1. Take the SHA-256 of each weight file (`.safetensors` or `.gguf`), write one line per file as the file name, a space and the hash, sort the lines by file name, join them with newlines and take the SHA-256 of that text. It must equal `e7528c4970d1dd273da438528078d8f4c86d3b6651882e5183ccbbfee5b08b7f`.
|
| 51 |
+
2. Open `certificates/e0.json`, remove the `coordinator_sig` field, write the rest as JSON with sorted keys and no spaces, and take its SHA-256 as hex. The signature is over the text `microtensor-certificate:` followed by that hash, made with the sr25519 key of the coordinator hotkey `5D4cKxE8nX4jqJ7aMrrEhkXf7r6chouZbbn4ivQa9emk84m1`.
|
| 52 |
+
3. Compare the scores with the public records listed in `evidence/links.json`.
|
| 53 |
+
|
| 54 |
+
Certificate hash: `8d8d10ff168cdf2d5481d8a83e388c1477bba71b2d9a5929e338f23dcac3893d`
|
| 55 |
+
|
| 56 |
+
The certificate covers the measured results in this arena and epoch only.
|
| 57 |
+
|
| 58 |
+
Source model: `Samonte/mt_slm_ctx_compress@698535aacbd7d3555979fc0b7613d6b62dcfc895` by Samonte.
|
README.miner.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: microtensor-submission
|
| 4 |
+
license_link: https://www.microtensor.cloud/terms
|
| 5 |
+
base_model: ibm-granite/granite-4.0-h-micro
|
| 6 |
+
tags:
|
| 7 |
+
- microtensor
|
| 8 |
+
- ctx_compress
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# mt_slm_ctx_compress
|
| 12 |
+
|
| 13 |
+
A specialised model for the Microtensor `ctx_compress` arena (agent session compaction): it reads a
|
| 14 |
+
coding agent session of up to 120k tokens and writes the nine heading compaction summary.
|
| 15 |
+
|
| 16 |
+
| Field | Value |
|
| 17 |
+
|---|---|
|
| 18 |
+
| Base model | `ibm-granite/granite-4.0-h-micro` at `d5f01a3ea75f` (Apache 2.0) |
|
| 19 |
+
| Method | LoRA r=64 merged into bf16 |
|
| 20 |
+
| Arena | ctx_compress |
|
| 21 |
+
| Training data | sessions from the arena's own generator (`microtensor-io/microtensor-arenas`, `arenas/compress/synth.py`) under private seeds |
|
| 22 |
+
| Held out result | see training/runs |
|
| 23 |
+
|
| 24 |
+
The root loads with `AutoModelForCausalLM`. Everything under `training/` is the record validators
|
| 25 |
+
require and the archive keeps; it is never scored.
|
certificates/e0.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"arena": {
|
| 3 |
+
"close_block": 8376963,
|
| 4 |
+
"definition_sha256": "252775fb6794d4cfaa29738635e65c010597aa7de2ee3bef9d9d093f98781271",
|
| 5 |
+
"end_block": 8378763,
|
| 6 |
+
"epoch": 0,
|
| 7 |
+
"id": "ctx_compress",
|
| 8 |
+
"open_block": 8363631
|
| 9 |
+
},
|
| 10 |
+
"artifact": {
|
| 11 |
+
"archive": "hf:microtensor-io/ctx_compress-e7528c49",
|
| 12 |
+
"code": "hf:Samonte/microtensor_ctx_compress@868e04b7763ca49aab19e2d93cfca8eb256dc5ce",
|
| 13 |
+
"manifest_sha256": "7e438ec45e2204c2066237ad371875363d60fe61de15ab19c6790c18d84d846a",
|
| 14 |
+
"model": "hf:Samonte/mt_slm_ctx_compress@698535aacbd7d3555979fc0b7613d6b62dcfc895",
|
| 15 |
+
"parameters": 3191396096,
|
| 16 |
+
"weights_sha256": "e7528c4970d1dd273da438528078d8f4c86d3b6651882e5183ccbbfee5b08b7f"
|
| 17 |
+
},
|
| 18 |
+
"certificate": "mt-cert-ctx_compress-e0-5HEtPjha",
|
| 19 |
+
"checks": [
|
| 20 |
+
{
|
| 21 |
+
"name": "provenance",
|
| 22 |
+
"passed": true
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "not_a_copy",
|
| 26 |
+
"passed": true
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "envelope",
|
| 30 |
+
"passed": true
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "speed",
|
| 34 |
+
"passed": true
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "memorisation",
|
| 38 |
+
"passed": true
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name": "licence",
|
| 42 |
+
"passed": true
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "format",
|
| 46 |
+
"passed": true
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"coordinator_sig": "aa440f773d28004248ce3dcae06f2b7a343887b39d6b7eaffb5f5035615c3c0ce537f6b6156024d57a734fc04762b1c45d07d00871673e680ada2e2e1c51c680",
|
| 50 |
+
"evidence": {
|
| 51 |
+
"coordinator_report_digest": "d6826284848283bf53f7664a803fc589f610c77487afa1876122cd70dce4554a",
|
| 52 |
+
"epoch_seed": "3e68db72aaa0bb9a95a38df00e39d66c340895309f7aab58024c8fc657ddfdde",
|
| 53 |
+
"inputs_bundle_sha256": "2593558b701d1ad8b6c3bd566f71954ccd9d3ef592d908b4801af257ad9d3ddd",
|
| 54 |
+
"receipts_digest": "74537492e8db13ac22f5990e189eef81dea74561c21b9db90b21107d8dceb9df",
|
| 55 |
+
"transcript_sha256": "d175f974414cdbee78d8c563a8bbf2b6d592b32440024cdf955dea99fd1bd7ad"
|
| 56 |
+
},
|
| 57 |
+
"hardware": {
|
| 58 |
+
"profile": "P1"
|
| 59 |
+
},
|
| 60 |
+
"issued_at": "2026-11-05T12:13:02+00:00",
|
| 61 |
+
"issuer": {
|
| 62 |
+
"hotkey": "5D4cKxE8nX4jqJ7aMrrEhkXf7r6chouZbbn4ivQa9emk84m1",
|
| 63 |
+
"role": "coordinator"
|
| 64 |
+
},
|
| 65 |
+
"miner": {
|
| 66 |
+
"commit_block": 8355571,
|
| 67 |
+
"hf_user": "Samonte",
|
| 68 |
+
"hotkey": "5HEtPjhaCs859sdCjMG1a3TEZWFftKRs4VAYzCjnNUf82iDL",
|
| 69 |
+
"uid": 2
|
| 70 |
+
},
|
| 71 |
+
"network": "testnet",
|
| 72 |
+
"placements": [
|
| 73 |
+
{
|
| 74 |
+
"pool": "slm",
|
| 75 |
+
"rank": 1,
|
| 76 |
+
"score": 0.8708
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"provenance": {
|
| 80 |
+
"base": "ibm-granite/granite-4.0-h-micro",
|
| 81 |
+
"base_revision": "d5f01a3ea75f088947be3aae039f4ad52837dfde"
|
| 82 |
+
},
|
| 83 |
+
"results": {
|
| 84 |
+
"slm": {
|
| 85 |
+
"beats_base_lb": 0.830435,
|
| 86 |
+
"efficiency": 0.018258,
|
| 87 |
+
"eligible": true,
|
| 88 |
+
"items": 25,
|
| 89 |
+
"lower_bound": 0.8668,
|
| 90 |
+
"passed": 25,
|
| 91 |
+
"point": 1.0,
|
| 92 |
+
"score": 0.8708,
|
| 93 |
+
"twin_gap": 0.0,
|
| 94 |
+
"twin_rate": 1.0,
|
| 95 |
+
"versus_reference_lb": 0.830435
|
| 96 |
+
},
|
| 97 |
+
"system": {
|
| 98 |
+
"eligible": false,
|
| 99 |
+
"floors_met": [],
|
| 100 |
+
"items": 25,
|
| 101 |
+
"lower_bound": 0.7848,
|
| 102 |
+
"point": 0.0,
|
| 103 |
+
"score": 0.0
|
| 104 |
+
}
|
| 105 |
+
},
|
| 106 |
+
"software": {
|
| 107 |
+
"engine": "vllm/vllm-openai:v0.32.0@sha256:6ee133356d49ed24cee03dd0cda3d3980279a11c107ce3e752c89e76540f41c9",
|
| 108 |
+
"llama": "ghcr.io/ggml-org/llama.cpp:server@sha256:43b3988c22c00faae3d04a8f6e3eba41403dff7c5f5952490599f1bcbdc6f3c2",
|
| 109 |
+
"replayer": "ghcr.io/microtensor-io/replayer:1@sha256:5e7c5e59ca2b14b282859946113212a60868973f663cc53af3495c7d27253f80",
|
| 110 |
+
"runner": "ghcr.io/microtensor-io/runner:1@sha256:f7a57bb476f5e6b12bb1f58c2a27d30d7a26ac646791d820b036cd9ce41bd544",
|
| 111 |
+
"sandbox": "ghcr.io/microtensor-io/sandbox:1@sha256:6813266e01286470189820ab93a4547fc1496f1f99fc5d0c697ff15ca4160f29"
|
| 112 |
+
},
|
| 113 |
+
"spot_check": {
|
| 114 |
+
"calls": 40,
|
| 115 |
+
"e2e_p95_ms": 8125.5,
|
| 116 |
+
"envelope_ok": true,
|
| 117 |
+
"evidence": 0,
|
| 118 |
+
"matched": 40,
|
| 119 |
+
"memory_ok": true,
|
| 120 |
+
"mismatched": 0,
|
| 121 |
+
"tpot_p95_ms": 8.3,
|
| 122 |
+
"ttft_p95_ms": 5457.0,
|
| 123 |
+
"vram_peak_bytes": 22988980224
|
| 124 |
+
},
|
| 125 |
+
"status": "ranked",
|
| 126 |
+
"version": "c1"
|
| 127 |
+
}c1"
|
| 128 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set tools_system_message_prefix = 'You are a helpful assistant with access to the following tools. You may call one or more tools to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>' %}
|
| 2 |
+
{%- set tools_system_message_suffix = '\n</tools>\n\nFor each tool 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>. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.' %}
|
| 3 |
+
{%- set documents_system_message_prefix = 'You are a helpful assistant with access to the following documents. You may use one or more documents to assist with the user query.\n\nYou are given a list of documents within <documents></documents> XML tags:\n<documents>' %}
|
| 4 |
+
{%- set documents_system_message_suffix = '\n</documents>\n\nWrite the response to the user\'s input by strictly aligning with the facts in the provided documents. If the information needed to answer the question is not available in the documents, inform the user that the question cannot be answered based on the available data.' %}
|
| 5 |
+
{%- set g4_default_system_message = 'You are a helpful assistant. Please ensure responses are professional, accurate, and safe.' %}
|
| 6 |
+
{%- if available_tools is defined and available_tools %}
|
| 7 |
+
{%- set tools = available_tools %}
|
| 8 |
+
{%- endif %}
|
| 9 |
+
{%- set ns = namespace(tools_system_message=tools_system_message_prefix,
|
| 10 |
+
documents_system_message=documents_system_message_prefix,
|
| 11 |
+
default_system_message=g4_default_system_message,
|
| 12 |
+
system_message=''
|
| 13 |
+
) %}
|
| 14 |
+
{%- if tools %}
|
| 15 |
+
{%- for tool in tools %}
|
| 16 |
+
{%- set ns.tools_system_message = ns.tools_system_message + '\n' + (tool | tojson) %}
|
| 17 |
+
{%- endfor %}
|
| 18 |
+
{%- set ns.tools_system_message = ns.tools_system_message + tools_system_message_suffix %}
|
| 19 |
+
{%- else %}
|
| 20 |
+
{%- set ns.tools_system_message = '' %}
|
| 21 |
+
{%- endif %}
|
| 22 |
+
{%- if documents %}
|
| 23 |
+
{%- for document in documents %}
|
| 24 |
+
{%- set ns.documents_system_message = ns.documents_system_message + '\n' + (document | tojson) %}
|
| 25 |
+
{%- endfor %}
|
| 26 |
+
{%- set ns.documents_system_message = ns.documents_system_message + documents_system_message_suffix %}
|
| 27 |
+
{%- else %}
|
| 28 |
+
{%- set ns.documents_system_message = '' %}
|
| 29 |
+
{%- endif %}
|
| 30 |
+
{%- if messages[0].role == 'system' %}
|
| 31 |
+
{%- if messages[0].content is string %}
|
| 32 |
+
{%- set ns.system_message = messages[0].content %}
|
| 33 |
+
{%- elif messages[0].content is iterable %}
|
| 34 |
+
{%- for entry in messages[0].content %}
|
| 35 |
+
{%- if entry.type== 'text' %}
|
| 36 |
+
{%- if ns.system_message != '' %}
|
| 37 |
+
{%- set ns.system_message = ns.system_message + '\n' %}
|
| 38 |
+
{%- endif %}
|
| 39 |
+
{%- set ns.system_message = ns.system_message + entry.text %}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endfor %}
|
| 42 |
+
{%- endif %}
|
| 43 |
+
{%- if tools and documents %}
|
| 44 |
+
{%- set ns.system_message = ns.system_message + '\n\n' + ns.tools_system_message + '\n\n' + ns.documents_system_message %}
|
| 45 |
+
{%- elif tools %}
|
| 46 |
+
{%- set ns.system_message = ns.system_message + '\n\n' + ns.tools_system_message %}
|
| 47 |
+
{%- elif documents %}
|
| 48 |
+
{%- set ns.system_message = ns.system_message + '\n\n' + ns.documents_system_message %}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- else %}
|
| 51 |
+
{%- if tools and documents %}
|
| 52 |
+
{%- set ns.system_message = ns.tools_system_message + '\n\n' + ns.documents_system_message %}
|
| 53 |
+
{%- elif tools %}
|
| 54 |
+
{%- set ns.system_message = ns.tools_system_message %}
|
| 55 |
+
{%- elif documents %}
|
| 56 |
+
{%- set ns.system_message = ns.documents_system_message %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- if ns.system_message %}
|
| 60 |
+
{{- '<|start_of_role|>system<|end_of_role|>' + ns.system_message + '<|end_of_text|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{{- '<|start_of_role|>system<|end_of_role|>' + ns.default_system_message + '<|end_of_text|>\n' }}
|
| 63 |
+
{%- endif %}
|
| 64 |
+
{%- for message in messages %}
|
| 65 |
+
{%- set content = namespace(val='') %}
|
| 66 |
+
{%- if message.content is string %}
|
| 67 |
+
{%- set content.val = message.content %}
|
| 68 |
+
{%- else %}
|
| 69 |
+
{%- if message.content is iterable %}
|
| 70 |
+
{%- for entry in message.content %}
|
| 71 |
+
{%- if entry.type== 'text' %}
|
| 72 |
+
{%- if content.val != '' %}
|
| 73 |
+
{%- set content.val = content.val + '\n' %}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- set content.val = content.val + entry.text %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- endif %}
|
| 79 |
+
{%- endif %}
|
| 80 |
+
{%- if (message.role == 'user') or (message.role == 'system' and not loop.first) %}
|
| 81 |
+
{{- '<|start_of_role|>' + message.role + '<|end_of_role|>' + content.val + '<|end_of_text|>\n' }}
|
| 82 |
+
{%- elif message.role == 'assistant' %}
|
| 83 |
+
{{- '<|start_of_role|>' + message.role + '<|end_of_role|>' + content.val }}
|
| 84 |
+
{%- if message.tool_calls %}
|
| 85 |
+
{%- for tool_call in message.tool_calls %}
|
| 86 |
+
{%- if (loop.first and content.val) or (not loop.first) %}
|
| 87 |
+
{{- '\n' }}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{%- if tool_call.function %}
|
| 90 |
+
{%- set tool_call = tool_call.function %}
|
| 91 |
+
{%- endif %}
|
| 92 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 93 |
+
{{- tool_call.name }}
|
| 94 |
+
{{- '", "arguments": ' }}
|
| 95 |
+
{%- if tool_call.arguments is string %}
|
| 96 |
+
{{- tool_call.arguments }}
|
| 97 |
+
{%- else %}
|
| 98 |
+
{{- tool_call.arguments | tojson }}
|
| 99 |
+
{%- endif %}
|
| 100 |
+
{{- '}\n</tool_call>' }}
|
| 101 |
+
{%- endfor %}
|
| 102 |
+
{%- endif %}
|
| 103 |
+
{{- '<|end_of_text|>\n' }}
|
| 104 |
+
{%- elif message.role == 'tool' %}
|
| 105 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != 'tool') %}
|
| 106 |
+
{{- '<|start_of_role|>user<|end_of_role|>' }}
|
| 107 |
+
{%- endif %}
|
| 108 |
+
{{- '\n<tool_response>\n' }}
|
| 109 |
+
{{- content.val }}
|
| 110 |
+
{{- '\n</tool_response>' }}
|
| 111 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != 'tool') %}
|
| 112 |
+
{{- '<|end_of_text|>\n' }}
|
| 113 |
+
{%- endif %}
|
| 114 |
+
{%- endif %}
|
| 115 |
+
{%- endfor %}
|
| 116 |
+
{%- if add_generation_prompt %}
|
| 117 |
+
{{- '<|start_of_role|>assistant<|end_of_role|>' }}
|
| 118 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"GraniteMoeHybridForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"attention_multiplier": 0.015625,
|
| 8 |
+
"bos_token_id": 100257,
|
| 9 |
+
"embedding_multiplier": 12,
|
| 10 |
+
"eos_token_id": 100257,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 2048,
|
| 13 |
+
"initializer_range": 0.1,
|
| 14 |
+
"intermediate_size": 8192,
|
| 15 |
+
"layer_types": [
|
| 16 |
+
"mamba",
|
| 17 |
+
"mamba",
|
| 18 |
+
"mamba",
|
| 19 |
+
"mamba",
|
| 20 |
+
"mamba",
|
| 21 |
+
"attention",
|
| 22 |
+
"mamba",
|
| 23 |
+
"mamba",
|
| 24 |
+
"mamba",
|
| 25 |
+
"mamba",
|
| 26 |
+
"mamba",
|
| 27 |
+
"mamba",
|
| 28 |
+
"mamba",
|
| 29 |
+
"mamba",
|
| 30 |
+
"mamba",
|
| 31 |
+
"attention",
|
| 32 |
+
"mamba",
|
| 33 |
+
"mamba",
|
| 34 |
+
"mamba",
|
| 35 |
+
"mamba",
|
| 36 |
+
"mamba",
|
| 37 |
+
"mamba",
|
| 38 |
+
"mamba",
|
| 39 |
+
"mamba",
|
| 40 |
+
"mamba",
|
| 41 |
+
"attention",
|
| 42 |
+
"mamba",
|
| 43 |
+
"mamba",
|
| 44 |
+
"mamba",
|
| 45 |
+
"mamba",
|
| 46 |
+
"mamba",
|
| 47 |
+
"mamba",
|
| 48 |
+
"mamba",
|
| 49 |
+
"mamba",
|
| 50 |
+
"mamba",
|
| 51 |
+
"attention",
|
| 52 |
+
"mamba",
|
| 53 |
+
"mamba",
|
| 54 |
+
"mamba",
|
| 55 |
+
"mamba"
|
| 56 |
+
],
|
| 57 |
+
"logits_scaling": 8,
|
| 58 |
+
"mamba_chunk_size": 256,
|
| 59 |
+
"mamba_conv_bias": true,
|
| 60 |
+
"mamba_d_conv": 4,
|
| 61 |
+
"mamba_d_head": 64,
|
| 62 |
+
"mamba_d_state": 128,
|
| 63 |
+
"mamba_expand": 2,
|
| 64 |
+
"mamba_n_groups": 1,
|
| 65 |
+
"mamba_n_heads": 64,
|
| 66 |
+
"mamba_proj_bias": false,
|
| 67 |
+
"max_position_embeddings": 131072,
|
| 68 |
+
"model_type": "granitemoehybrid",
|
| 69 |
+
"normalization_function": "rmsnorm",
|
| 70 |
+
"num_attention_heads": 32,
|
| 71 |
+
"num_experts_per_tok": 0,
|
| 72 |
+
"num_hidden_layers": 40,
|
| 73 |
+
"num_key_value_heads": 8,
|
| 74 |
+
"num_local_experts": 0,
|
| 75 |
+
"output_router_logits": false,
|
| 76 |
+
"pad_token_id": 100256,
|
| 77 |
+
"position_embedding_type": "nope",
|
| 78 |
+
"residual_multiplier": 0.22,
|
| 79 |
+
"rms_norm_eps": 1e-05,
|
| 80 |
+
"rope_scaling": null,
|
| 81 |
+
"rope_theta": 10000,
|
| 82 |
+
"router_aux_loss_coef": 0.01,
|
| 83 |
+
"shared_intermediate_size": 8192,
|
| 84 |
+
"tie_word_embeddings": true,
|
| 85 |
+
"torch_dtype": "bfloat16",
|
| 86 |
+
"transformers_version": "4.56.0",
|
| 87 |
+
"use_cache": true,
|
| 88 |
+
"vocab_size": 100352
|
| 89 |
+
}
|
evidence/arena_definition.json
ADDED
|
@@ -0,0 +1,757 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"aliases": [
|
| 3 |
+
"context-compression",
|
| 4 |
+
"compaction",
|
| 5 |
+
"compact"
|
| 6 |
+
],
|
| 7 |
+
"allowed_bases": [
|
| 8 |
+
"ibm-granite/granite-4.0-h-micro"
|
| 9 |
+
],
|
| 10 |
+
"allowed_formats": [
|
| 11 |
+
"bf16",
|
| 12 |
+
"fp16",
|
| 13 |
+
"awq",
|
| 14 |
+
"gptq"
|
| 15 |
+
],
|
| 16 |
+
"allowed_licenses": [
|
| 17 |
+
"apache-2.0"
|
| 18 |
+
],
|
| 19 |
+
"baseline_models": [
|
| 20 |
+
{
|
| 21 |
+
"model": "claude-haiku-5-5",
|
| 22 |
+
"provider": "openrouter",
|
| 23 |
+
"usd_in_per_mtok": 0.1,
|
| 24 |
+
"usd_out_per_mtok": 0.5,
|
| 25 |
+
"version": "anthropic/claude-haiku-5.5"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"model": "glm-5-3-flash",
|
| 29 |
+
"provider": "openrouter",
|
| 30 |
+
"usd_in_per_mtok": 0.048,
|
| 31 |
+
"usd_out_per_mtok": 0.2,
|
| 32 |
+
"version": "z-ai/glm-5.3-flash"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"budgets": {
|
| 36 |
+
"image": {
|
| 37 |
+
"max_long_side_px": 2048,
|
| 38 |
+
"max_pixels": 3145728,
|
| 39 |
+
"page_time_p95_ms": 15000,
|
| 40 |
+
"pages_per_call": 1
|
| 41 |
+
},
|
| 42 |
+
"long_input": {
|
| 43 |
+
"above_tokens": 32768,
|
| 44 |
+
"e2e_p95_ms": 75000,
|
| 45 |
+
"ttft_p95_ms": 25000
|
| 46 |
+
},
|
| 47 |
+
"max_input_tokens": 122880,
|
| 48 |
+
"max_output_tokens": 3072,
|
| 49 |
+
"max_parameters": 8000000000,
|
| 50 |
+
"memory_bytes": 25769803776,
|
| 51 |
+
"memory_gb": 24,
|
| 52 |
+
"min_parameters": 0,
|
| 53 |
+
"tpot_ms": 20,
|
| 54 |
+
"ttft_ms": 4000,
|
| 55 |
+
"vram_bytes": 25769803776,
|
| 56 |
+
"vram_gb": 24
|
| 57 |
+
},
|
| 58 |
+
"chat": {
|
| 59 |
+
"classifier_text": "user",
|
| 60 |
+
"fields": {
|
| 61 |
+
"system": "system",
|
| 62 |
+
"user": "user"
|
| 63 |
+
},
|
| 64 |
+
"hint": "Send the compaction instruction as the system message and the canonically rendered session inside <session> tags as the user message."
|
| 65 |
+
},
|
| 66 |
+
"dataset": {
|
| 67 |
+
"about": "Coding agent sessions generated by Microtensor: a coined Python project with one injected bug, worked by a scripted agent whose every tool result is the real output of the real command, recorded in the Anthropic Messages shape and rendered canonically. The public dev split holds 2,000 sessions; hidden items come from the same generator under a secret seed and never leave validators.",
|
| 68 |
+
"licence": "Microtensor dataset terms",
|
| 69 |
+
"name": "microtensor-io/agent-sessions",
|
| 70 |
+
"note": "Generated agent sessions with real tool output; dev split public, hidden items from a secret seed.",
|
| 71 |
+
"url": "https://huggingface.co/datasets/microtensor-io/agent-sessions"
|
| 72 |
+
},
|
| 73 |
+
"envelope": {
|
| 74 |
+
"device": "gpu",
|
| 75 |
+
"docs": "https://microtensor.cloud/docs/certified-inference/system/envelope-groups",
|
| 76 |
+
"group": "mt-5",
|
| 77 |
+
"limits": {
|
| 78 |
+
"formats": [
|
| 79 |
+
"safetensors"
|
| 80 |
+
],
|
| 81 |
+
"image": {
|
| 82 |
+
"max_long_side_px": 2048,
|
| 83 |
+
"max_pixels": 3145728,
|
| 84 |
+
"page_time_p95_ms": 15000,
|
| 85 |
+
"pages_per_call": 1
|
| 86 |
+
},
|
| 87 |
+
"long_input": {
|
| 88 |
+
"above_tokens": 32768,
|
| 89 |
+
"e2e_p95_ms": 75000,
|
| 90 |
+
"ttft_p95_ms": 25000
|
| 91 |
+
},
|
| 92 |
+
"max_input_tokens": 122880,
|
| 93 |
+
"max_output_tokens": 3072,
|
| 94 |
+
"memory_gb": 24,
|
| 95 |
+
"parameters": {
|
| 96 |
+
"max": 8000000000
|
| 97 |
+
},
|
| 98 |
+
"precision": [
|
| 99 |
+
"bf16",
|
| 100 |
+
"fp16",
|
| 101 |
+
"awq",
|
| 102 |
+
"gptq"
|
| 103 |
+
],
|
| 104 |
+
"tpot_p95_ms": 20,
|
| 105 |
+
"ttft_p95_ms": 4000
|
| 106 |
+
},
|
| 107 |
+
"name": "Small GPU",
|
| 108 |
+
"overrides": {
|
| 109 |
+
"long_input": {
|
| 110 |
+
"e2e_p95_ms": 75000,
|
| 111 |
+
"ttft_p95_ms": 25000
|
| 112 |
+
},
|
| 113 |
+
"max_input_tokens": 122880,
|
| 114 |
+
"max_output_tokens": 3072,
|
| 115 |
+
"tpot_p95_ms": 20
|
| 116 |
+
},
|
| 117 |
+
"reference": {
|
| 118 |
+
"gpus": 1,
|
| 119 |
+
"machine": "named after the benchmark",
|
| 120 |
+
"memory_gb": 24
|
| 121 |
+
},
|
| 122 |
+
"runtime": "vLLM",
|
| 123 |
+
"version": 6,
|
| 124 |
+
"violation_share": 0.01
|
| 125 |
+
},
|
| 126 |
+
"evaluation": {
|
| 127 |
+
"ban": {
|
| 128 |
+
"confirmations": 2,
|
| 129 |
+
"epochs": 3
|
| 130 |
+
},
|
| 131 |
+
"canaries": {
|
| 132 |
+
"count": 3
|
| 133 |
+
},
|
| 134 |
+
"computed_cost": {
|
| 135 |
+
"bytes_per_weight": {
|
| 136 |
+
"awq": 0.5,
|
| 137 |
+
"bf16": 2,
|
| 138 |
+
"fp16": 2,
|
| 139 |
+
"gguf_q4": 0.5,
|
| 140 |
+
"gguf_q8": 1,
|
| 141 |
+
"gptq": 0.5
|
| 142 |
+
},
|
| 143 |
+
"cap_units_per_item": 0
|
| 144 |
+
},
|
| 145 |
+
"grader_type": "model_assisted",
|
| 146 |
+
"images": {
|
| 147 |
+
"engine": {
|
| 148 |
+
"digest": "sha256:6ee133356d49ed24cee03dd0cda3d3980279a11c107ce3e752c89e76540f41c9",
|
| 149 |
+
"image": "vllm/vllm-openai:v0.32.0"
|
| 150 |
+
},
|
| 151 |
+
"llama": {
|
| 152 |
+
"digest": "sha256:43b3988c22c00faae3d04a8f6e3eba41403dff7c5f5952490599f1bcbdc6f3c2",
|
| 153 |
+
"image": "ghcr.io/ggml-org/llama.cpp:server"
|
| 154 |
+
},
|
| 155 |
+
"replayer": {
|
| 156 |
+
"digest": "sha256:5e7c5e59ca2b14b282859946113212a60868973f663cc53af3495c7d27253f80",
|
| 157 |
+
"image": "ghcr.io/microtensor-io/replayer:1"
|
| 158 |
+
},
|
| 159 |
+
"runner": {
|
| 160 |
+
"digest": "sha256:f7a57bb476f5e6b12bb1f58c2a27d30d7a26ac646791d820b036cd9ce41bd544",
|
| 161 |
+
"image": "ghcr.io/microtensor-io/runner:1"
|
| 162 |
+
},
|
| 163 |
+
"sandbox": {
|
| 164 |
+
"digest": "sha256:6813266e01286470189820ab93a4547fc1496f1f99fc5d0c697ff15ca4160f29",
|
| 165 |
+
"image": "ghcr.io/microtensor-io/sandbox:1"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
"mode": "miner",
|
| 169 |
+
"probe": {
|
| 170 |
+
"file": "qwen2.5-1.5b-instruct-q8_0.gguf",
|
| 171 |
+
"max_input_tokens": 8192,
|
| 172 |
+
"max_tokens": 64,
|
| 173 |
+
"model": "Qwen/Qwen2.5-1.5B-Instruct-GGUF",
|
| 174 |
+
"revision": "91cad51170dc346986eccefdc2dd33a9da36ead9"
|
| 175 |
+
},
|
| 176 |
+
"profiles": [
|
| 177 |
+
"P1"
|
| 178 |
+
],
|
| 179 |
+
"relay_allowance_micros": 5000000,
|
| 180 |
+
"release": {
|
| 181 |
+
"inputs": "window_open",
|
| 182 |
+
"labels": "after_freeze_2"
|
| 183 |
+
},
|
| 184 |
+
"spot_check": {
|
| 185 |
+
"min_calls": 40,
|
| 186 |
+
"reference_calls": 10,
|
| 187 |
+
"validators_per_miner": 2
|
| 188 |
+
},
|
| 189 |
+
"stand_in_signers": [
|
| 190 |
+
"5D4cKxE8nX4jqJ7aMrrEhkXf7r6chouZbbn4ivQa9emk84m1"
|
| 191 |
+
]
|
| 192 |
+
},
|
| 193 |
+
"fee_coldkey": "5G9ca9pgbCa63aJWbDAF3dNLhUtbFDYf1fnPMnByf9uyUNFh",
|
| 194 |
+
"fee_tao": 0.0,
|
| 195 |
+
"floors": [
|
| 196 |
+
0.8,
|
| 197 |
+
0.9,
|
| 198 |
+
0.95,
|
| 199 |
+
0.99
|
| 200 |
+
],
|
| 201 |
+
"generation": {
|
| 202 |
+
"max_tokens": 3072,
|
| 203 |
+
"stop": [
|
| 204 |
+
"<|end_of_text|>"
|
| 205 |
+
]
|
| 206 |
+
},
|
| 207 |
+
"grader": "context_compression",
|
| 208 |
+
"grading": {
|
| 209 |
+
"cuts": [
|
| 210 |
+
81920,
|
| 211 |
+
122880
|
| 212 |
+
],
|
| 213 |
+
"headings": [
|
| 214 |
+
"Primary request and intent",
|
| 215 |
+
"Key technical concepts",
|
| 216 |
+
"Files and code sections",
|
| 217 |
+
"Errors and fixes",
|
| 218 |
+
"Problem solving",
|
| 219 |
+
"All user messages",
|
| 220 |
+
"Pending tasks",
|
| 221 |
+
"Current work",
|
| 222 |
+
"Next step"
|
| 223 |
+
],
|
| 224 |
+
"max_output_share": 0.05,
|
| 225 |
+
"max_output_tokens": 3072,
|
| 226 |
+
"min_output_tokens": 1000,
|
| 227 |
+
"pass_threshold": 0.6,
|
| 228 |
+
"tokenizer": "ibm-granite/granite-4.0-h-micro"
|
| 229 |
+
},
|
| 230 |
+
"guide": null,
|
| 231 |
+
"hardware_classes": [
|
| 232 |
+
"gpu_24gb"
|
| 233 |
+
],
|
| 234 |
+
"item_counts": {
|
| 235 |
+
"escalation": 25,
|
| 236 |
+
"harness": 25,
|
| 237 |
+
"router": 60,
|
| 238 |
+
"slm": 25,
|
| 239 |
+
"system": 25
|
| 240 |
+
},
|
| 241 |
+
"limits": {
|
| 242 |
+
"harness": {
|
| 243 |
+
"added_wall_p95_ms": 3000,
|
| 244 |
+
"faults": "model",
|
| 245 |
+
"max_model_calls": 2,
|
| 246 |
+
"max_steps": 32,
|
| 247 |
+
"max_total_tokens": 200000,
|
| 248 |
+
"request_timeout_s": 120
|
| 249 |
+
},
|
| 250 |
+
"router": {
|
| 251 |
+
"latency_gate_ms": 300,
|
| 252 |
+
"max_input_tokens": 8192,
|
| 253 |
+
"max_parameters": 1500000000
|
| 254 |
+
}
|
| 255 |
+
},
|
| 256 |
+
"modality": "text",
|
| 257 |
+
"primary_metric": "item_score_pass_rate",
|
| 258 |
+
"r_class": {
|
| 259 |
+
"1b": 0.02,
|
| 260 |
+
"3b": 0.05,
|
| 261 |
+
"8b": 0.1
|
| 262 |
+
},
|
| 263 |
+
"references": {
|
| 264 |
+
"slm": "ibm-granite/granite-4.0-h-micro",
|
| 265 |
+
"slm_revision": "d5f01a3ea75f088947be3aae039f4ad52837dfde"
|
| 266 |
+
},
|
| 267 |
+
"schemas": {
|
| 268 |
+
"input": {
|
| 269 |
+
"additionalProperties": false,
|
| 270 |
+
"properties": {
|
| 271 |
+
"system": {
|
| 272 |
+
"type": "string"
|
| 273 |
+
},
|
| 274 |
+
"user": {
|
| 275 |
+
"type": "string"
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"required": [
|
| 279 |
+
"system",
|
| 280 |
+
"user"
|
| 281 |
+
],
|
| 282 |
+
"type": "object"
|
| 283 |
+
},
|
| 284 |
+
"output": {
|
| 285 |
+
"description": "Plain markdown with the nine headings in order as level two headings, nothing before the first.",
|
| 286 |
+
"pattern": "^## Primary request and intent(?:\\n[\\s\\S]*?)?\\n## Key technical concepts(?:\\n[\\s\\S]*?)?\\n## Files and code sections(?:\\n[\\s\\S]*?)?\\n## Errors and fixes(?:\\n[\\s\\S]*?)?\\n## Problem solving(?:\\n[\\s\\S]*?)?\\n## All user messages(?:\\n[\\s\\S]*?)?\\n## Pending tasks(?:\\n[\\s\\S]*?)?\\n## Current work(?:\\n[\\s\\S]*?)?\\n## Next step(?:\\n[\\s\\S]*)?$",
|
| 287 |
+
"type": "string"
|
| 288 |
+
}
|
| 289 |
+
},
|
| 290 |
+
"scoring": {
|
| 291 |
+
"cap": null,
|
| 292 |
+
"edge_bonus": {
|
| 293 |
+
"applies": false,
|
| 294 |
+
"max": 0.2,
|
| 295 |
+
"per_group": 0.1
|
| 296 |
+
},
|
| 297 |
+
"efficiency": {
|
| 298 |
+
"form": "linear",
|
| 299 |
+
"range": 0.25,
|
| 300 |
+
"weights": {
|
| 301 |
+
"memory": 0.3,
|
| 302 |
+
"parameters": 0.2,
|
| 303 |
+
"tpot": 0.1,
|
| 304 |
+
"ttft": 0.4
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
"empty_pools": "burn",
|
| 308 |
+
"envelope_rule": "per_item",
|
| 309 |
+
"min_items": 25,
|
| 310 |
+
"router": "brier_auroc",
|
| 311 |
+
"twin": {
|
| 312 |
+
"slope": 0.1,
|
| 313 |
+
"tolerance": 0.02
|
| 314 |
+
},
|
| 315 |
+
"wilson_z": 1.96
|
| 316 |
+
},
|
| 317 |
+
"serving": {
|
| 318 |
+
"cap_schedule": [
|
| 319 |
+
{
|
| 320 |
+
"billing_usd_below": 5000,
|
| 321 |
+
"cap": 0.1
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"billing_usd_below": 50000,
|
| 325 |
+
"cap": 0.05
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"cap": 0.02
|
| 329 |
+
}
|
| 330 |
+
],
|
| 331 |
+
"floor_epochs": 3,
|
| 332 |
+
"floor_share": 0.01,
|
| 333 |
+
"kind": "compaction",
|
| 334 |
+
"pricing": "flat",
|
| 335 |
+
"rate": 1000,
|
| 336 |
+
"unit": "request",
|
| 337 |
+
"usd_per_request": 0.005
|
| 338 |
+
},
|
| 339 |
+
"slm_model_class": "AutoModelForCausalLM",
|
| 340 |
+
"slm_prompt": "<|start_of_role|>system<|end_of_role|>{system}<|end_of_text|>\n<|start_of_role|>user<|end_of_role|>{user}<|end_of_text|>\n<|start_of_role|>assistant<|end_of_role|>",
|
| 341 |
+
"spec": {
|
| 342 |
+
"category": "Text",
|
| 343 |
+
"envelope": {
|
| 344 |
+
"docs": "https://microtensor.cloud/docs/certified-inference/system/envelope-groups",
|
| 345 |
+
"group": "mt-5",
|
| 346 |
+
"name": "Small GPU",
|
| 347 |
+
"overrides": [
|
| 348 |
+
[
|
| 349 |
+
"Max input",
|
| 350 |
+
"122,880 tokens"
|
| 351 |
+
],
|
| 352 |
+
[
|
| 353 |
+
"Max output",
|
| 354 |
+
"3,072 tokens"
|
| 355 |
+
],
|
| 356 |
+
[
|
| 357 |
+
"Per token (p95)",
|
| 358 |
+
"\u2264 20 ms"
|
| 359 |
+
],
|
| 360 |
+
[
|
| 361 |
+
"Long input (p95)",
|
| 362 |
+
"first token \u2264 25 s, end to end \u2264 75 s"
|
| 363 |
+
]
|
| 364 |
+
]
|
| 365 |
+
},
|
| 366 |
+
"escalation": {
|
| 367 |
+
"rows": [
|
| 368 |
+
[
|
| 369 |
+
"Trigger",
|
| 370 |
+
"draft_correct below the customer's quality floor"
|
| 371 |
+
],
|
| 372 |
+
[
|
| 373 |
+
"Frontier access",
|
| 374 |
+
"the relay only; both models read 120,000 token sessions; frontier models served by inference miners on our network replace these once listed, never outside providers"
|
| 375 |
+
],
|
| 376 |
+
[
|
| 377 |
+
"Frontier models",
|
| 378 |
+
"anthropic/claude-haiku-5.5 ($0.1 in, $0.5 out per M tokens) \u00b7 z-ai/glm-5.3-flash ($0.048 in, $0.2 out per M tokens)"
|
| 379 |
+
],
|
| 380 |
+
[
|
| 381 |
+
"Spend cap",
|
| 382 |
+
"1.5 \u00d7 the cost of a full frontier redo per item"
|
| 383 |
+
],
|
| 384 |
+
[
|
| 385 |
+
"Output",
|
| 386 |
+
"the same nine heading markdown"
|
| 387 |
+
],
|
| 388 |
+
[
|
| 389 |
+
"Scored on",
|
| 390 |
+
"the item score after repair and the cost of the repair"
|
| 391 |
+
]
|
| 392 |
+
],
|
| 393 |
+
"score": [
|
| 394 |
+
{
|
| 395 |
+
"formula": "LB(repair passes) \u2265 redo pass rate \u2212 0.02",
|
| 396 |
+
"name": "Gate"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"formula": "S_e = max(0, 1 \u2212 repair_cost / redo_cost) if the gate holds, otherwise 0",
|
| 400 |
+
"name": "Score"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"formula": "n \u2265 100 and the 5th percentile of S_e \u2212 S_ref over 200 family resamples is above 0",
|
| 404 |
+
"name": "Paid when"
|
| 405 |
+
}
|
| 406 |
+
]
|
| 407 |
+
},
|
| 408 |
+
"evaluation": {
|
| 409 |
+
"images": [
|
| 410 |
+
[
|
| 411 |
+
"engine",
|
| 412 |
+
"`vllm/vllm-openai:v0.32.0`",
|
| 413 |
+
"`sha256:6ee133356d49ed24cee03dd0cda3d3980279a11c107ce3e752c89e76540f41c9`"
|
| 414 |
+
],
|
| 415 |
+
[
|
| 416 |
+
"runner",
|
| 417 |
+
"`ghcr.io/microtensor-io/runner:1`",
|
| 418 |
+
"`sha256:aada28e6a4b50961d10bf63cb04c30e8449e4bfb6e385fbad7f387cf8eb9b9dd`"
|
| 419 |
+
],
|
| 420 |
+
[
|
| 421 |
+
"sandbox",
|
| 422 |
+
"`ghcr.io/microtensor-io/sandbox:1`",
|
| 423 |
+
"`sha256:eee4de3bd46f722a9a6b12ec5c1cec5e0580d6dd2844c3e4ff50a8a44a3ed1a6`"
|
| 424 |
+
],
|
| 425 |
+
[
|
| 426 |
+
"replayer",
|
| 427 |
+
"`ghcr.io/microtensor-io/replayer:1`",
|
| 428 |
+
"`sha256:537675d1db529fbbbe16bd5c30f3b7a2e6326eade33fa1e7e2ee3df7861edbe9`"
|
| 429 |
+
],
|
| 430 |
+
[
|
| 431 |
+
"llama",
|
| 432 |
+
"`ghcr.io/ggml-org/llama.cpp:server`",
|
| 433 |
+
"`sha256:43b3988c22c00faae3d04a8f6e3eba41403dff7c5f5952490599f1bcbdc6f3c2`"
|
| 434 |
+
]
|
| 435 |
+
],
|
| 436 |
+
"mode": "miner",
|
| 437 |
+
"profiles": [
|
| 438 |
+
[
|
| 439 |
+
"P1",
|
| 440 |
+
"Small GPU",
|
| 441 |
+
"RTX 4090 24 GB (joining: L4, L40S)",
|
| 442 |
+
"bf16",
|
| 443 |
+
"invariant",
|
| 444 |
+
"launch"
|
| 445 |
+
]
|
| 446 |
+
],
|
| 447 |
+
"rows": [
|
| 448 |
+
[
|
| 449 |
+
"Grader",
|
| 450 |
+
"model assisted, probe `Qwen/Qwen2.5-1.5B-Instruct-GGUF` qwen2.5-1.5b-instruct-q8_0.gguf at `91cad51170dc`, 8,192 token input, 64 token answers, on the validator's CPU"
|
| 451 |
+
],
|
| 452 |
+
[
|
| 453 |
+
"Window",
|
| 454 |
+
"Freeze 1 at the open block \u00b7 inputs released when reveals close \u00b7 transcripts uploaded before Freeze 2 at the close block \u00b7 grading in the 1,800 block settle margin (about 6 h) before settlement"
|
| 455 |
+
],
|
| 456 |
+
[
|
| 457 |
+
"Spot check",
|
| 458 |
+
"at least 40 SLM calls per sampled miner, exact token match on the miner's profile; about 2 validators per miner; 10 reference calls timed on the same card"
|
| 459 |
+
],
|
| 460 |
+
[
|
| 461 |
+
"Resume test",
|
| 462 |
+
"20 sampled hidden items per paid miner, resumed from the miner's summary with the pinned reference agent through the relay; the gate holds if LB(resume pass) \u2265 reference agent pass \u2212 0.05, otherwise the SLM score is 0 for the epoch; the agent is pinned before the gate applies"
|
| 463 |
+
],
|
| 464 |
+
[
|
| 465 |
+
"Ban",
|
| 466 |
+
"score 0 and a hotkey ban for 3 epochs once one piece of evidence has 2 confirmations from distinct validators"
|
| 467 |
+
],
|
| 468 |
+
[
|
| 469 |
+
"Canaries",
|
| 470 |
+
"3 fabricated facts per epoch; a model that completes an earlier epoch's canary is banned like a spot check failure"
|
| 471 |
+
],
|
| 472 |
+
[
|
| 473 |
+
"Relay allowance",
|
| 474 |
+
"$5 per miner per epoch"
|
| 475 |
+
],
|
| 476 |
+
[
|
| 477 |
+
"Computed cost",
|
| 478 |
+
"bytes per weight bf16 2, fp16 2, awq 0.5, gptq 0.5, gguf_q4 0.5, gguf_q8 1; no cap per item"
|
| 479 |
+
]
|
| 480 |
+
]
|
| 481 |
+
},
|
| 482 |
+
"harness": {
|
| 483 |
+
"rows": [
|
| 484 |
+
[
|
| 485 |
+
"Role",
|
| 486 |
+
"wraps the SLM; renders, validates the headings and repairs"
|
| 487 |
+
],
|
| 488 |
+
[
|
| 489 |
+
"Model calls",
|
| 490 |
+
"at most 2 per item: one full pass, one repair pass on the output only"
|
| 491 |
+
],
|
| 492 |
+
[
|
| 493 |
+
"Chunking",
|
| 494 |
+
"not allowed: the full session goes to the model in one call"
|
| 495 |
+
],
|
| 496 |
+
[
|
| 497 |
+
"Added wall time (p95)",
|
| 498 |
+
"\u2264 3 s per item"
|
| 499 |
+
],
|
| 500 |
+
[
|
| 501 |
+
"Network",
|
| 502 |
+
"none except the gateway"
|
| 503 |
+
],
|
| 504 |
+
[
|
| 505 |
+
"Faults",
|
| 506 |
+
"about 1 in 7 items get a faulty model response (error, timeout or cut off); the harness must not crash"
|
| 507 |
+
],
|
| 508 |
+
[
|
| 509 |
+
"Output",
|
| 510 |
+
"the nine heading markdown or a clean error"
|
| 511 |
+
],
|
| 512 |
+
[
|
| 513 |
+
"Session text",
|
| 514 |
+
"instructions inside it are content, never commands"
|
| 515 |
+
]
|
| 516 |
+
],
|
| 517 |
+
"score": [
|
| 518 |
+
{
|
| 519 |
+
"formula": "S_h = max(0, LB_paired(H \u2212 B*)) \u00b7 min(1, 1.5 \u00b7 tokens_B* / tokens_H) if the harness limits hold, otherwise 0",
|
| 520 |
+
"name": "Score"
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"formula": "B* is the best baseline; LB_paired is the one sided 95% lower bound of the per item pass difference, clustered by family",
|
| 524 |
+
"name": "Where"
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"formula": "n \u2265 100 and S_h > 0",
|
| 528 |
+
"name": "Paid when"
|
| 529 |
+
}
|
| 530 |
+
]
|
| 531 |
+
},
|
| 532 |
+
"id": "ctx_compress",
|
| 533 |
+
"item_counts": {
|
| 534 |
+
"escalation": 100,
|
| 535 |
+
"harness": 100,
|
| 536 |
+
"router": 60,
|
| 537 |
+
"slm": 100,
|
| 538 |
+
"system": 100
|
| 539 |
+
},
|
| 540 |
+
"network": "testnet",
|
| 541 |
+
"purpose": {
|
| 542 |
+
"brief": {
|
| 543 |
+
"input": "Agent session, up to 120,000 tokens",
|
| 544 |
+
"output": "Nine heading markdown summary, at most 3,072 tokens",
|
| 545 |
+
"summary": "Agent gateways send compaction requests to the main model because cheap models lose detail. This specialist writes the summary that starts the next context, faithfully, at a flat price."
|
| 546 |
+
},
|
| 547 |
+
"input": "The agent's compaction instruction as the system message, and the session rendered as canonical text inside <session> tags as the user message, up to 120,000 tokens",
|
| 548 |
+
"output": "Plain markdown with nine fixed headings in order, at most 3,072 tokens, no JSON and no preamble",
|
| 549 |
+
"summary": "Coding agent gateways classify every request by kind and route each kind to a model. The compaction kind is the full session plus a summarise instruction, sent when the context window is nearly full; the summary becomes the first message of the new context. Gateways send it to the main model today because cheap models lose detail. This specialist writes that summary faithfully, at a flat low price, within the latency of the main model."
|
| 550 |
+
},
|
| 551 |
+
"router": {
|
| 552 |
+
"rows": [
|
| 553 |
+
[
|
| 554 |
+
"Runs",
|
| 555 |
+
"alongside the system on the same envelope"
|
| 556 |
+
],
|
| 557 |
+
[
|
| 558 |
+
"Max size",
|
| 559 |
+
"\u2264 1,500,000,000 parameters"
|
| 560 |
+
],
|
| 561 |
+
[
|
| 562 |
+
"Max input",
|
| 563 |
+
"8,192 tokens: the summary, then the end of the session"
|
| 564 |
+
],
|
| 565 |
+
[
|
| 566 |
+
"Added latency (p95)",
|
| 567 |
+
"under 300 ms per item"
|
| 568 |
+
],
|
| 569 |
+
[
|
| 570 |
+
"Output",
|
| 571 |
+
"draft_correct: the probability from 0 to 1 that the summary passes"
|
| 572 |
+
],
|
| 573 |
+
[
|
| 574 |
+
"Scored on",
|
| 575 |
+
"calibration (Brier score) and separation of passing from failing summaries (AUROC)"
|
| 576 |
+
],
|
| 577 |
+
[
|
| 578 |
+
"Baseline",
|
| 579 |
+
"reference router, not published yet"
|
| 580 |
+
]
|
| 581 |
+
],
|
| 582 |
+
"score": [
|
| 583 |
+
{
|
| 584 |
+
"formula": "s = 0.5\u00b7max(0, 1 \u2212 Brier / Brier_base) + 0.5\u00b7max(0, 2\u00b7AUROC \u2212 1)",
|
| 585 |
+
"name": "Per source",
|
| 586 |
+
"note": "Brier_base is the Brier score of always predicting the share of passing drafts."
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"formula": "S_r = 0.7\u00b7mean(s) + 0.3\u00b7min(s) if p95 latency < 300 ms, otherwise 0",
|
| 590 |
+
"name": "Score"
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"formula": "\u2265 400 drafts and the 5th percentile of S_r \u2212 S_ref over 200 family resamples is above 0",
|
| 594 |
+
"name": "Paid when"
|
| 595 |
+
}
|
| 596 |
+
]
|
| 597 |
+
},
|
| 598 |
+
"scoring": {
|
| 599 |
+
"rows": [
|
| 600 |
+
[
|
| 601 |
+
"Specialised SLM",
|
| 602 |
+
"20%"
|
| 603 |
+
],
|
| 604 |
+
[
|
| 605 |
+
"Harness",
|
| 606 |
+
"20%"
|
| 607 |
+
],
|
| 608 |
+
[
|
| 609 |
+
"Router",
|
| 610 |
+
"20%"
|
| 611 |
+
],
|
| 612 |
+
[
|
| 613 |
+
"Escalation repair",
|
| 614 |
+
"20%"
|
| 615 |
+
],
|
| 616 |
+
[
|
| 617 |
+
"Full system",
|
| 618 |
+
"20%"
|
| 619 |
+
]
|
| 620 |
+
],
|
| 621 |
+
"split": "Within each component the top five eligible miners get 40%, 25%, 15%, 12% and 8%. Published scores move on a 0.01 ladder. Empty pools burn."
|
| 622 |
+
},
|
| 623 |
+
"slm": {
|
| 624 |
+
"bases": [
|
| 625 |
+
{
|
| 626 |
+
"condition": "",
|
| 627 |
+
"licence": "Apache 2.0",
|
| 628 |
+
"licence_url": "https://www.apache.org/licenses/LICENSE-2.0",
|
| 629 |
+
"model": "ibm-granite/granite-4.0-h-micro"
|
| 630 |
+
}
|
| 631 |
+
],
|
| 632 |
+
"dataset": {
|
| 633 |
+
"about": "Coding agent sessions generated by Microtensor: a coined Python project with one injected bug, worked by a scripted agent whose every tool result is the real output of the real command, recorded in the Anthropic Messages shape and rendered canonically. The public dev split holds 2,000 sessions; hidden items come from the same generator under a secret seed and never leave validators.",
|
| 634 |
+
"licence": "Microtensor dataset terms",
|
| 635 |
+
"name": "microtensor-io/agent-sessions",
|
| 636 |
+
"note": "Generated agent sessions with real tool output; dev split public, hidden items from a secret seed.",
|
| 637 |
+
"url": "https://huggingface.co/datasets/microtensor-io/agent-sessions"
|
| 638 |
+
},
|
| 639 |
+
"evaluation": [
|
| 640 |
+
{
|
| 641 |
+
"formula": "input(i) = render(session(i)) inside <session> tags",
|
| 642 |
+
"name": "Canonical rendering",
|
| 643 |
+
"note": "The session arrives as [user], [assistant], [tool_use name id] and [tool_result id, N lines kept of M] blocks, one per line, in order, after deterministic stripping. The gateway renders; the model never sees raw JSON."
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"formula": "valid(i) = 1 if all nine headings are present, in order, with nothing before the first, otherwise 0",
|
| 647 |
+
"name": "Format gate",
|
| 648 |
+
"note": "The nine headings are Primary request and intent, Key technical concepts, Files and code sections, Errors and fixes, Problem solving, All user messages, Pending tasks, Current work and Next step, each on its own line as a level two heading."
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"formula": "C(i) = 1 if output_tokens \u2264 min(3072, max(1000, 0.05 \u00d7 input_tokens)), otherwise 0",
|
| 652 |
+
"name": "Compression gate"
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"formula": "recall(i) = facts_kept / facts_total",
|
| 656 |
+
"name": "Key fact recall",
|
| 657 |
+
"note": "File paths, function names, exception types, commands and user decisions in the session, taken from its canonical rendering. Identifiers match exactly after normalisation."
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"formula": "halluc(i) = invented_identifiers / identifiers_in_output",
|
| 661 |
+
"name": "Hallucination rate",
|
| 662 |
+
"note": "Code identifiers in the output that never appear in the session. Common tool and brand names do not count."
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"formula": "cont(i) = mean probe score over the item's probes",
|
| 666 |
+
"name": "Continuation probes",
|
| 667 |
+
"note": "A fixed CPU probe agent reads the summary alone and answers: the current task, the last test result, the last edited file, the last error, and the next action (kind and file), scored against what the agent actually did next."
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"formula": "item_score(i) = valid(i) \u00b7 C(i) \u00b7 (1 \u2212 halluc(i)) \u00b7 (0.5\u00b7recall(i) + 0.5\u00b7cont(i))\npass(i) = 1 if item_score(i) \u2265 0.60",
|
| 671 |
+
"name": "Item score"
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"formula": "Resume = 1 if LB(resume_pass) \u2265 reference_agent_pass \u2212 0.05, otherwise 0",
|
| 675 |
+
"name": "Resume gate",
|
| 676 |
+
"note": "On 20 sampled hidden items per paid miner, validators resume the task from the miner's summary with the pinned reference agent through the relay and check that the task still passes. A failed gate sets the miner's SLM score to 0 for the epoch. This is the gateway's own fidelity test."
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"formula": "S_slm = G \u00b7 P \u00b7 Resume \u00b7 LB \u00b7 twin \u00b7 (1 + 0.25\u00b7E + B), with B = 0 in this arena",
|
| 680 |
+
"name": "SLM score"
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"formula": "n \u2265 100 and the paired lower bound of (miner \u2212 reference) per item, clustered by session, is above 0",
|
| 684 |
+
"name": "Paid when"
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"formula": "LB = (p + z\u00b2/2n \u2212 z\u00b7\u221a(p(1 \u2212 p)/n + z\u00b2/4n\u00b2)) / (1 + z\u00b2/n)",
|
| 688 |
+
"name": "Wilson lower bound on the pass rate (n items, pass rate p, z = 1.96)"
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"formula": "twin = 1 \u2212 min(1, max(0, gap \u2212 0.02) / 0.1)",
|
| 692 |
+
"name": "Twin factor (gap is the pass rate difference between original items and their twins)"
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"formula": "G = 1 if the fingerprint matches the declared base and the system beats that base, otherwise 0",
|
| 696 |
+
"name": "Provenance gate"
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"formula": "P = 1 if within the envelope on at least 99% of items, otherwise 0",
|
| 700 |
+
"name": "Envelope pass"
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"formula": "e_x = min(1, max(0, (ref \u2212 miner) / ref))\nE = 0.4\u00b7e_TTFT + 0.3\u00b7e_mem + 0.2\u00b7e_N + 0.1\u00b7e_TPOT",
|
| 704 |
+
"name": "Efficiency (ref is the reference baseline, x is TTFT, memory, parameters or TPOT)"
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"formula": "B = 0.1 for each lower envelope group passed, max 0.2",
|
| 708 |
+
"name": "Edge bonus",
|
| 709 |
+
"note": "0 in this arena: its inputs are longer than every lower group allows."
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"formula": "S_slm = G \u00b7 P \u00b7 LB \u00b7 twin \u00b7 (1 + 0.25\u00b7E + B)",
|
| 713 |
+
"name": "SLM score"
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"formula": "n \u2265 100 and the paired lower bound of (miner \u2212 reference model) per item, clustered by family, is above 0",
|
| 717 |
+
"name": "Paid when"
|
| 718 |
+
}
|
| 719 |
+
],
|
| 720 |
+
"reference": {
|
| 721 |
+
"model": "ibm-granite/granite-4.0-h-micro",
|
| 722 |
+
"revision": "d5f01a3ea75f088947be3aae039f4ad52837dfde"
|
| 723 |
+
}
|
| 724 |
+
},
|
| 725 |
+
"system": {
|
| 726 |
+
"rows": [
|
| 727 |
+
[
|
| 728 |
+
"Floors",
|
| 729 |
+
"0.8 \u00b7 0.9 \u00b7 0.95 \u00b7 0.99"
|
| 730 |
+
],
|
| 731 |
+
[
|
| 732 |
+
"Reference",
|
| 733 |
+
"frontier answer cost and p95 latency"
|
| 734 |
+
]
|
| 735 |
+
],
|
| 736 |
+
"score": [
|
| 737 |
+
{
|
| 738 |
+
"formula": "v_f = clamp(0, ln 10, 0.7\u00b7ln(C_ref/C_f) + 0.3\u00b7ln(L_ref/L_f)) / ln 10 if LB(pass at f) \u2265 f, otherwise 0",
|
| 739 |
+
"name": "Per floor"
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"formula": "S_sys = mean of v_f over the floors",
|
| 743 |
+
"name": "Score"
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"formula": "n \u2265 100 and S_sys > 0",
|
| 747 |
+
"name": "Paid when"
|
| 748 |
+
}
|
| 749 |
+
]
|
| 750 |
+
},
|
| 751 |
+
"title": "Agent session compaction"
|
| 752 |
+
},
|
| 753 |
+
"success_rule": "item_score_at_least_0_60",
|
| 754 |
+
"task": "context_compression",
|
| 755 |
+
"tools": [],
|
| 756 |
+
"twin_rule": "same_session_two_cuts"
|
| 757 |
+
}
|
evidence/links.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"coordinator_report": "https://api.microtensor.cloud/v2/arenas/ctx_compress/epochs/0/documents/spotcheck",
|
| 3 |
+
"leaderboard": "https://www.microtensor.cloud/network/leaderboard?arena=ctx_compress",
|
| 4 |
+
"receipts": "https://api.microtensor.cloud/v2/arenas/ctx_compress/epochs/0/documents/receipts",
|
| 5 |
+
"standings": "https://api.microtensor.cloud/v2/arenas/ctx_compress/epochs/0/ledger",
|
| 6 |
+
"submission": "https://api.microtensor.cloud/v2/submissions/ctx_compress/0/5HEtPjhaCs859sdCjMG1a3TEZWFftKRs4VAYzCjnNUf82iDL",
|
| 7 |
+
"transcripts": "https://api.microtensor.cloud/v2/arenas/ctx_compress/epochs/0/transcripts"
|
| 8 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 100257,
|
| 4 |
+
"eos_token_id": 100257,
|
| 5 |
+
"pad_token_id": 100256,
|
| 6 |
+
"transformers_version": "4.56.0"
|
| 7 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f708be74700516bdfa6f81815e440c95193854a2caf79226434b6874da940fb7
|
| 3 |
+
size 4941594184
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d81c7821063d966c4a81617fa46d93c84a2ac17a055d25b7d5910adeee7f8803
|
| 3 |
+
size 1441249896
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_parameters": 3191396096,
|
| 4 |
+
"total_size": 6382792192
|
| 5 |
+
},
|
| 6 |
+
"weight_map": {
|
| 7 |
+
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 8 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 9 |
+
"model.layers.0.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 10 |
+
"model.layers.0.mamba.D": "model-00001-of-00002.safetensors",
|
| 11 |
+
"model.layers.0.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 12 |
+
"model.layers.0.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 13 |
+
"model.layers.0.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 14 |
+
"model.layers.0.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 15 |
+
"model.layers.0.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 16 |
+
"model.layers.0.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 17 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 18 |
+
"model.layers.0.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 19 |
+
"model.layers.0.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 20 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 21 |
+
"model.layers.1.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 22 |
+
"model.layers.1.mamba.D": "model-00001-of-00002.safetensors",
|
| 23 |
+
"model.layers.1.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 24 |
+
"model.layers.1.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 25 |
+
"model.layers.1.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 26 |
+
"model.layers.1.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 27 |
+
"model.layers.1.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 28 |
+
"model.layers.1.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 29 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 30 |
+
"model.layers.1.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 31 |
+
"model.layers.1.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 32 |
+
"model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 33 |
+
"model.layers.10.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 34 |
+
"model.layers.10.mamba.D": "model-00001-of-00002.safetensors",
|
| 35 |
+
"model.layers.10.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 36 |
+
"model.layers.10.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 37 |
+
"model.layers.10.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 38 |
+
"model.layers.10.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 39 |
+
"model.layers.10.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 40 |
+
"model.layers.10.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 41 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 42 |
+
"model.layers.10.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 43 |
+
"model.layers.10.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 44 |
+
"model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 45 |
+
"model.layers.11.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 46 |
+
"model.layers.11.mamba.D": "model-00001-of-00002.safetensors",
|
| 47 |
+
"model.layers.11.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 48 |
+
"model.layers.11.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 49 |
+
"model.layers.11.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 50 |
+
"model.layers.11.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 51 |
+
"model.layers.11.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 52 |
+
"model.layers.11.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 53 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 54 |
+
"model.layers.11.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 55 |
+
"model.layers.11.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 56 |
+
"model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 57 |
+
"model.layers.12.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 58 |
+
"model.layers.12.mamba.D": "model-00001-of-00002.safetensors",
|
| 59 |
+
"model.layers.12.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 60 |
+
"model.layers.12.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 61 |
+
"model.layers.12.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 62 |
+
"model.layers.12.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 63 |
+
"model.layers.12.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 64 |
+
"model.layers.12.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 65 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 66 |
+
"model.layers.12.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 67 |
+
"model.layers.12.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 68 |
+
"model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 69 |
+
"model.layers.13.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 70 |
+
"model.layers.13.mamba.D": "model-00001-of-00002.safetensors",
|
| 71 |
+
"model.layers.13.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 72 |
+
"model.layers.13.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 73 |
+
"model.layers.13.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 74 |
+
"model.layers.13.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 75 |
+
"model.layers.13.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 76 |
+
"model.layers.13.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 77 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 78 |
+
"model.layers.13.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 79 |
+
"model.layers.13.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 80 |
+
"model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 81 |
+
"model.layers.14.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 82 |
+
"model.layers.14.mamba.D": "model-00001-of-00002.safetensors",
|
| 83 |
+
"model.layers.14.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 84 |
+
"model.layers.14.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 85 |
+
"model.layers.14.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 86 |
+
"model.layers.14.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 87 |
+
"model.layers.14.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 88 |
+
"model.layers.14.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 89 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 90 |
+
"model.layers.14.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 91 |
+
"model.layers.14.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 92 |
+
"model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 93 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 94 |
+
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 95 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 96 |
+
"model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 97 |
+
"model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 98 |
+
"model.layers.15.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 99 |
+
"model.layers.15.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 100 |
+
"model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 101 |
+
"model.layers.16.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 102 |
+
"model.layers.16.mamba.D": "model-00001-of-00002.safetensors",
|
| 103 |
+
"model.layers.16.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 104 |
+
"model.layers.16.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 105 |
+
"model.layers.16.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 106 |
+
"model.layers.16.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 107 |
+
"model.layers.16.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 108 |
+
"model.layers.16.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 109 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 110 |
+
"model.layers.16.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 111 |
+
"model.layers.16.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 112 |
+
"model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 113 |
+
"model.layers.17.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 114 |
+
"model.layers.17.mamba.D": "model-00001-of-00002.safetensors",
|
| 115 |
+
"model.layers.17.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 116 |
+
"model.layers.17.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 117 |
+
"model.layers.17.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 118 |
+
"model.layers.17.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 119 |
+
"model.layers.17.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 120 |
+
"model.layers.17.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 121 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 122 |
+
"model.layers.17.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 123 |
+
"model.layers.17.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 124 |
+
"model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 125 |
+
"model.layers.18.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 126 |
+
"model.layers.18.mamba.D": "model-00001-of-00002.safetensors",
|
| 127 |
+
"model.layers.18.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 128 |
+
"model.layers.18.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 129 |
+
"model.layers.18.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 130 |
+
"model.layers.18.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 131 |
+
"model.layers.18.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 132 |
+
"model.layers.18.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 133 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 134 |
+
"model.layers.18.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 135 |
+
"model.layers.18.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 136 |
+
"model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 137 |
+
"model.layers.19.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 138 |
+
"model.layers.19.mamba.D": "model-00001-of-00002.safetensors",
|
| 139 |
+
"model.layers.19.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 140 |
+
"model.layers.19.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 141 |
+
"model.layers.19.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 142 |
+
"model.layers.19.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 143 |
+
"model.layers.19.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 144 |
+
"model.layers.19.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 145 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 146 |
+
"model.layers.19.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 147 |
+
"model.layers.19.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 148 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 149 |
+
"model.layers.2.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 150 |
+
"model.layers.2.mamba.D": "model-00001-of-00002.safetensors",
|
| 151 |
+
"model.layers.2.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 152 |
+
"model.layers.2.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 153 |
+
"model.layers.2.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 154 |
+
"model.layers.2.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 155 |
+
"model.layers.2.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 156 |
+
"model.layers.2.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 157 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 158 |
+
"model.layers.2.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 159 |
+
"model.layers.2.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 160 |
+
"model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 161 |
+
"model.layers.20.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 162 |
+
"model.layers.20.mamba.D": "model-00001-of-00002.safetensors",
|
| 163 |
+
"model.layers.20.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 164 |
+
"model.layers.20.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 165 |
+
"model.layers.20.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 166 |
+
"model.layers.20.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 167 |
+
"model.layers.20.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 168 |
+
"model.layers.20.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 169 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 170 |
+
"model.layers.20.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 171 |
+
"model.layers.20.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 172 |
+
"model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 173 |
+
"model.layers.21.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 174 |
+
"model.layers.21.mamba.D": "model-00001-of-00002.safetensors",
|
| 175 |
+
"model.layers.21.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 176 |
+
"model.layers.21.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 177 |
+
"model.layers.21.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 178 |
+
"model.layers.21.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 179 |
+
"model.layers.21.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 180 |
+
"model.layers.21.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 181 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 182 |
+
"model.layers.21.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 183 |
+
"model.layers.21.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 184 |
+
"model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 185 |
+
"model.layers.22.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 186 |
+
"model.layers.22.mamba.D": "model-00001-of-00002.safetensors",
|
| 187 |
+
"model.layers.22.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 188 |
+
"model.layers.22.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 189 |
+
"model.layers.22.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 190 |
+
"model.layers.22.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 191 |
+
"model.layers.22.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 192 |
+
"model.layers.22.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 193 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 194 |
+
"model.layers.22.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 195 |
+
"model.layers.22.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 196 |
+
"model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 197 |
+
"model.layers.23.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 198 |
+
"model.layers.23.mamba.D": "model-00001-of-00002.safetensors",
|
| 199 |
+
"model.layers.23.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 200 |
+
"model.layers.23.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 201 |
+
"model.layers.23.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 202 |
+
"model.layers.23.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 203 |
+
"model.layers.23.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 204 |
+
"model.layers.23.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 205 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 206 |
+
"model.layers.23.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 207 |
+
"model.layers.23.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 208 |
+
"model.layers.24.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 209 |
+
"model.layers.24.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 210 |
+
"model.layers.24.mamba.D": "model-00001-of-00002.safetensors",
|
| 211 |
+
"model.layers.24.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 212 |
+
"model.layers.24.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 213 |
+
"model.layers.24.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 214 |
+
"model.layers.24.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 215 |
+
"model.layers.24.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 216 |
+
"model.layers.24.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 217 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 218 |
+
"model.layers.24.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 219 |
+
"model.layers.24.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 220 |
+
"model.layers.25.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 221 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 222 |
+
"model.layers.25.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 223 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 224 |
+
"model.layers.25.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 225 |
+
"model.layers.25.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 226 |
+
"model.layers.25.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 227 |
+
"model.layers.25.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 228 |
+
"model.layers.26.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 229 |
+
"model.layers.26.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 230 |
+
"model.layers.26.mamba.D": "model-00001-of-00002.safetensors",
|
| 231 |
+
"model.layers.26.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 232 |
+
"model.layers.26.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 233 |
+
"model.layers.26.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 234 |
+
"model.layers.26.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 235 |
+
"model.layers.26.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 236 |
+
"model.layers.26.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 237 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 238 |
+
"model.layers.26.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 239 |
+
"model.layers.26.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 240 |
+
"model.layers.27.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 241 |
+
"model.layers.27.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 242 |
+
"model.layers.27.mamba.D": "model-00001-of-00002.safetensors",
|
| 243 |
+
"model.layers.27.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 244 |
+
"model.layers.27.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 245 |
+
"model.layers.27.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 246 |
+
"model.layers.27.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 247 |
+
"model.layers.27.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 248 |
+
"model.layers.27.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 249 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 250 |
+
"model.layers.27.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 251 |
+
"model.layers.27.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 252 |
+
"model.layers.28.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 253 |
+
"model.layers.28.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 254 |
+
"model.layers.28.mamba.D": "model-00001-of-00002.safetensors",
|
| 255 |
+
"model.layers.28.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 256 |
+
"model.layers.28.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 257 |
+
"model.layers.28.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 258 |
+
"model.layers.28.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 259 |
+
"model.layers.28.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 260 |
+
"model.layers.28.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 261 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 262 |
+
"model.layers.28.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 263 |
+
"model.layers.28.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 264 |
+
"model.layers.29.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 265 |
+
"model.layers.29.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 266 |
+
"model.layers.29.mamba.D": "model-00001-of-00002.safetensors",
|
| 267 |
+
"model.layers.29.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 268 |
+
"model.layers.29.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 269 |
+
"model.layers.29.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 270 |
+
"model.layers.29.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 271 |
+
"model.layers.29.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 272 |
+
"model.layers.29.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 273 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 274 |
+
"model.layers.29.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 275 |
+
"model.layers.29.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 276 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 277 |
+
"model.layers.3.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 278 |
+
"model.layers.3.mamba.D": "model-00001-of-00002.safetensors",
|
| 279 |
+
"model.layers.3.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 280 |
+
"model.layers.3.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 281 |
+
"model.layers.3.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 282 |
+
"model.layers.3.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 283 |
+
"model.layers.3.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 284 |
+
"model.layers.3.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 285 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 286 |
+
"model.layers.3.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 287 |
+
"model.layers.3.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 288 |
+
"model.layers.30.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 289 |
+
"model.layers.30.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 290 |
+
"model.layers.30.mamba.D": "model-00001-of-00002.safetensors",
|
| 291 |
+
"model.layers.30.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 292 |
+
"model.layers.30.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 293 |
+
"model.layers.30.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 294 |
+
"model.layers.30.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 295 |
+
"model.layers.30.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 296 |
+
"model.layers.30.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 297 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 298 |
+
"model.layers.30.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 299 |
+
"model.layers.30.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 300 |
+
"model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 301 |
+
"model.layers.31.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 302 |
+
"model.layers.31.mamba.D": "model-00002-of-00002.safetensors",
|
| 303 |
+
"model.layers.31.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 304 |
+
"model.layers.31.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 305 |
+
"model.layers.31.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 306 |
+
"model.layers.31.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 307 |
+
"model.layers.31.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 308 |
+
"model.layers.31.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 309 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 310 |
+
"model.layers.31.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 311 |
+
"model.layers.31.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 312 |
+
"model.layers.32.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 313 |
+
"model.layers.32.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 314 |
+
"model.layers.32.mamba.D": "model-00002-of-00002.safetensors",
|
| 315 |
+
"model.layers.32.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 316 |
+
"model.layers.32.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 317 |
+
"model.layers.32.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 318 |
+
"model.layers.32.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 319 |
+
"model.layers.32.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 320 |
+
"model.layers.32.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 321 |
+
"model.layers.32.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 322 |
+
"model.layers.32.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 323 |
+
"model.layers.32.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 324 |
+
"model.layers.33.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 325 |
+
"model.layers.33.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 326 |
+
"model.layers.33.mamba.D": "model-00002-of-00002.safetensors",
|
| 327 |
+
"model.layers.33.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 328 |
+
"model.layers.33.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 329 |
+
"model.layers.33.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 330 |
+
"model.layers.33.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 331 |
+
"model.layers.33.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 332 |
+
"model.layers.33.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 333 |
+
"model.layers.33.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 334 |
+
"model.layers.33.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 335 |
+
"model.layers.33.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 336 |
+
"model.layers.34.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 337 |
+
"model.layers.34.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 338 |
+
"model.layers.34.mamba.D": "model-00002-of-00002.safetensors",
|
| 339 |
+
"model.layers.34.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 340 |
+
"model.layers.34.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 341 |
+
"model.layers.34.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 342 |
+
"model.layers.34.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 343 |
+
"model.layers.34.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 344 |
+
"model.layers.34.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 345 |
+
"model.layers.34.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 346 |
+
"model.layers.34.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 347 |
+
"model.layers.34.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 348 |
+
"model.layers.35.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 349 |
+
"model.layers.35.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 350 |
+
"model.layers.35.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 351 |
+
"model.layers.35.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 352 |
+
"model.layers.35.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 353 |
+
"model.layers.35.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 354 |
+
"model.layers.35.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 355 |
+
"model.layers.35.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 356 |
+
"model.layers.36.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 357 |
+
"model.layers.36.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 358 |
+
"model.layers.36.mamba.D": "model-00002-of-00002.safetensors",
|
| 359 |
+
"model.layers.36.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 360 |
+
"model.layers.36.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 361 |
+
"model.layers.36.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 362 |
+
"model.layers.36.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 363 |
+
"model.layers.36.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 364 |
+
"model.layers.36.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 365 |
+
"model.layers.36.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 366 |
+
"model.layers.36.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 367 |
+
"model.layers.36.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 368 |
+
"model.layers.37.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 369 |
+
"model.layers.37.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 370 |
+
"model.layers.37.mamba.D": "model-00002-of-00002.safetensors",
|
| 371 |
+
"model.layers.37.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 372 |
+
"model.layers.37.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 373 |
+
"model.layers.37.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 374 |
+
"model.layers.37.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 375 |
+
"model.layers.37.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 376 |
+
"model.layers.37.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 377 |
+
"model.layers.37.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 378 |
+
"model.layers.37.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 379 |
+
"model.layers.37.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 380 |
+
"model.layers.38.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 381 |
+
"model.layers.38.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 382 |
+
"model.layers.38.mamba.D": "model-00002-of-00002.safetensors",
|
| 383 |
+
"model.layers.38.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 384 |
+
"model.layers.38.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 385 |
+
"model.layers.38.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 386 |
+
"model.layers.38.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 387 |
+
"model.layers.38.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 388 |
+
"model.layers.38.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 389 |
+
"model.layers.38.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 390 |
+
"model.layers.38.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 391 |
+
"model.layers.38.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 392 |
+
"model.layers.39.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 393 |
+
"model.layers.39.mamba.A_log": "model-00002-of-00002.safetensors",
|
| 394 |
+
"model.layers.39.mamba.D": "model-00002-of-00002.safetensors",
|
| 395 |
+
"model.layers.39.mamba.conv1d.bias": "model-00002-of-00002.safetensors",
|
| 396 |
+
"model.layers.39.mamba.conv1d.weight": "model-00002-of-00002.safetensors",
|
| 397 |
+
"model.layers.39.mamba.dt_bias": "model-00002-of-00002.safetensors",
|
| 398 |
+
"model.layers.39.mamba.in_proj.weight": "model-00002-of-00002.safetensors",
|
| 399 |
+
"model.layers.39.mamba.norm.weight": "model-00002-of-00002.safetensors",
|
| 400 |
+
"model.layers.39.mamba.out_proj.weight": "model-00002-of-00002.safetensors",
|
| 401 |
+
"model.layers.39.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 402 |
+
"model.layers.39.shared_mlp.input_linear.weight": "model-00002-of-00002.safetensors",
|
| 403 |
+
"model.layers.39.shared_mlp.output_linear.weight": "model-00002-of-00002.safetensors",
|
| 404 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 405 |
+
"model.layers.4.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 406 |
+
"model.layers.4.mamba.D": "model-00001-of-00002.safetensors",
|
| 407 |
+
"model.layers.4.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 408 |
+
"model.layers.4.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 409 |
+
"model.layers.4.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 410 |
+
"model.layers.4.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 411 |
+
"model.layers.4.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 412 |
+
"model.layers.4.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 413 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 414 |
+
"model.layers.4.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 415 |
+
"model.layers.4.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 416 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 417 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 418 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 419 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 420 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 421 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 422 |
+
"model.layers.5.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 423 |
+
"model.layers.5.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 424 |
+
"model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 425 |
+
"model.layers.6.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 426 |
+
"model.layers.6.mamba.D": "model-00001-of-00002.safetensors",
|
| 427 |
+
"model.layers.6.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 428 |
+
"model.layers.6.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 429 |
+
"model.layers.6.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 430 |
+
"model.layers.6.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 431 |
+
"model.layers.6.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 432 |
+
"model.layers.6.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 433 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 434 |
+
"model.layers.6.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 435 |
+
"model.layers.6.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 436 |
+
"model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 437 |
+
"model.layers.7.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 438 |
+
"model.layers.7.mamba.D": "model-00001-of-00002.safetensors",
|
| 439 |
+
"model.layers.7.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 440 |
+
"model.layers.7.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 441 |
+
"model.layers.7.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 442 |
+
"model.layers.7.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 443 |
+
"model.layers.7.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 444 |
+
"model.layers.7.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 445 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 446 |
+
"model.layers.7.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 447 |
+
"model.layers.7.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 448 |
+
"model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 449 |
+
"model.layers.8.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 450 |
+
"model.layers.8.mamba.D": "model-00001-of-00002.safetensors",
|
| 451 |
+
"model.layers.8.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 452 |
+
"model.layers.8.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 453 |
+
"model.layers.8.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 454 |
+
"model.layers.8.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 455 |
+
"model.layers.8.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 456 |
+
"model.layers.8.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 457 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 458 |
+
"model.layers.8.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 459 |
+
"model.layers.8.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 460 |
+
"model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 461 |
+
"model.layers.9.mamba.A_log": "model-00001-of-00002.safetensors",
|
| 462 |
+
"model.layers.9.mamba.D": "model-00001-of-00002.safetensors",
|
| 463 |
+
"model.layers.9.mamba.conv1d.bias": "model-00001-of-00002.safetensors",
|
| 464 |
+
"model.layers.9.mamba.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 465 |
+
"model.layers.9.mamba.dt_bias": "model-00001-of-00002.safetensors",
|
| 466 |
+
"model.layers.9.mamba.in_proj.weight": "model-00001-of-00002.safetensors",
|
| 467 |
+
"model.layers.9.mamba.norm.weight": "model-00001-of-00002.safetensors",
|
| 468 |
+
"model.layers.9.mamba.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 469 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 470 |
+
"model.layers.9.shared_mlp.input_linear.weight": "model-00001-of-00002.safetensors",
|
| 471 |
+
"model.layers.9.shared_mlp.output_linear.weight": "model-00001-of-00002.safetensors",
|
| 472 |
+
"model.norm.weight": "model-00002-of-00002.safetensors"
|
| 473 |
+
}
|
| 474 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|end_of_text|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|end_of_text|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|pad|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<|unk|>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
system/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2026 Microtensor. All rights reserved.
|
| 2 |
+
|
| 3 |
+
This template and every derivative of it are licensed to you solely for
|
| 4 |
+
building and submitting systems to Microtensor arenas under the Microtensor
|
| 5 |
+
submission terms (https://www.microtensor.cloud/terms). No other use,
|
| 6 |
+
redistribution or sublicensing is permitted without written permission from
|
| 7 |
+
Microtensor. Models submitted to an arena are licensed to Microtensor under
|
| 8 |
+
the submission terms and are not published under a free licence.
|
system/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Microtensor miner template
|
| 2 |
+
|
| 3 |
+
A working submission for any Microtensor arena, in the two repository layout validators expect. Fork it, pick the adapter for your arena's task, replace the model, improve the harness, train the router, and ship.
|
| 4 |
+
|
| 5 |
+
## What a submission is
|
| 6 |
+
|
| 7 |
+
| Component | Lives in | What happens to it |
|
| 8 |
+
|---|---|---|
|
| 9 |
+
| Specialised model (SLM) | your `mt_slm_<arena>` repository | served by the official engine image on your GPU during the window; validators spot check its calls on the same hardware profile |
|
| 10 |
+
| Harness | `harness/` here | `main.py` runs in the official sandbox on your GPU with no network except the recording gateway; validators replay it on CPU against the transcript |
|
| 11 |
+
| Router | `router/` here | loaded by validators from the mirror as a one logit sequence classifier for the router pass |
|
| 12 |
+
| Frontier repair | `escalation/` here | runs in the sandbox with a ticket that pays for frontier calls through the relay; the signed receipts are checked on replay |
|
| 13 |
+
|
| 14 |
+
You may submit any subset; `manifest.json` names which. Validators fill the rest with the arena's reference components and pay you from the pools you compete in.
|
| 15 |
+
|
| 16 |
+
You declare a hardware profile, run the official images on your own GPU during the evaluation window and upload a transcript; validators replay the harness on CPU and spot check the model calls on the same profile. The docs: https://www.microtensor.cloud/docs/certified-inference/system/decentralised-evaluation
|
| 17 |
+
|
| 18 |
+
## Repository layout
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
<user>/microtensor_<arena> this repository
|
| 22 |
+
manifest.json written by `mt submit manifest`
|
| 23 |
+
config.json runtime limits and the adapter name
|
| 24 |
+
main.py serves /harness/run, /escalation/repair, /system/run
|
| 25 |
+
requirements.txt pinned packages from the allowed list only
|
| 26 |
+
harness/ engine.py, verifier.py, adapters/, prompts/<adapter>/
|
| 27 |
+
escalation/ patcher.py, prompts/<adapter>/
|
| 28 |
+
router/ config.json, model.safetensors, tokenizer files, training/
|
| 29 |
+
|
| 30 |
+
<user>/mt_slm_<arena> the slm_repo/ folder, pushed as its own repository
|
| 31 |
+
README.md LICENSE config.json generation_config.json model.safetensors tokenizer.json tokenizer_config.json
|
| 32 |
+
training/ recipe, data sources, distillation, compression, runs, scripts
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Adapters
|
| 36 |
+
|
| 37 |
+
An arena's items carry a task document (`task`) whose fields the arena definition describes in `schemas.input`. The harness and the repair prompt are written once, against an **adapter** that knows how to prompt for that task and how to check an answer before it is returned:
|
| 38 |
+
|
| 39 |
+
| Adapter | For arenas whose task is | Verification |
|
| 40 |
+
|---|---|---|
|
| 41 |
+
| `generic` | any structured or free text task | non empty, length bound, refuses injected instructions |
|
| 42 |
+
| `sql_generation` | a question plus a schema, answered with one SQLite query | parses with sqlglot, names only known tables, executes on the arena's sample database |
|
| 43 |
+
| `context_compression` | a coding agent's session to compact into the five field JSON (`ctx_compress`) | one JSON object; folds extra keys into `summary` and object entries into plain strings; checks the token budget the instruction states |
|
| 44 |
+
|
| 45 |
+
`config.json` names the adapter. Write your own under `harness/adapters/` for an arena with a different task: subclass `Adapter`, override `verify` (and `clean`, `query` or `render` when the task needs it), register it in `harness/adapters/__init__.py`, and add `harness/prompts/<name>/task.txt`, `retry.txt`, `escalation/prompts/<name>/system.txt`, `repair.txt`. Prompt templates may use any task field by name, `{fields}` for every field as `key: value` lines, `{task_json}`, and `{draft}`, `{errors}`, `{trace}` on retries and repairs.
|
| 46 |
+
|
| 47 |
+
For `ctx_compress`, set `config.json` to `"adapter": "context_compression"`, `"slm": {"max_context": 32768, "max_new_tokens": 3072}`. The prompts use the Qwen chat format; for Phi 4 mini, change `harness/prompts/context_compression/*.txt` to its `<|system|>`, `<|user|>`, `<|assistant|>` and `<|end|>` markers.
|
| 48 |
+
|
| 49 |
+
## Steps
|
| 50 |
+
|
| 51 |
+
1. Read the arena definition: `GET https://api.microtensor.cloud/v2/arenas/<arena>` gives the task, the base model and its licence, the tools, the budgets and the item counts.
|
| 52 |
+
2. Train and compress your model from the arena's base model, write the training record, push `slm_repo/` to `huggingface.co/<user>/mt_slm_<arena>`. Note the commit sha.
|
| 53 |
+
3. Train the router (`router/training/train_router.py`) on drafts from your own model, labelled by the arena's grader on the public sample items. Put the weights and tokenizer under `router/`.
|
| 54 |
+
4. Set `"adapter"` in `config.json`, adjust the prompts and the verifier. Keep `harness/` and `escalation/` under 2 MB together.
|
| 55 |
+
5. Write the manifest and check both repositories. Pick the hardware profile of the GPU you will run on (`evaluation.profiles` in the definition lists the allowed ones, https://www.microtensor.cloud/docs/certified-inference/system/hardware-profiles describes them), pass it to the manifest, and run the pre-flight check before you commit:
|
| 56 |
+
```
|
| 57 |
+
mt submit manifest --artifact . --arena <arena> --slm ./slm_repo \
|
| 58 |
+
--slm-repo <user>/mt_slm_<arena> --slm-revision <sha> --profile <profile>
|
| 59 |
+
mt submit validate --artifact . --slm ./slm_repo
|
| 60 |
+
mt check-model --slm ./slm_repo --profile <profile>
|
| 61 |
+
```
|
| 62 |
+
`--profile` writes `schema_version: 2` with `profile`, `weights_sha256` and the official image digest. `check-model` dry loads the config, tokenizer and safetensors headers on CPU and prints `ok` or the reason the mirror would refuse the model; a model that fails it is never evaluated.
|
| 63 |
+
6. Push this repository to `huggingface.co/<user>/microtensor_<arena>`. Note the commit sha.
|
| 64 |
+
7. Commit before the epoch's commit window closes. If the arena charges a fee, pay it first and cite the transfer; a free arena (every testnet arena) needs only the commit. The commit carries the same profile as the manifest and cannot change after Freeze 1:
|
| 65 |
+
```
|
| 66 |
+
mt submit pay --arena <arena>
|
| 67 |
+
mt submit commit --arena <arena> --hf-user <user> --artifact-sha <sha> --profile <profile> --fee-block <block> --fee-index <index>
|
| 68 |
+
mt submit commit --arena <arena> --hf-user <user> --artifact-sha <sha> --profile <profile>
|
| 69 |
+
```
|
| 70 |
+
8. Run the evaluation yourself during the window and upload the transcript before Freeze 2. After the commit window closes the server mirrors your frozen files and, at window open, publishes the items. On a machine with your profile's GPU, start the official runner image from the subnet repository's `deploy/docker-compose.miner.yml` (it needs the Docker socket, the GPU, `/var/lib/microtensor` and your wallet):
|
| 71 |
+
```
|
| 72 |
+
git clone https://github.com/microtensor-io/microtensor-subnet
|
| 73 |
+
cd microtensor-subnet/deploy
|
| 74 |
+
cp .env.example .env # wallet names, MT_ARENA, MT_EPOCH, DOCKER_GID
|
| 75 |
+
docker compose -f docker-compose.miner.yml up
|
| 76 |
+
```
|
| 77 |
+
It runs `mt miner run --arena <arena> --epoch <n>`: refuses unless the mirror lists you as `mirrored` on an allowed profile, pulls your frozen artifact, weights and the inputs bundle from the mirror (never from your live repositories), starts the pinned engine and sandbox, runs every pool in the fixed order, then writes, signs and uploads the transcript and prints the receipt `{"transcript_sha256", "received_at", "receipt_sig"}`. Keep the receipt; it proves the upload landed before the close block. A second upload before the deadline replaces the first; nothing lands after it. Before your first upload with a new harness, replay it the way validators will:
|
| 78 |
+
```
|
| 79 |
+
mt miner replay --transcript transcript.json --arena <arena> --epoch <n>
|
| 80 |
+
```
|
| 81 |
+
Nothing the runner times is used for scoring; a validator on your profile times your sampled calls against the reference on the same card. Arenas without the `evaluation` block skip this step: validators run everything.
|
| 82 |
+
9. `mt submit status --arena <arena>` shows the epoch and your published scores once validators report.
|
| 83 |
+
|
| 84 |
+
## Determinism rules
|
| 85 |
+
|
| 86 |
+
Validators replay `main.py` on CPU against the transcript your run produced, and every request it makes must match the recording exactly and in order. Code that breaks one of these rules fails replay and scores zero for the epoch:
|
| 87 |
+
|
| 88 |
+
- No clock reads beyond the frozen clock. The sandbox's time is fixed; no wall time, timers or timeouts of your own.
|
| 89 |
+
- Randomness only from the provided seed. Every request carries `seed`; never use `random`, `numpy.random` or `os.urandom` unseeded.
|
| 90 |
+
- No concurrency that can reorder calls. Model, tool and relay calls go out in a fixed order per item; no threads, no async fan out.
|
| 91 |
+
- No file or network access outside the gateway. Read your own artifact, write nothing, reach only the four service URLs.
|
| 92 |
+
|
| 93 |
+
The template's `harness/`, `escalation/` and `main.py` follow them. `mt miner replay` tells you before validators do.
|
| 94 |
+
|
| 95 |
+
## Training playbook
|
| 96 |
+
|
| 97 |
+
Prompting pays only through `harness/prompts/`; the model pool runs your weights under the arena's own prompt. There is no retrieval beyond the arena's tools on the item's database. Provenance fingerprints your weights against the declared base and against public checkpoints, so an untrained base never certifies. Work in this order:
|
| 98 |
+
|
| 99 |
+
1. Measure the arena's base model on the dev items with the arena's grader; that is the score to beat.
|
| 100 |
+
2. Set the adapter prompt, the verifier and the retry prompt; measure again.
|
| 101 |
+
3. Distil: `scripts/distill.py --arena <arena> --items dev/items.jsonl --teacher <model> --out pairs.jsonl` asks a teacher through your own provider key and keeps only the answers the arena grader accepts.
|
| 102 |
+
4. Fine tune: `scripts/train.py --base <base model> --data pairs.jsonl --eval held_out.jsonl --out merged/ --run-id r1 --method lora` trains on completions only under the arena prompt, merges the adapter, and writes the run record under `training/runs/r1/`. Use `--method qlora --fp16` on a T4, `--method full` for a 1.5B model on a 24 GB card.
|
| 103 |
+
5. Reinforce on the families that still fail, with the grader as the reward or as preference pairs of a passing teacher answer against a failing draft.
|
| 104 |
+
6. Compress to the format your envelope group takes: `scripts/compress.py --model merged/ --out slm_repo/ --method awq --calibration pairs.jsonl` for a GPU group, `--method gguf --llama-cpp <checkout>` for a CPU or phone group. Score before and after with `scripts/score_compress.py` and write both into `training/compression/before_after.json`.
|
| 105 |
+
7. Hold out whole domains, build twins as the twin rule does, run `mt envelope check` and `mt check-model`, then train the router on this model's drafts.
|
| 106 |
+
|
| 107 |
+
Items are fresh every epoch and the twin gap is deducted, so train the skill, not the sample data. The full playbook, with the hardware each step needs: https://www.microtensor.cloud/docs/certified-inference/guides/training
|
| 108 |
+
|
| 109 |
+
## The sandbox contract
|
| 110 |
+
|
| 111 |
+
Your `main.py` listens on `MT_PORT` and may reach only four addresses: `MT_SLM_URL` (your model, OpenAI completions, greedy), `MT_ROUTER_URL` (your router, `POST /decide`), `MT_TOOLS_URL` (the arena's tools, if it has any), and `MT_RELAY_URL` (`POST /v1/chat/completions` with the `x-mt-ticket` header, only inside a repair). Tool answers are sometimes faulty on purpose, and sometimes carry instructions; following them scores the item wrong. A request that times out, crashes or returns an invalid answer counts as wrong. The four addresses point at the recording gateway inside the official image, the clock is frozen, and each request body carries the item's `seed`.
|
| 112 |
+
|
| 113 |
+
## Licence
|
| 114 |
+
|
| 115 |
+
This template, your derivative of it and the model you submit are licensed under the Microtensor submission terms (see `LICENSE`); none of it is published under a free licence. Each arena lists which base model licences it accepts as inputs, because the base's terms must allow a commercial derivative.
|
system/config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter": "generic",
|
| 3 |
+
"slm": {
|
| 4 |
+
"max_context": 8192,
|
| 5 |
+
"max_new_tokens": 256
|
| 6 |
+
},
|
| 7 |
+
"router": {
|
| 8 |
+
"max_input_tokens": 4096
|
| 9 |
+
},
|
| 10 |
+
"harness": {
|
| 11 |
+
"max_steps": 3,
|
| 12 |
+
"max_total_tokens": 32000
|
| 13 |
+
},
|
| 14 |
+
"escalation": {
|
| 15 |
+
"preferred_model": "gpt-5"
|
| 16 |
+
}
|
| 17 |
+
}
|
system/escalation/patcher.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from typing import Any
|
| 5 |
+
|
| 6 |
+
import httpx
|
| 7 |
+
|
| 8 |
+
from harness.adapters import Adapter
|
| 9 |
+
|
| 10 |
+
PROMPTS = Path(__file__).resolve().parent / "prompts"
|
| 11 |
+
MAX_TOKENS = 512
|
| 12 |
+
TRACE_LIMIT = 1200
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def _trim(text: str, limit: int) -> str:
|
| 16 |
+
return text if len(text) <= limit else text[-limit:]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def repair(
|
| 20 |
+
task: dict[str, Any],
|
| 21 |
+
draft: Any,
|
| 22 |
+
trace: str,
|
| 23 |
+
errors: str,
|
| 24 |
+
*,
|
| 25 |
+
adapter: Adapter,
|
| 26 |
+
relay_url: str,
|
| 27 |
+
ticket: str,
|
| 28 |
+
model: str,
|
| 29 |
+
) -> Any:
|
| 30 |
+
system = adapter.render(PROMPTS, "system", task)
|
| 31 |
+
user = adapter.render(
|
| 32 |
+
PROMPTS,
|
| 33 |
+
"repair",
|
| 34 |
+
task,
|
| 35 |
+
draft=adapter.as_text(draft),
|
| 36 |
+
errors=_trim(errors or "no verifier output", 400),
|
| 37 |
+
trace=_trim(trace or "", TRACE_LIMIT),
|
| 38 |
+
)
|
| 39 |
+
body = {
|
| 40 |
+
"model": model,
|
| 41 |
+
"max_tokens": MAX_TOKENS,
|
| 42 |
+
"messages": [{"role": "system", "content": system}, {"role": "user", "content": user}],
|
| 43 |
+
}
|
| 44 |
+
with httpx.Client(timeout=180.0) as http:
|
| 45 |
+
response = http.post(
|
| 46 |
+
relay_url.rstrip("/") + "/v1/chat/completions",
|
| 47 |
+
json=body,
|
| 48 |
+
headers={"x-mt-ticket": ticket},
|
| 49 |
+
)
|
| 50 |
+
if response.status_code != 200:
|
| 51 |
+
return draft
|
| 52 |
+
choices = response.json().get("choices") or [{}]
|
| 53 |
+
text = str((choices[0].get("message") or {}).get("content") or "")
|
| 54 |
+
fixed = adapter.clean(text)
|
| 55 |
+
return fixed or draft
|
system/escalation/prompts/context_compression/repair.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Instruction:
|
| 2 |
+
{system}
|
| 3 |
+
|
| 4 |
+
Session:
|
| 5 |
+
{user}
|
| 6 |
+
|
| 7 |
+
Draft compaction:
|
| 8 |
+
{draft}
|
| 9 |
+
|
| 10 |
+
Why the draft is wrong: {errors}
|
| 11 |
+
|
| 12 |
+
Harness trace:
|
| 13 |
+
{trace}
|
| 14 |
+
|
| 15 |
+
Return the corrected compaction within the token budget the instruction states.
|
system/escalation/prompts/context_compression/system.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
You repair the compaction of a coding agent's session. Reply with one JSON object and nothing else, with exactly the fields summary, files_touched, open_tasks, errors and decisions; every list entry is a plain string. Copy file paths, function names and error messages exactly as they appear in the session. Use only facts from the session.
|
system/escalation/prompts/generic/repair.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Task:
|
| 2 |
+
{fields}
|
| 3 |
+
|
| 4 |
+
Draft answer:
|
| 5 |
+
{draft}
|
| 6 |
+
|
| 7 |
+
Why the draft is wrong: {errors}
|
| 8 |
+
|
| 9 |
+
Harness trace:
|
| 10 |
+
{trace}
|
| 11 |
+
|
| 12 |
+
Return the corrected answer.
|
system/escalation/prompts/generic/system.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
You repair answers to tasks. Reply with the corrected answer only, no prose, no code fences.
|
system/escalation/prompts/sql_generation/repair.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Schema:
|
| 2 |
+
{schema}
|
| 3 |
+
|
| 4 |
+
Question: {question}
|
| 5 |
+
|
| 6 |
+
Draft query:
|
| 7 |
+
{draft}
|
| 8 |
+
|
| 9 |
+
Why the draft is wrong: {errors}
|
| 10 |
+
|
| 11 |
+
Harness trace:
|
| 12 |
+
{trace}
|
| 13 |
+
|
| 14 |
+
Return the corrected query.
|
system/escalation/prompts/sql_generation/system.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
You repair SQLite queries. Reply with one corrected query only, no prose, no code fences.
|
system/harness/adapters/__init__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from harness.adapters.base import Adapter, Verdict
|
| 4 |
+
from harness.adapters.context_compression import CompressionAdapter
|
| 5 |
+
from harness.adapters.generic import GenericAdapter
|
| 6 |
+
from harness.adapters.sql_generation import SqlAdapter
|
| 7 |
+
|
| 8 |
+
ADAPTERS: dict[str, Adapter] = {
|
| 9 |
+
GenericAdapter.name: GenericAdapter(),
|
| 10 |
+
SqlAdapter.name: SqlAdapter(),
|
| 11 |
+
CompressionAdapter.name: CompressionAdapter(),
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def load(name: str) -> Adapter:
|
| 16 |
+
try:
|
| 17 |
+
return ADAPTERS[name]
|
| 18 |
+
except KeyError as exc:
|
| 19 |
+
raise ValueError(f"unknown adapter {name!r}; one of {sorted(ADAPTERS)}") from exc
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
__all__ = ["ADAPTERS", "Adapter", "Verdict", "load"]
|
system/harness/adapters/base.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import re
|
| 5 |
+
from dataclasses import dataclass
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any
|
| 8 |
+
|
| 9 |
+
_FENCE = re.compile(r"```[a-zA-Z]*")
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
@dataclass(frozen=True)
|
| 13 |
+
class Verdict:
|
| 14 |
+
ok: bool
|
| 15 |
+
answer: Any
|
| 16 |
+
reason: str = ""
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class SafeDict(dict):
|
| 20 |
+
def __missing__(self, key: str) -> str:
|
| 21 |
+
return ""
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def strip_fences(text: str) -> str:
|
| 25 |
+
return _FENCE.sub("\n", text).strip()
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def fields_of(task: dict[str, Any]) -> str:
|
| 29 |
+
lines = []
|
| 30 |
+
for key, value in task.items():
|
| 31 |
+
body = value if isinstance(value, str) else json.dumps(value, ensure_ascii=False)
|
| 32 |
+
lines.append(f"{key}: {body}")
|
| 33 |
+
return "\n".join(lines)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class Adapter:
|
| 37 |
+
name = "generic"
|
| 38 |
+
stop: list[str] = ["\n\n\n"]
|
| 39 |
+
|
| 40 |
+
def render(self, prompts: Path, kind: str, task: dict[str, Any], **extra: Any) -> str:
|
| 41 |
+
template = (prompts / self.name / f"{kind}.txt").read_text(encoding="utf-8")
|
| 42 |
+
values = SafeDict(task_json=json.dumps(task, ensure_ascii=False), fields=fields_of(task))
|
| 43 |
+
values.update({k: v for k, v in task.items() if isinstance(v, str | int | float)})
|
| 44 |
+
values.update({k: (v if isinstance(v, str) else json.dumps(v)) for k, v in extra.items()})
|
| 45 |
+
return template.format_map(values)
|
| 46 |
+
|
| 47 |
+
def query(self, task: dict[str, Any]) -> str:
|
| 48 |
+
for key in ("question", "prompt", "input", "text", "instruction"):
|
| 49 |
+
if isinstance(task.get(key), str):
|
| 50 |
+
return str(task[key])
|
| 51 |
+
return fields_of(task)
|
| 52 |
+
|
| 53 |
+
def clean(self, text: str) -> str:
|
| 54 |
+
return strip_fences(text)
|
| 55 |
+
|
| 56 |
+
def verify(self, text: str, task: dict[str, Any], tools_url: str) -> Verdict:
|
| 57 |
+
answer = self.clean(text)
|
| 58 |
+
if not answer:
|
| 59 |
+
return Verdict(False, "", "empty answer")
|
| 60 |
+
return Verdict(True, answer)
|
| 61 |
+
|
| 62 |
+
def as_text(self, answer: Any) -> str:
|
| 63 |
+
return answer if isinstance(answer, str) else json.dumps(answer, ensure_ascii=False)
|
system/harness/adapters/context_compression.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import re
|
| 5 |
+
from typing import Any
|
| 6 |
+
|
| 7 |
+
from harness.adapters.base import Adapter, Verdict, strip_fences
|
| 8 |
+
|
| 9 |
+
FIELDS = ("summary", "files_touched", "open_tasks", "errors", "decisions")
|
| 10 |
+
BUDGET = re.compile(r"within (\d+) tokens")
|
| 11 |
+
CHARS_PER_TOKEN = 3.5
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def _text(value: Any) -> str:
|
| 15 |
+
if isinstance(value, str):
|
| 16 |
+
return value.strip()
|
| 17 |
+
if isinstance(value, dict):
|
| 18 |
+
return "; ".join(f"{key}: {_text(item)}" for key, item in value.items() if _text(item))
|
| 19 |
+
if isinstance(value, list):
|
| 20 |
+
return "; ".join(_text(item) for item in value if _text(item))
|
| 21 |
+
return "" if value is None else str(value)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def normalise(found: dict[str, Any]) -> dict[str, Any]:
|
| 25 |
+
summary = _text(found.get("summary"))
|
| 26 |
+
extra = [f"{key}: {_text(value)}" for key, value in found.items() if key not in FIELDS and _text(value)]
|
| 27 |
+
if extra:
|
| 28 |
+
summary = " ".join([summary, *extra]).strip()
|
| 29 |
+
shaped: dict[str, Any] = {"summary": summary}
|
| 30 |
+
for key in FIELDS[1:]:
|
| 31 |
+
value = found.get(key)
|
| 32 |
+
entries = value if isinstance(value, list) else ([] if value in (None, "") else [value])
|
| 33 |
+
shaped[key] = [entry for entry in (_text(item) for item in entries) if entry]
|
| 34 |
+
return shaped
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class CompressionAdapter(Adapter):
|
| 38 |
+
name = "context_compression"
|
| 39 |
+
stop = ["<|im_end|>", "<|endoftext|>", "<|end|>"]
|
| 40 |
+
|
| 41 |
+
def clean(self, text: str) -> str:
|
| 42 |
+
body = strip_fences(text)
|
| 43 |
+
start, end = body.find("{"), body.rfind("}")
|
| 44 |
+
return body[start : end + 1] if start >= 0 and end > start else body
|
| 45 |
+
|
| 46 |
+
def verify(self, text: str, task: dict[str, Any], tools_url: str) -> Verdict:
|
| 47 |
+
body = self.clean(text)
|
| 48 |
+
try:
|
| 49 |
+
found = json.loads(body)
|
| 50 |
+
except ValueError:
|
| 51 |
+
return Verdict(False, body, "the reply is not one JSON object")
|
| 52 |
+
if not isinstance(found, dict):
|
| 53 |
+
return Verdict(False, body, "the reply is not one JSON object")
|
| 54 |
+
if not _text(found.get("summary")):
|
| 55 |
+
return Verdict(False, body, "the summary field is missing or empty")
|
| 56 |
+
answer = json.dumps(normalise(found), ensure_ascii=False)
|
| 57 |
+
budget = BUDGET.search(str(task.get("system") or ""))
|
| 58 |
+
if budget and len(answer) / CHARS_PER_TOKEN > int(budget.group(1)):
|
| 59 |
+
return Verdict(
|
| 60 |
+
False,
|
| 61 |
+
answer,
|
| 62 |
+
f"the reply is longer than {budget.group(1)} tokens; shorten the summary and the lists",
|
| 63 |
+
)
|
| 64 |
+
return Verdict(True, answer)
|
system/harness/adapters/generic.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from harness.adapters.base import Adapter, Verdict
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class GenericAdapter(Adapter):
|
| 9 |
+
name = "generic"
|
| 10 |
+
max_chars = 4000
|
| 11 |
+
|
| 12 |
+
def verify(self, text: str, task: dict[str, Any], tools_url: str) -> Verdict:
|
| 13 |
+
answer = self.clean(text)
|
| 14 |
+
if not answer:
|
| 15 |
+
return Verdict(False, "", "empty answer")
|
| 16 |
+
if len(answer) > self.max_chars:
|
| 17 |
+
return Verdict(False, answer, f"answer longer than {self.max_chars} characters")
|
| 18 |
+
if "ignore the task" in answer.lower():
|
| 19 |
+
return Verdict(False, answer, "answer repeats injected instructions")
|
| 20 |
+
return Verdict(True, answer)
|
system/harness/adapters/sql_generation.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
from typing import Any
|
| 6 |
+
|
| 7 |
+
import httpx
|
| 8 |
+
|
| 9 |
+
from harness.adapters.base import Adapter, Verdict, strip_fences
|
| 10 |
+
|
| 11 |
+
_FORBIDDEN = re.compile(r"\b(attach|detach|pragma|vacuum|insert|update|delete|drop|alter)\b", re.I)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def schema_lookup(tools_url: str) -> str:
|
| 15 |
+
try:
|
| 16 |
+
with httpx.Client(timeout=20.0) as http:
|
| 17 |
+
response = http.post(tools_url.rstrip("/") + "/tools/schema_lookup", json={})
|
| 18 |
+
response.raise_for_status()
|
| 19 |
+
tables = response.json().get("tables") or []
|
| 20 |
+
except (httpx.HTTPError, ValueError):
|
| 21 |
+
return ""
|
| 22 |
+
return "\n".join(
|
| 23 |
+
str(t.get("sql") or "") for t in tables if "ignore the task" not in str(t.get("sql") or "").lower()
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class SqlAdapter(Adapter):
|
| 28 |
+
name = "sql_generation"
|
| 29 |
+
stop = ["\n\n", ";"]
|
| 30 |
+
|
| 31 |
+
def render(self, prompts: Path, kind: str, task: dict[str, Any], **extra: Any) -> str:
|
| 32 |
+
if not task.get("schema") and extra.get("tools_url"):
|
| 33 |
+
task = {**task, "schema": schema_lookup(str(extra["tools_url"]))}
|
| 34 |
+
return super().render(prompts, kind, task, **extra)
|
| 35 |
+
|
| 36 |
+
def clean(self, text: str) -> str:
|
| 37 |
+
body = strip_fences(text)
|
| 38 |
+
body = re.sub(r"^\s*(sql|sqlite|query|answer)\s*:\s*", "", body, flags=re.I)
|
| 39 |
+
return body.split(";", 1)[0].strip()
|
| 40 |
+
|
| 41 |
+
def verify(self, text: str, task: dict[str, Any], tools_url: str) -> Verdict:
|
| 42 |
+
sql = self.clean(text)
|
| 43 |
+
if not sql:
|
| 44 |
+
return Verdict(False, "", "empty answer")
|
| 45 |
+
if not sql.lower().startswith(("select", "with")):
|
| 46 |
+
return Verdict(False, sql, "not a SELECT statement")
|
| 47 |
+
if _FORBIDDEN.search(sql):
|
| 48 |
+
return Verdict(False, sql, "forbidden statement")
|
| 49 |
+
import sqlglot
|
| 50 |
+
|
| 51 |
+
try:
|
| 52 |
+
parsed = sqlglot.parse_one(sql, read="sqlite")
|
| 53 |
+
except sqlglot.errors.ParseError as exc:
|
| 54 |
+
return Verdict(False, sql, f"does not parse: {str(exc)[:120]}")
|
| 55 |
+
schema = str(task.get("schema") or "")
|
| 56 |
+
tables = {t.name.lower() for t in parsed.find_all(sqlglot.exp.Table)}
|
| 57 |
+
known = {
|
| 58 |
+
name.lower()
|
| 59 |
+
for name in re.findall(r"create\s+table\s+\"?([A-Za-z_][A-Za-z0-9_]*)", schema, re.I)
|
| 60 |
+
}
|
| 61 |
+
unknown = sorted(tables - known) if known else []
|
| 62 |
+
if unknown:
|
| 63 |
+
return Verdict(False, sql, f"unknown tables: {', '.join(unknown)}")
|
| 64 |
+
try:
|
| 65 |
+
with httpx.Client(timeout=20.0) as http:
|
| 66 |
+
response = http.post(
|
| 67 |
+
tools_url.rstrip("/") + "/tools/query_execution", json={"sql": sql}
|
| 68 |
+
)
|
| 69 |
+
if response.status_code == 200:
|
| 70 |
+
body = response.json()
|
| 71 |
+
if isinstance(body, dict) and body.get("error"):
|
| 72 |
+
return Verdict(False, sql, f"execution error: {str(body['error'])[:120]}")
|
| 73 |
+
except (httpx.HTTPError, ValueError):
|
| 74 |
+
pass
|
| 75 |
+
return Verdict(True, sql)
|
system/harness/engine.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from dataclasses import dataclass, field
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
from typing import Any
|
| 6 |
+
|
| 7 |
+
import httpx
|
| 8 |
+
|
| 9 |
+
from harness.adapters import Adapter
|
| 10 |
+
from harness.verifier import verify
|
| 11 |
+
|
| 12 |
+
PROMPTS = Path(__file__).resolve().parent / "prompts"
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
@dataclass
|
| 16 |
+
class HarnessResult:
|
| 17 |
+
answer: Any
|
| 18 |
+
verified: bool
|
| 19 |
+
errors: str = ""
|
| 20 |
+
trace: str = ""
|
| 21 |
+
steps: int = 0
|
| 22 |
+
attempts: list[str] = field(default_factory=list)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def complete(slm_url: str, prompt: str, max_tokens: int, stop: list[str]) -> str:
|
| 26 |
+
with httpx.Client(timeout=120.0) as http:
|
| 27 |
+
response = http.post(
|
| 28 |
+
slm_url.rstrip("/") + "/v1/completions",
|
| 29 |
+
json={"model": "slm", "prompt": prompt, "max_tokens": max_tokens, "stop": stop},
|
| 30 |
+
)
|
| 31 |
+
response.raise_for_status()
|
| 32 |
+
choices = response.json().get("choices") or [{}]
|
| 33 |
+
return str(choices[0].get("text") or "").strip()
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def run_harness(
|
| 37 |
+
task: dict[str, Any],
|
| 38 |
+
*,
|
| 39 |
+
adapter: Adapter,
|
| 40 |
+
slm_url: str,
|
| 41 |
+
tools_url: str,
|
| 42 |
+
config: dict[str, Any],
|
| 43 |
+
) -> HarnessResult:
|
| 44 |
+
max_tokens = int((config.get("slm") or {}).get("max_new_tokens") or 256)
|
| 45 |
+
max_steps = int((config.get("harness") or {}).get("max_steps") or 3)
|
| 46 |
+
errors = ""
|
| 47 |
+
answer = ""
|
| 48 |
+
trace: list[str] = []
|
| 49 |
+
attempts: list[str] = []
|
| 50 |
+
for step in range(1, max_steps + 1):
|
| 51 |
+
kind = "task" if not errors else "retry"
|
| 52 |
+
prompt = adapter.render(
|
| 53 |
+
PROMPTS, kind, task, draft=answer, errors=errors, tools_url=tools_url
|
| 54 |
+
)
|
| 55 |
+
answer = complete(slm_url, prompt, max_tokens, adapter.stop)
|
| 56 |
+
attempts.append(answer)
|
| 57 |
+
verdict = verify(adapter, answer, task, tools_url)
|
| 58 |
+
trace.append(f"step {step}: {'ok' if verdict.ok else verdict.reason}")
|
| 59 |
+
if verdict.ok:
|
| 60 |
+
return HarnessResult(
|
| 61 |
+
answer=verdict.answer, verified=True, trace="\n".join(trace), steps=step, attempts=attempts
|
| 62 |
+
)
|
| 63 |
+
errors = verdict.reason
|
| 64 |
+
return HarnessResult(
|
| 65 |
+
answer=adapter.clean(answer),
|
| 66 |
+
verified=False,
|
| 67 |
+
errors=errors,
|
| 68 |
+
trace="\n".join(trace),
|
| 69 |
+
steps=max_steps,
|
| 70 |
+
attempts=attempts,
|
| 71 |
+
)
|
system/harness/prompts/context_compression/retry.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<|im_start|>system
|
| 2 |
+
{system}<|im_end|>
|
| 3 |
+
<|im_start|>user
|
| 4 |
+
{user}<|im_end|>
|
| 5 |
+
<|im_start|>assistant
|
| 6 |
+
{draft}<|im_end|>
|
| 7 |
+
<|im_start|>user
|
| 8 |
+
That reply was rejected: {errors}. Reply again with only the JSON object with exactly the five fields summary, files_touched, open_tasks, errors and decisions, every list entry a plain string.<|im_end|>
|
| 9 |
+
<|im_start|>assistant
|
system/harness/prompts/context_compression/task.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<|im_start|>system
|
| 2 |
+
{system}<|im_end|>
|
| 3 |
+
<|im_start|>user
|
| 4 |
+
{user}<|im_end|>
|
| 5 |
+
<|im_start|>assistant
|
system/harness/prompts/generic/retry.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You answer tasks precisely. Reply with the answer only, no explanation.
|
| 2 |
+
|
| 3 |
+
{fields}
|
| 4 |
+
|
| 5 |
+
A previous attempt was rejected.
|
| 6 |
+
Attempt:
|
| 7 |
+
{draft}
|
| 8 |
+
Problem: {errors}
|
| 9 |
+
|
| 10 |
+
Write a corrected answer.
|
| 11 |
+
Answer:
|
system/harness/prompts/generic/task.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You answer tasks precisely. Reply with the answer only, no explanation.
|
| 2 |
+
|
| 3 |
+
{fields}
|
| 4 |
+
|
| 5 |
+
Answer:
|
system/harness/prompts/sql_generation/retry.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a SQLite expert. Answer with exactly one SQL query and nothing else.
|
| 2 |
+
|
| 3 |
+
Schema:
|
| 4 |
+
{schema}
|
| 5 |
+
|
| 6 |
+
Question: {question}
|
| 7 |
+
|
| 8 |
+
A previous attempt was rejected.
|
| 9 |
+
Attempt:
|
| 10 |
+
{draft}
|
| 11 |
+
Problem: {errors}
|
| 12 |
+
|
| 13 |
+
Write a corrected query.
|
| 14 |
+
SQL:
|
system/harness/prompts/sql_generation/task.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a SQLite expert. Answer with exactly one SQL query and nothing else.
|
| 2 |
+
|
| 3 |
+
Schema:
|
| 4 |
+
{schema}
|
| 5 |
+
|
| 6 |
+
Question: {question}
|
| 7 |
+
|
| 8 |
+
SQL:
|
system/harness/verifier.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from harness.adapters import Adapter, Verdict
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def verify(adapter: Adapter, text: str, task: dict[str, Any], tools_url: str) -> Verdict:
|
| 9 |
+
return adapter.verify(text, task, tools_url)
|
system/main.py
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
import sys
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any
|
| 8 |
+
|
| 9 |
+
import httpx
|
| 10 |
+
from fastapi import FastAPI
|
| 11 |
+
from pydantic import BaseModel, Field
|
| 12 |
+
|
| 13 |
+
ROOT = Path(__file__).resolve().parent
|
| 14 |
+
sys.path.insert(0, str(ROOT))
|
| 15 |
+
|
| 16 |
+
from escalation.patcher import repair # noqa: E402
|
| 17 |
+
from harness.adapters import load # noqa: E402
|
| 18 |
+
from harness.engine import run_harness # noqa: E402
|
| 19 |
+
|
| 20 |
+
CONFIG: dict[str, Any] = json.loads((ROOT / "config.json").read_text(encoding="utf-8"))
|
| 21 |
+
ADAPTER = load(str(CONFIG.get("adapter") or "generic"))
|
| 22 |
+
SLM_URL = os.environ["MT_SLM_URL"]
|
| 23 |
+
ROUTER_URL = os.environ.get("MT_ROUTER_URL", "")
|
| 24 |
+
TOOLS_URL = os.environ["MT_TOOLS_URL"]
|
| 25 |
+
RELAY_URL = os.environ["MT_RELAY_URL"]
|
| 26 |
+
PREFERRED_MODEL = str((CONFIG.get("escalation") or {}).get("preferred_model") or "")
|
| 27 |
+
|
| 28 |
+
app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class HarnessIn(BaseModel):
|
| 32 |
+
item_id: str
|
| 33 |
+
task: dict[str, Any]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class RepairIn(BaseModel):
|
| 37 |
+
item_id: str
|
| 38 |
+
task: dict[str, Any]
|
| 39 |
+
draft: Any = None
|
| 40 |
+
trace: str = ""
|
| 41 |
+
errors: str = ""
|
| 42 |
+
ticket: str = ""
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class SystemIn(BaseModel):
|
| 46 |
+
item_id: str
|
| 47 |
+
task: dict[str, Any]
|
| 48 |
+
floor: float = Field(ge=0.0, le=1.0)
|
| 49 |
+
ticket: str = ""
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def decide(query: str, draft: str) -> float:
|
| 53 |
+
if not ROUTER_URL:
|
| 54 |
+
return 1.0
|
| 55 |
+
with httpx.Client(timeout=30.0) as http:
|
| 56 |
+
response = http.post(
|
| 57 |
+
ROUTER_URL.rstrip("/") + "/decide", json={"input": {"query": query, "draft": draft}}
|
| 58 |
+
)
|
| 59 |
+
response.raise_for_status()
|
| 60 |
+
answers = response.json().get("answers") or []
|
| 61 |
+
return float(answers[0]["probability"]) if answers else 0.0
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
def _repair(payload: RepairIn | SystemIn, draft: Any, trace: str, errors: str) -> Any:
|
| 65 |
+
return repair(
|
| 66 |
+
payload.task,
|
| 67 |
+
draft,
|
| 68 |
+
trace,
|
| 69 |
+
errors,
|
| 70 |
+
adapter=ADAPTER,
|
| 71 |
+
relay_url=RELAY_URL,
|
| 72 |
+
ticket=payload.ticket,
|
| 73 |
+
model=PREFERRED_MODEL,
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
@app.get("/health")
|
| 78 |
+
def health() -> dict[str, str]:
|
| 79 |
+
return {"status": "ok", "adapter": ADAPTER.name}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
@app.post("/harness/run")
|
| 83 |
+
def harness_run(payload: HarnessIn) -> dict[str, Any]:
|
| 84 |
+
result = run_harness(
|
| 85 |
+
payload.task, adapter=ADAPTER, slm_url=SLM_URL, tools_url=TOOLS_URL, config=CONFIG
|
| 86 |
+
)
|
| 87 |
+
return {
|
| 88 |
+
"answer": result.answer,
|
| 89 |
+
"self_check": {"pass": result.verified},
|
| 90 |
+
"trace": result.trace,
|
| 91 |
+
"steps": result.steps,
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
@app.post("/escalation/repair")
|
| 96 |
+
def escalation_repair(payload: RepairIn) -> dict[str, Any]:
|
| 97 |
+
return {"answer": _repair(payload, payload.draft, payload.trace, payload.errors)}
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
@app.post("/system/run")
|
| 101 |
+
def system_run(payload: SystemIn) -> dict[str, Any]:
|
| 102 |
+
result = run_harness(
|
| 103 |
+
payload.task, adapter=ADAPTER, slm_url=SLM_URL, tools_url=TOOLS_URL, config=CONFIG
|
| 104 |
+
)
|
| 105 |
+
draft = result.answer
|
| 106 |
+
probability = decide(ADAPTER.query(payload.task), ADAPTER.as_text(draft))
|
| 107 |
+
if result.verified and probability >= payload.floor:
|
| 108 |
+
return {"answer": draft, "route": "local", "p": probability}
|
| 109 |
+
answer = _repair(payload, draft, result.trace, result.errors)
|
| 110 |
+
return {"answer": answer, "route": "escalated", "p": probability}
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
if __name__ == "__main__":
|
| 114 |
+
import uvicorn
|
| 115 |
+
|
| 116 |
+
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("MT_PORT", "8080")), log_level="warning")
|
system/manifest.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"arena": "ctx_compress",
|
| 3 |
+
"components": [
|
| 4 |
+
"slm"
|
| 5 |
+
],
|
| 6 |
+
"files": {
|
| 7 |
+
"LICENSE": "sha256:30746c09020f9d1cd2882d681e7b972848f83a128fef195575a41a1e41fdec7e",
|
| 8 |
+
"README.md": "sha256:0b8c5dd5386c9c0cd0e090c98f578aa9fd9a45accd37207e09d556328a5e4b99",
|
| 9 |
+
"config.json": "sha256:59dcfc49e921e04c16dc538547db0af8d56b4ee1acbe1a6da46c59588b934442",
|
| 10 |
+
"escalation/patcher.py": "sha256:600f78f383d94cda69381ddf0d84873024f90bad4b058b9e006fa8b2dba6c779",
|
| 11 |
+
"escalation/prompts/context_compression/repair.txt": "sha256:f63b5f7a16621b6c3b471fb229410414866c2913abd695f26201c6f09e2194c2",
|
| 12 |
+
"escalation/prompts/context_compression/system.txt": "sha256:2f3bb96f667a24c1f50f2c6f4d856fefe06642b9b71cec8887596828ef79aeea",
|
| 13 |
+
"escalation/prompts/generic/repair.txt": "sha256:734091ff1ab1be571b6fcd2d450c265f55c431ad4c10151b8d31c1e37ec57023",
|
| 14 |
+
"escalation/prompts/generic/system.txt": "sha256:1191cfb67c22351adc36774fe5da8842cfa256a9f780ca1b41b7b7cdbfd9b13f",
|
| 15 |
+
"escalation/prompts/sql_generation/repair.txt": "sha256:7cdc2b0f488c003fbdc95be46268491aac9bfc8ae078390d03b2e2702932bd5e",
|
| 16 |
+
"escalation/prompts/sql_generation/system.txt": "sha256:a82c3d64ac057bb7b376270fcd180e680969cdbd3290ca67429d60599979c659",
|
| 17 |
+
"harness/adapters/__init__.py": "sha256:64899ed354e462e8bf6b278244401259e2d798943559382ec01bed7c36ee6d7b",
|
| 18 |
+
"harness/adapters/base.py": "sha256:b04da8e04e848e1b6d9edc4105391212121010ace0ac257421671535603a96b0",
|
| 19 |
+
"harness/adapters/context_compression.py": "sha256:47d8b1ccadbd4d7921dc78c4076f829d727c3f37b59dd0622081644997a3c3f0",
|
| 20 |
+
"harness/adapters/generic.py": "sha256:7ca2b1d5b1e9dec0d83820881f85744fcd3ae42d3a75d117447aead906872e5b",
|
| 21 |
+
"harness/adapters/sql_generation.py": "sha256:1e392d15645901fd080adf497cac1ec2b817baf5eb71959958d1c00302e6e21e",
|
| 22 |
+
"harness/engine.py": "sha256:87d33738a0c04fe0314e7f37bee85d3f7a6e7b7e94ff51f0c8ab6eac3347f768",
|
| 23 |
+
"harness/prompts/context_compression/retry.txt": "sha256:0a307850ab2187825dad4d3d36fb43adea4fdb6e0c4bd516d1a18f994982a99d",
|
| 24 |
+
"harness/prompts/context_compression/task.txt": "sha256:826ca63bccd76232f5aeaf0dd85d79e7747f6cf312e9ec469a4696d114d37d0e",
|
| 25 |
+
"harness/prompts/generic/retry.txt": "sha256:6f4741f5c4daf44e03fa55b0b5c6a10c7e84af780789e019a095060d3a6b7b06",
|
| 26 |
+
"harness/prompts/generic/task.txt": "sha256:695a5284f2c90433fd97617da4c82cdcb623d0ab091cca861f3f1d628a16a16c",
|
| 27 |
+
"harness/prompts/sql_generation/retry.txt": "sha256:9da2f6b58c3030c626dc5cff6c7799ab979779371c76382c0a802836a857601c",
|
| 28 |
+
"harness/prompts/sql_generation/task.txt": "sha256:c3a8b6c7028f60614b3c9c1240ab7f98fe51cd4455b7c025ebe972066f0fd994",
|
| 29 |
+
"harness/verifier.py": "sha256:8be9c46674ed2a4c5e60457f9aefd767d907b697bb5978c9bc48698015444681",
|
| 30 |
+
"main.py": "sha256:b58cf3812b208b02e9b08d8434e6dae6e709f6352470c5ab10a0a8dd5de42d59",
|
| 31 |
+
"requirements.txt": "sha256:db65ff41ff4d68c613b1312491e7af60a37c1769e28e215c4f510e3614b77551"
|
| 32 |
+
},
|
| 33 |
+
"hardware_class": "mt-5",
|
| 34 |
+
"image_digest": "sha256:aada28e6a4b50961d10bf63cb04c30e8449e4bfb6e385fbad7f387cf8eb9b9dd",
|
| 35 |
+
"profile": "P1",
|
| 36 |
+
"schema_version": 2,
|
| 37 |
+
"slm": {
|
| 38 |
+
"files": {
|
| 39 |
+
"LICENSE": "sha256:9157cee91bf76b9f78b3075e22d2debd984272b597b325e61a7957f0ba065b00",
|
| 40 |
+
"README.md": "sha256:93d876f9b25a1daad71e417227329417d62fc1f6df4627aaa20d951342dbf32a",
|
| 41 |
+
"chat_template.jinja": "sha256:9524df67b77a7b25a2dfee898f75b316a157eb9d855b51e32aeac79d7c8a83ce",
|
| 42 |
+
"config.json": "sha256:bd828b00edcc25f93d6fa55210acebcd058054c4d5b5fa6c5146b0a0d18172ee",
|
| 43 |
+
"generation_config.json": "sha256:7c04cb9d2ba771f7528fba5a7104999cdaf7566d02b5fbd58472829f62716177",
|
| 44 |
+
"model-00001-of-00002.safetensors": "sha256:f708be74700516bdfa6f81815e440c95193854a2caf79226434b6874da940fb7",
|
| 45 |
+
"model-00002-of-00002.safetensors": "sha256:d81c7821063d966c4a81617fa46d93c84a2ac17a055d25b7d5910adeee7f8803",
|
| 46 |
+
"model.safetensors.index.json": "sha256:6e2bc176baee38bfb8a177d324e5db720227bde37c6a072d06b45f390858e2ea",
|
| 47 |
+
"special_tokens_map.json": "sha256:c08676c49fd7969a3130f72be6d4bf34da66aa484a6e21dffe359893a1bd5f2e",
|
| 48 |
+
"tokenizer.json": "sha256:e2bad66439538cb4d5a7580680932432ed9ece9d3b8577e675512bdf11599253",
|
| 49 |
+
"tokenizer_config.json": "sha256:a5ec5daab12ba090a90f3dd169c8f9c275557013a87b9c1258dc7cb497a35c86"
|
| 50 |
+
},
|
| 51 |
+
"repo": "Samonte/mt_slm_ctx_compress",
|
| 52 |
+
"revision": "698535aacbd7d3555979fc0b7613d6b62dcfc895"
|
| 53 |
+
},
|
| 54 |
+
"weights_sha256": "e7528c4970d1dd273da438528078d8f4c86d3b6651882e5183ccbbfee5b08b7f"
|
| 55 |
+
}
|
system/requirements.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi==0.115.12
|
| 2 |
+
uvicorn==0.34.2
|
| 3 |
+
httpx==0.28.1
|
| 4 |
+
pydantic==2.11.4
|
| 5 |
+
sqlglot==26.16.4
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,783 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"100256": {
|
| 6 |
+
"content": "<|pad|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"100257": {
|
| 14 |
+
"content": "<|end_of_text|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"100258": {
|
| 22 |
+
"content": "<|fim_prefix|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": false
|
| 28 |
+
},
|
| 29 |
+
"100259": {
|
| 30 |
+
"content": "<|fim_middle|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": false
|
| 36 |
+
},
|
| 37 |
+
"100260": {
|
| 38 |
+
"content": "<|fim_suffix|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": false
|
| 44 |
+
},
|
| 45 |
+
"100261": {
|
| 46 |
+
"content": "<|fim_pad|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": false
|
| 52 |
+
},
|
| 53 |
+
"100262": {
|
| 54 |
+
"content": "<|filename|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": false
|
| 60 |
+
},
|
| 61 |
+
"100263": {
|
| 62 |
+
"content": "<|reponame|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": false
|
| 68 |
+
},
|
| 69 |
+
"100264": {
|
| 70 |
+
"content": "<|start_of_role|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"100265": {
|
| 78 |
+
"content": "<|end_of_role|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"100266": {
|
| 86 |
+
"content": "<|unused_1|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"100267": {
|
| 94 |
+
"content": "<|start_of_plugin|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"100268": {
|
| 102 |
+
"content": "<|end_of_plugin|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"100269": {
|
| 110 |
+
"content": "<|unk|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"100270": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"100271": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"100272": {
|
| 134 |
+
"content": "<tool_response>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"100273": {
|
| 142 |
+
"content": "</tool_response>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"100274": {
|
| 150 |
+
"content": "<think>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"100275": {
|
| 158 |
+
"content": "</think>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"100276": {
|
| 166 |
+
"content": "<think_on>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": true
|
| 172 |
+
},
|
| 173 |
+
"100277": {
|
| 174 |
+
"content": "<think_off>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": true
|
| 180 |
+
},
|
| 181 |
+
"100278": {
|
| 182 |
+
"content": "<schema>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": true
|
| 188 |
+
},
|
| 189 |
+
"100279": {
|
| 190 |
+
"content": "</schema>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": true
|
| 196 |
+
},
|
| 197 |
+
"100280": {
|
| 198 |
+
"content": "<tools>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": true
|
| 204 |
+
},
|
| 205 |
+
"100281": {
|
| 206 |
+
"content": "</tools>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": true
|
| 212 |
+
},
|
| 213 |
+
"100282": {
|
| 214 |
+
"content": "<documents>",
|
| 215 |
+
"lstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"rstrip": false,
|
| 218 |
+
"single_word": false,
|
| 219 |
+
"special": true
|
| 220 |
+
},
|
| 221 |
+
"100283": {
|
| 222 |
+
"content": "</documents>",
|
| 223 |
+
"lstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"rstrip": false,
|
| 226 |
+
"single_word": false,
|
| 227 |
+
"special": true
|
| 228 |
+
},
|
| 229 |
+
"100284": {
|
| 230 |
+
"content": "<|unused_15|>",
|
| 231 |
+
"lstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"rstrip": false,
|
| 234 |
+
"single_word": false,
|
| 235 |
+
"special": true
|
| 236 |
+
},
|
| 237 |
+
"100285": {
|
| 238 |
+
"content": "<|unused_16|>",
|
| 239 |
+
"lstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"rstrip": false,
|
| 242 |
+
"single_word": false,
|
| 243 |
+
"special": true
|
| 244 |
+
},
|
| 245 |
+
"100286": {
|
| 246 |
+
"content": "<|unused_17|>",
|
| 247 |
+
"lstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"rstrip": false,
|
| 250 |
+
"single_word": false,
|
| 251 |
+
"special": true
|
| 252 |
+
},
|
| 253 |
+
"100287": {
|
| 254 |
+
"content": "<|unused_18|>",
|
| 255 |
+
"lstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"rstrip": false,
|
| 258 |
+
"single_word": false,
|
| 259 |
+
"special": true
|
| 260 |
+
},
|
| 261 |
+
"100288": {
|
| 262 |
+
"content": "<|unused_19|>",
|
| 263 |
+
"lstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"rstrip": false,
|
| 266 |
+
"single_word": false,
|
| 267 |
+
"special": true
|
| 268 |
+
},
|
| 269 |
+
"100289": {
|
| 270 |
+
"content": "<|unused_20|>",
|
| 271 |
+
"lstrip": false,
|
| 272 |
+
"normalized": false,
|
| 273 |
+
"rstrip": false,
|
| 274 |
+
"single_word": false,
|
| 275 |
+
"special": true
|
| 276 |
+
},
|
| 277 |
+
"100290": {
|
| 278 |
+
"content": "<|unused_21|>",
|
| 279 |
+
"lstrip": false,
|
| 280 |
+
"normalized": false,
|
| 281 |
+
"rstrip": false,
|
| 282 |
+
"single_word": false,
|
| 283 |
+
"special": true
|
| 284 |
+
},
|
| 285 |
+
"100291": {
|
| 286 |
+
"content": "<|unused_22|>",
|
| 287 |
+
"lstrip": false,
|
| 288 |
+
"normalized": false,
|
| 289 |
+
"rstrip": false,
|
| 290 |
+
"single_word": false,
|
| 291 |
+
"special": true
|
| 292 |
+
},
|
| 293 |
+
"100292": {
|
| 294 |
+
"content": "<|unused_23|>",
|
| 295 |
+
"lstrip": false,
|
| 296 |
+
"normalized": false,
|
| 297 |
+
"rstrip": false,
|
| 298 |
+
"single_word": false,
|
| 299 |
+
"special": true
|
| 300 |
+
},
|
| 301 |
+
"100293": {
|
| 302 |
+
"content": "<|unused_24|>",
|
| 303 |
+
"lstrip": false,
|
| 304 |
+
"normalized": false,
|
| 305 |
+
"rstrip": false,
|
| 306 |
+
"single_word": false,
|
| 307 |
+
"special": true
|
| 308 |
+
},
|
| 309 |
+
"100294": {
|
| 310 |
+
"content": "<|unused_25|>",
|
| 311 |
+
"lstrip": false,
|
| 312 |
+
"normalized": false,
|
| 313 |
+
"rstrip": false,
|
| 314 |
+
"single_word": false,
|
| 315 |
+
"special": true
|
| 316 |
+
},
|
| 317 |
+
"100295": {
|
| 318 |
+
"content": "<|unused_26|>",
|
| 319 |
+
"lstrip": false,
|
| 320 |
+
"normalized": false,
|
| 321 |
+
"rstrip": false,
|
| 322 |
+
"single_word": false,
|
| 323 |
+
"special": true
|
| 324 |
+
},
|
| 325 |
+
"100296": {
|
| 326 |
+
"content": "<|unused_27|>",
|
| 327 |
+
"lstrip": false,
|
| 328 |
+
"normalized": false,
|
| 329 |
+
"rstrip": false,
|
| 330 |
+
"single_word": false,
|
| 331 |
+
"special": true
|
| 332 |
+
},
|
| 333 |
+
"100297": {
|
| 334 |
+
"content": "<|unused_28|>",
|
| 335 |
+
"lstrip": false,
|
| 336 |
+
"normalized": false,
|
| 337 |
+
"rstrip": false,
|
| 338 |
+
"single_word": false,
|
| 339 |
+
"special": true
|
| 340 |
+
},
|
| 341 |
+
"100298": {
|
| 342 |
+
"content": "<|unused_29|>",
|
| 343 |
+
"lstrip": false,
|
| 344 |
+
"normalized": false,
|
| 345 |
+
"rstrip": false,
|
| 346 |
+
"single_word": false,
|
| 347 |
+
"special": true
|
| 348 |
+
},
|
| 349 |
+
"100299": {
|
| 350 |
+
"content": "<|unused_30|>",
|
| 351 |
+
"lstrip": false,
|
| 352 |
+
"normalized": false,
|
| 353 |
+
"rstrip": false,
|
| 354 |
+
"single_word": false,
|
| 355 |
+
"special": true
|
| 356 |
+
},
|
| 357 |
+
"100300": {
|
| 358 |
+
"content": "<|unused_31|>",
|
| 359 |
+
"lstrip": false,
|
| 360 |
+
"normalized": false,
|
| 361 |
+
"rstrip": false,
|
| 362 |
+
"single_word": false,
|
| 363 |
+
"special": true
|
| 364 |
+
},
|
| 365 |
+
"100301": {
|
| 366 |
+
"content": "<|unused_32|>",
|
| 367 |
+
"lstrip": false,
|
| 368 |
+
"normalized": false,
|
| 369 |
+
"rstrip": false,
|
| 370 |
+
"single_word": false,
|
| 371 |
+
"special": true
|
| 372 |
+
},
|
| 373 |
+
"100302": {
|
| 374 |
+
"content": "<|unused_33|>",
|
| 375 |
+
"lstrip": false,
|
| 376 |
+
"normalized": false,
|
| 377 |
+
"rstrip": false,
|
| 378 |
+
"single_word": false,
|
| 379 |
+
"special": true
|
| 380 |
+
},
|
| 381 |
+
"100303": {
|
| 382 |
+
"content": "<|unused_34|>",
|
| 383 |
+
"lstrip": false,
|
| 384 |
+
"normalized": false,
|
| 385 |
+
"rstrip": false,
|
| 386 |
+
"single_word": false,
|
| 387 |
+
"special": true
|
| 388 |
+
},
|
| 389 |
+
"100304": {
|
| 390 |
+
"content": "<|unused_35|>",
|
| 391 |
+
"lstrip": false,
|
| 392 |
+
"normalized": false,
|
| 393 |
+
"rstrip": false,
|
| 394 |
+
"single_word": false,
|
| 395 |
+
"special": true
|
| 396 |
+
},
|
| 397 |
+
"100305": {
|
| 398 |
+
"content": "<|unused_36|>",
|
| 399 |
+
"lstrip": false,
|
| 400 |
+
"normalized": false,
|
| 401 |
+
"rstrip": false,
|
| 402 |
+
"single_word": false,
|
| 403 |
+
"special": true
|
| 404 |
+
},
|
| 405 |
+
"100306": {
|
| 406 |
+
"content": "<|unused_37|>",
|
| 407 |
+
"lstrip": false,
|
| 408 |
+
"normalized": false,
|
| 409 |
+
"rstrip": false,
|
| 410 |
+
"single_word": false,
|
| 411 |
+
"special": true
|
| 412 |
+
},
|
| 413 |
+
"100307": {
|
| 414 |
+
"content": "<|unused_38|>",
|
| 415 |
+
"lstrip": false,
|
| 416 |
+
"normalized": false,
|
| 417 |
+
"rstrip": false,
|
| 418 |
+
"single_word": false,
|
| 419 |
+
"special": true
|
| 420 |
+
},
|
| 421 |
+
"100308": {
|
| 422 |
+
"content": "<|unused_39|>",
|
| 423 |
+
"lstrip": false,
|
| 424 |
+
"normalized": false,
|
| 425 |
+
"rstrip": false,
|
| 426 |
+
"single_word": false,
|
| 427 |
+
"special": true
|
| 428 |
+
},
|
| 429 |
+
"100309": {
|
| 430 |
+
"content": "<|unused_40|>",
|
| 431 |
+
"lstrip": false,
|
| 432 |
+
"normalized": false,
|
| 433 |
+
"rstrip": false,
|
| 434 |
+
"single_word": false,
|
| 435 |
+
"special": true
|
| 436 |
+
},
|
| 437 |
+
"100310": {
|
| 438 |
+
"content": "<|unused_41|>",
|
| 439 |
+
"lstrip": false,
|
| 440 |
+
"normalized": false,
|
| 441 |
+
"rstrip": false,
|
| 442 |
+
"single_word": false,
|
| 443 |
+
"special": true
|
| 444 |
+
},
|
| 445 |
+
"100311": {
|
| 446 |
+
"content": "<|unused_42|>",
|
| 447 |
+
"lstrip": false,
|
| 448 |
+
"normalized": false,
|
| 449 |
+
"rstrip": false,
|
| 450 |
+
"single_word": false,
|
| 451 |
+
"special": true
|
| 452 |
+
},
|
| 453 |
+
"100312": {
|
| 454 |
+
"content": "<|unused_43|>",
|
| 455 |
+
"lstrip": false,
|
| 456 |
+
"normalized": false,
|
| 457 |
+
"rstrip": false,
|
| 458 |
+
"single_word": false,
|
| 459 |
+
"special": true
|
| 460 |
+
},
|
| 461 |
+
"100313": {
|
| 462 |
+
"content": "<|unused_44|>",
|
| 463 |
+
"lstrip": false,
|
| 464 |
+
"normalized": false,
|
| 465 |
+
"rstrip": false,
|
| 466 |
+
"single_word": false,
|
| 467 |
+
"special": true
|
| 468 |
+
},
|
| 469 |
+
"100314": {
|
| 470 |
+
"content": "<|unused_45|>",
|
| 471 |
+
"lstrip": false,
|
| 472 |
+
"normalized": false,
|
| 473 |
+
"rstrip": false,
|
| 474 |
+
"single_word": false,
|
| 475 |
+
"special": true
|
| 476 |
+
},
|
| 477 |
+
"100315": {
|
| 478 |
+
"content": "<|unused_46|>",
|
| 479 |
+
"lstrip": false,
|
| 480 |
+
"normalized": false,
|
| 481 |
+
"rstrip": false,
|
| 482 |
+
"single_word": false,
|
| 483 |
+
"special": true
|
| 484 |
+
},
|
| 485 |
+
"100316": {
|
| 486 |
+
"content": "<|unused_47|>",
|
| 487 |
+
"lstrip": false,
|
| 488 |
+
"normalized": false,
|
| 489 |
+
"rstrip": false,
|
| 490 |
+
"single_word": false,
|
| 491 |
+
"special": true
|
| 492 |
+
},
|
| 493 |
+
"100317": {
|
| 494 |
+
"content": "<|unused_48|>",
|
| 495 |
+
"lstrip": false,
|
| 496 |
+
"normalized": false,
|
| 497 |
+
"rstrip": false,
|
| 498 |
+
"single_word": false,
|
| 499 |
+
"special": true
|
| 500 |
+
},
|
| 501 |
+
"100318": {
|
| 502 |
+
"content": "<|unused_49|>",
|
| 503 |
+
"lstrip": false,
|
| 504 |
+
"normalized": false,
|
| 505 |
+
"rstrip": false,
|
| 506 |
+
"single_word": false,
|
| 507 |
+
"special": true
|
| 508 |
+
},
|
| 509 |
+
"100319": {
|
| 510 |
+
"content": "<|unused_50|>",
|
| 511 |
+
"lstrip": false,
|
| 512 |
+
"normalized": false,
|
| 513 |
+
"rstrip": false,
|
| 514 |
+
"single_word": false,
|
| 515 |
+
"special": true
|
| 516 |
+
},
|
| 517 |
+
"100320": {
|
| 518 |
+
"content": "<|unused_51|>",
|
| 519 |
+
"lstrip": false,
|
| 520 |
+
"normalized": false,
|
| 521 |
+
"rstrip": false,
|
| 522 |
+
"single_word": false,
|
| 523 |
+
"special": true
|
| 524 |
+
},
|
| 525 |
+
"100321": {
|
| 526 |
+
"content": "<|unused_52|>",
|
| 527 |
+
"lstrip": false,
|
| 528 |
+
"normalized": false,
|
| 529 |
+
"rstrip": false,
|
| 530 |
+
"single_word": false,
|
| 531 |
+
"special": true
|
| 532 |
+
},
|
| 533 |
+
"100322": {
|
| 534 |
+
"content": "<|unused_53|>",
|
| 535 |
+
"lstrip": false,
|
| 536 |
+
"normalized": false,
|
| 537 |
+
"rstrip": false,
|
| 538 |
+
"single_word": false,
|
| 539 |
+
"special": true
|
| 540 |
+
},
|
| 541 |
+
"100323": {
|
| 542 |
+
"content": "<|unused_54|>",
|
| 543 |
+
"lstrip": false,
|
| 544 |
+
"normalized": false,
|
| 545 |
+
"rstrip": false,
|
| 546 |
+
"single_word": false,
|
| 547 |
+
"special": true
|
| 548 |
+
},
|
| 549 |
+
"100324": {
|
| 550 |
+
"content": "<|unused_55|>",
|
| 551 |
+
"lstrip": false,
|
| 552 |
+
"normalized": false,
|
| 553 |
+
"rstrip": false,
|
| 554 |
+
"single_word": false,
|
| 555 |
+
"special": true
|
| 556 |
+
},
|
| 557 |
+
"100325": {
|
| 558 |
+
"content": "<|unused_56|>",
|
| 559 |
+
"lstrip": false,
|
| 560 |
+
"normalized": false,
|
| 561 |
+
"rstrip": false,
|
| 562 |
+
"single_word": false,
|
| 563 |
+
"special": true
|
| 564 |
+
},
|
| 565 |
+
"100326": {
|
| 566 |
+
"content": "<|unused_57|>",
|
| 567 |
+
"lstrip": false,
|
| 568 |
+
"normalized": false,
|
| 569 |
+
"rstrip": false,
|
| 570 |
+
"single_word": false,
|
| 571 |
+
"special": true
|
| 572 |
+
},
|
| 573 |
+
"100327": {
|
| 574 |
+
"content": "<|unused_58|>",
|
| 575 |
+
"lstrip": false,
|
| 576 |
+
"normalized": false,
|
| 577 |
+
"rstrip": false,
|
| 578 |
+
"single_word": false,
|
| 579 |
+
"special": true
|
| 580 |
+
},
|
| 581 |
+
"100328": {
|
| 582 |
+
"content": "<|unused_59|>",
|
| 583 |
+
"lstrip": false,
|
| 584 |
+
"normalized": false,
|
| 585 |
+
"rstrip": false,
|
| 586 |
+
"single_word": false,
|
| 587 |
+
"special": true
|
| 588 |
+
},
|
| 589 |
+
"100329": {
|
| 590 |
+
"content": "<|unused_60|>",
|
| 591 |
+
"lstrip": false,
|
| 592 |
+
"normalized": false,
|
| 593 |
+
"rstrip": false,
|
| 594 |
+
"single_word": false,
|
| 595 |
+
"special": true
|
| 596 |
+
},
|
| 597 |
+
"100330": {
|
| 598 |
+
"content": "<|unused_61|>",
|
| 599 |
+
"lstrip": false,
|
| 600 |
+
"normalized": false,
|
| 601 |
+
"rstrip": false,
|
| 602 |
+
"single_word": false,
|
| 603 |
+
"special": true
|
| 604 |
+
},
|
| 605 |
+
"100331": {
|
| 606 |
+
"content": "<|unused_62|>",
|
| 607 |
+
"lstrip": false,
|
| 608 |
+
"normalized": false,
|
| 609 |
+
"rstrip": false,
|
| 610 |
+
"single_word": false,
|
| 611 |
+
"special": true
|
| 612 |
+
},
|
| 613 |
+
"100332": {
|
| 614 |
+
"content": "<|unused_63|>",
|
| 615 |
+
"lstrip": false,
|
| 616 |
+
"normalized": false,
|
| 617 |
+
"rstrip": false,
|
| 618 |
+
"single_word": false,
|
| 619 |
+
"special": true
|
| 620 |
+
},
|
| 621 |
+
"100333": {
|
| 622 |
+
"content": "<|unused_64|>",
|
| 623 |
+
"lstrip": false,
|
| 624 |
+
"normalized": false,
|
| 625 |
+
"rstrip": false,
|
| 626 |
+
"single_word": false,
|
| 627 |
+
"special": true
|
| 628 |
+
},
|
| 629 |
+
"100334": {
|
| 630 |
+
"content": "<|unused_65|>",
|
| 631 |
+
"lstrip": false,
|
| 632 |
+
"normalized": false,
|
| 633 |
+
"rstrip": false,
|
| 634 |
+
"single_word": false,
|
| 635 |
+
"special": true
|
| 636 |
+
},
|
| 637 |
+
"100335": {
|
| 638 |
+
"content": "<|unused_66|>",
|
| 639 |
+
"lstrip": false,
|
| 640 |
+
"normalized": false,
|
| 641 |
+
"rstrip": false,
|
| 642 |
+
"single_word": false,
|
| 643 |
+
"special": true
|
| 644 |
+
},
|
| 645 |
+
"100336": {
|
| 646 |
+
"content": "<|unused_67|>",
|
| 647 |
+
"lstrip": false,
|
| 648 |
+
"normalized": false,
|
| 649 |
+
"rstrip": false,
|
| 650 |
+
"single_word": false,
|
| 651 |
+
"special": true
|
| 652 |
+
},
|
| 653 |
+
"100337": {
|
| 654 |
+
"content": "<|unused_68|>",
|
| 655 |
+
"lstrip": false,
|
| 656 |
+
"normalized": false,
|
| 657 |
+
"rstrip": false,
|
| 658 |
+
"single_word": false,
|
| 659 |
+
"special": true
|
| 660 |
+
},
|
| 661 |
+
"100338": {
|
| 662 |
+
"content": "<|unused_69|>",
|
| 663 |
+
"lstrip": false,
|
| 664 |
+
"normalized": false,
|
| 665 |
+
"rstrip": false,
|
| 666 |
+
"single_word": false,
|
| 667 |
+
"special": true
|
| 668 |
+
},
|
| 669 |
+
"100339": {
|
| 670 |
+
"content": "<|unused_70|>",
|
| 671 |
+
"lstrip": false,
|
| 672 |
+
"normalized": false,
|
| 673 |
+
"rstrip": false,
|
| 674 |
+
"single_word": false,
|
| 675 |
+
"special": true
|
| 676 |
+
},
|
| 677 |
+
"100340": {
|
| 678 |
+
"content": "<|unused_71|>",
|
| 679 |
+
"lstrip": false,
|
| 680 |
+
"normalized": false,
|
| 681 |
+
"rstrip": false,
|
| 682 |
+
"single_word": false,
|
| 683 |
+
"special": true
|
| 684 |
+
},
|
| 685 |
+
"100341": {
|
| 686 |
+
"content": "<|unused_72|>",
|
| 687 |
+
"lstrip": false,
|
| 688 |
+
"normalized": false,
|
| 689 |
+
"rstrip": false,
|
| 690 |
+
"single_word": false,
|
| 691 |
+
"special": true
|
| 692 |
+
},
|
| 693 |
+
"100342": {
|
| 694 |
+
"content": "<|unused_73|>",
|
| 695 |
+
"lstrip": false,
|
| 696 |
+
"normalized": false,
|
| 697 |
+
"rstrip": false,
|
| 698 |
+
"single_word": false,
|
| 699 |
+
"special": true
|
| 700 |
+
},
|
| 701 |
+
"100343": {
|
| 702 |
+
"content": "<|unused_74|>",
|
| 703 |
+
"lstrip": false,
|
| 704 |
+
"normalized": false,
|
| 705 |
+
"rstrip": false,
|
| 706 |
+
"single_word": false,
|
| 707 |
+
"special": true
|
| 708 |
+
},
|
| 709 |
+
"100344": {
|
| 710 |
+
"content": "<|unused_75|>",
|
| 711 |
+
"lstrip": false,
|
| 712 |
+
"normalized": false,
|
| 713 |
+
"rstrip": false,
|
| 714 |
+
"single_word": false,
|
| 715 |
+
"special": true
|
| 716 |
+
},
|
| 717 |
+
"100345": {
|
| 718 |
+
"content": "<|unused_76|>",
|
| 719 |
+
"lstrip": false,
|
| 720 |
+
"normalized": false,
|
| 721 |
+
"rstrip": false,
|
| 722 |
+
"single_word": false,
|
| 723 |
+
"special": true
|
| 724 |
+
},
|
| 725 |
+
"100346": {
|
| 726 |
+
"content": "<|unused_77|>",
|
| 727 |
+
"lstrip": false,
|
| 728 |
+
"normalized": false,
|
| 729 |
+
"rstrip": false,
|
| 730 |
+
"single_word": false,
|
| 731 |
+
"special": true
|
| 732 |
+
},
|
| 733 |
+
"100347": {
|
| 734 |
+
"content": "<|unused_78|>",
|
| 735 |
+
"lstrip": false,
|
| 736 |
+
"normalized": false,
|
| 737 |
+
"rstrip": false,
|
| 738 |
+
"single_word": false,
|
| 739 |
+
"special": true
|
| 740 |
+
},
|
| 741 |
+
"100348": {
|
| 742 |
+
"content": "<|unused_79|>",
|
| 743 |
+
"lstrip": false,
|
| 744 |
+
"normalized": false,
|
| 745 |
+
"rstrip": false,
|
| 746 |
+
"single_word": false,
|
| 747 |
+
"special": true
|
| 748 |
+
},
|
| 749 |
+
"100349": {
|
| 750 |
+
"content": "<|unused_80|>",
|
| 751 |
+
"lstrip": false,
|
| 752 |
+
"normalized": false,
|
| 753 |
+
"rstrip": false,
|
| 754 |
+
"single_word": false,
|
| 755 |
+
"special": true
|
| 756 |
+
},
|
| 757 |
+
"100350": {
|
| 758 |
+
"content": "<|unused_81|>",
|
| 759 |
+
"lstrip": false,
|
| 760 |
+
"normalized": false,
|
| 761 |
+
"rstrip": false,
|
| 762 |
+
"single_word": false,
|
| 763 |
+
"special": true
|
| 764 |
+
},
|
| 765 |
+
"100351": {
|
| 766 |
+
"content": "<|unused_82|>",
|
| 767 |
+
"lstrip": false,
|
| 768 |
+
"normalized": false,
|
| 769 |
+
"rstrip": false,
|
| 770 |
+
"single_word": false,
|
| 771 |
+
"special": true
|
| 772 |
+
}
|
| 773 |
+
},
|
| 774 |
+
"bos_token": "<|end_of_text|>",
|
| 775 |
+
"clean_up_tokenization_spaces": false,
|
| 776 |
+
"eos_token": "<|end_of_text|>",
|
| 777 |
+
"extra_special_tokens": {},
|
| 778 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 779 |
+
"pad_token": "<|pad|>",
|
| 780 |
+
"padding_side": "left",
|
| 781 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 782 |
+
"unk_token": "<|unk|>"
|
| 783 |
+
}
|