diff --git a/.gitattributes b/.gitattributes
index a6344aac8c09253b3b630fb776ae94478aa0275b..7291501a71ea99cbde93a5fe5f8b66dec0ca0e33 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -33,3 +33,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
+models/0p8b_s1_1600h_gs6736/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/0p8b_s3_1600h_gs6760/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/27b_s1_1600h_gs6995/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/27b_s3_1600h_gs7020/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/2b_s1_1600h_gs6736/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/2b_s3_1600h_gs6760/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/9b_s1_1600h_gs6736/tokenizer.json filter=lfs diff=lfs merge=lfs -text
+models/9b_s3_1600h_gs6760/tokenizer.json filter=lfs diff=lfs merge=lfs -text
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..c0490581d761b3fef4c9f3c9e568aa8333b12c22
--- /dev/null
+++ b/README.md
@@ -0,0 +1,251 @@
+# GameScaling 推理模板
+
+用 GameScaling checkpoint 玩游戏、或把它当 baseline 所需的全部**推理侧**代码:系统提示词
+规范、多轮消息构造、vLLM 请求参数、动作反解,以及论文三个 benchmark(ViZDoom、
+OmniGameArena、GameWorld)的接入。不含任何训练代码。
+
+```
+gamescaling/ 核心包,只依赖 requests + Pillow
+ prompt.py 系统提示词。默认是 TRAINING_SYSTEM_PROMPT(不写游戏名)
+ policy.py 多轮客户端:历史窗口、图像编码、请求体
+ action.py 动作格式与反解(200 ms chunk -> 6 x 33 ms 键鼠)
+ keymaps.py 训练词表 <-> 浏览器/Playwright 键名
+models/ 8 个 Qwen3.5 checkpoint,各自带 chat_template.jinja
+scripts/serve_vllm.sh 起 OpenAI 兼容服务
+tests/test_core.py 离线单测(不需要 GPU)
+```
+
+默认推理是一帧游戏画面:`TRAINING_SYSTEM_PROMPT` 里没有游戏名,user 文本固定为
+`current game screen`。checkpoint 与起服务目录:
+
+| 目录 | 规模 |
+|---|---|
+| `models/0p8b_s1_1600h_gs6736` | 0.8B,stage 1 |
+| `models/0p8b_s3_1600h_gs6760` | 0.8B,stage 3 |
+| `models/2b_s1_1600h_gs6736` | 2B,stage 1 |
+| `models/2b_s3_1600h_gs6760` | 2B,stage 3 |
+| `models/9b_s1_1600h_gs6736` | 9B,stage 1 |
+| `models/9b_s3_1600h_gs6760` | 9B,stage 3 |
+| `models/27b_s1_1600h_gs6995` | 27B,stage 1 |
+| `models/27b_s3_1600h_gs7020` | 27B,stage 3 |
+
+`27b_s3` 的权重按约 30GB 切成多片,并带 `model.safetensors.index.json`。请用该 checkpoint
+目录里的 `chat_template.jinja`,不要换成原版 Qwen 模板。
+
+## 1. 部署模型
+
+```bash
+pip install "vllm>=0.17" # checkpoint 是 Qwen3.5 架构;测试版本 0.17.0
+bash scripts/serve_vllm.sh /path/to/checkpoint 8000 # 单卡即可跑 0.8B-9B
+```
+
+脚本以 `--served-model-name gamescaling` 起服务,本仓库所有客户端默认连
+`http://127.0.0.1:8000/v1`、模型名 `gamescaling`。请使用 checkpoint 目录里自带的
+`chat_template.jinja`(vLLM 默认就会用),**不要**换成原版 Qwen 模板:自带模板会把没有
+思维链的历史轮渲染成 `\n\n\n\n<|action_start|>...`,与训练样本逐 token 一致。
+
+## 2. 最小用法
+
+```python
+from PIL import Image
+from gamescaling import TRAINING_SYSTEM_PROMPT, GameScalingPolicy, PolicyConfig
+
+# 默认:系统提示词不写游戏名,输入就是一帧游戏画面。画面按原尺寸送入,不预填 。
+policy = GameScalingPolicy(TRAINING_SYSTEM_PROMPT, PolicyConfig())
+policy.reset() # 每局开始调用
+decision = policy.act(Image.open("frame.png")) # 一次调用 = 一个 200 ms 决策
+a = decision.action
+a.mouse # (X, Y, Z):本 chunk 鼠标位移(千分比屏幕)+ 滚轮
+a.steps # 6 组,每组是这 33 ms 内按住的键
+a.parsed # False = 无法解析,按 no-op 执行
+```
+
+之后把 `a` 交给你的执行器:6 个 33 ms 子步,每步按住该组的键(相邻两组都有的键保持按住,
+不重新按下);鼠标位移 `X/1000*屏宽`、`Y/1000*屏高` 在 200 ms 内分摊或一次性下发均可,
+三个集成各自的做法见下文。
+
+要写上游戏名和规则时,用 `build_system_prompt(游戏名, rules=..., key_bindings=...)`,客户端仍用
+`PolicyConfig()`。论文三张表用 `PolicyConfig.preset("omnigamearena" | "vizdoom" | "gameworld")`。
+`preset("omnigamearena")` 会把画面缩到 854×480,并预填 ``,此时系统提示词要
+`reasoning=True`。
+
+## 3. 系统提示词规范
+
+所有 benchmark 用同一骨架,顺序固定(`gamescaling/prompt.py`):
+
+1. **开场白**:游戏专家 + 游戏名 + "规划接下来 200ms、6 步、每步 33ms" 的契约;
+2. `**Game Rules**`:游戏是什么、怎么计分;
+3. **操作说明**:本游戏用到的键,**必须写成训练词表**(见 §4);
+4. `**Task Instruction**`:仅 GameWorld(一个游戏有多个任务);
+5. `**Output Format**`:模型据此决定输出格式;
+6. `**Explanation**` + `**Key Naming Rules**`。
+
+两种版式只在第 3 节和分隔符上不同:
+
+- `build_system_prompt(...)`:键位列表版(`**Common Keys in **` + `- W -> Move
+ forward`),ViZDoom、OmniGameArena 和**接入新游戏**都用它;鼠标控制视角的游戏加
+ `mouse_aim=True`。
+- `build_gameworld_system_prompt(...)`:自由段落版(`**Role and Controls**`),用于
+ GameWorld 那种自带文字说明的游戏;浏览器键名用 `translate_controls` 转成训练词表
+ (`ArrowLeft` -> `Left`,`a/d` -> `A/D`,`1-9:` -> `one-nine:`)。
+
+`Output Format` 有两种,**必须与客户端是否 prefill `` 保持一致**:
+
+| `reasoning` | 客户端 | 模型输出 |
+|---|---|---|
+| `True` | `think_prefill=True`,assistant 以 `` 开头续写 | 自己决定想不想、想多久,然后闭合 `` 输出动作 |
+| `False` | 不 prefill | 直接输出 `<|action_start|>...<|action_end|>` |
+
+提示词请原样拷贝,不要改写:checkpoint 是按这段 Output Format 的精确文本来决定输出标签的。
+每轮 user 消息的文本固定为 `current game screen`,后接当前帧。
+
+多轮消息(`policy.py`):
+
+```
+system 系统提示词
+user "current game screen" + 第 t-k 帧 ┐ 最近 history_len 轮
+assistant 第 t-k 轮执行的动作(默认不带思维链) ┘
+...
+user "current game screen" + 当前帧
+assistant ""(仅 think_prefill 时,continue_final_message=True)
+```
+
+历史轮只放动作(`history_think=0`,论文口径)。解析失败的轮在历史里存成显式 no-op
+`<|action_start|>0 0 0 ; ; ; ; ; ; <|action_end|>`,而不是模型的原始坏输出。
+
+## 4. 动作格式与反解
+
+```
+<|action_start|>X Y Z ; g1 ; g2 ; g3 ; g4 ; g5 ; g6<|action_end|>
+```
+
+- `X Y`:整个 200 ms 的鼠标位移,千分比屏幕(`X = Σdx / 屏宽 × 1000`),截断到 ±1000;
+ X>0 向右,Y>0 向下。
+- `Z`:滚轮格数,截断到 ±5,Z>0 向上。
+- `g1..g6`:六个 33 ms 子步,每组列出这段时间内**按住**的键,最多 4 个;空组 = 全部松开,
+ 但 `;` 要保留。
+- `<|action_start|>` / `<|action_end|>` 是 special token,请求里必须带
+ `skip_special_tokens: false`(`build_request` 已设置),否则服务端会把标签吃掉
+ (`parse_action` 对裸 `X Y Z ; ...` 也能兜底)。
+- 动作**只从最后一个 `` 之后**读取:会思考的模型常在思维链里复述格式,从全文搜会执行
+ 那段引用。`` 没闭合 = 生成被截断,按 no-op 处理(`Action.truncated=True`)。
+
+训练词表(74 个,大小写敏感,`gamescaling.action.KEY_VOCAB`):
+
+| 类别 | token |
+|---|---|
+| 字母 | `A`..`Z` |
+| 数字行 | `zero` `one` .. `nine` |
+| F1-F12 | `One` `Two` .. `Twelve`(**首字母大写** = F 键) |
+| 鼠标键 | `LB` `RB` `MB` |
+| 方向 | `Up` `Down` `Left` `Right` |
+| 其他 | `Shift` `Ctrl` `Alt` `Tab` `Caps` `Esc` `Space` `Enter` `Back` `Delete` `Insert` `Home` `End` `Pause` `Equal` `Minus` `Period` `Slash` `Quote` |
+
+不在词表里的 token 被丢弃(记在 `Action.dropped`)。`keymaps.TO_PLAYWRIGHT` 给出到浏览器
+键名的映射。
+
+## 5. 三个 benchmark
+
+三者都是**暂停时钟(pdq)**:模型思考时游戏冻结,只在执行 chunk 时前进。论文所有主表都是这个
+口径;不同时钟之间的分数不可比。
+
+### 5.1 ViZDoom(自包含)
+
+```bash
+pip install -r requirements.txt vizdoom==1.2.4
+python -m integrations.vizdoom.run --maps battle1 battle2 defend_the_center defend_the_line \
+ --episodes 10 --out runs/vizdoom
+```
+
+四张图、每图 10 局、每局最多 350 个 chunk(= 2100 tic 的地图超时)。一个 33 ms 子步 = 一个
+tic(35 tic/s),每个子步单独 `make_action(vec, 1)`。鼠标按 Doom 的投影换算成转向角
+(`atan((X/1000) / focal)`,即把屏幕上偏移 X 处的目标转到准星;focal 为实测值),转角在
+6 个 tic 上均分;HUD 开。计分:battle 图数击杀,defend 图击杀减死亡;`overall` 是四图均值的均值。
+场景文件来源见 `integrations/vizdoom/scenarios/PROVENANCE.md`。
+
+### 5.2 OmniGameArena
+
+在 [OmniGameArena](https://github.com/mxlin043/OmniGameArena)(测于 `f3a4057`)里注册
+agent kind `gamescaling`:
+
+```bash
+bash integrations/omnigamearena/install.sh /path/to/OmniGameArena
+export PYTHONPATH=$PWD:$PWD/integrations/omnigamearena:$PYTHONPATH
+cd /path/to/OmniGameArena
+# 按 OmniGameArena README 启动 UE5(默认端口 12345)
+python scripts/run_benchmark.py --config configs/gamescaling/monster_shoot.yaml
+```
+
+补丁只做两件事:在 `factory.py` 注册 `gamescaling`;把 `runner.py` 对 `tkinter`
+的导入改成只在 `--live` 时加载(无显示器的服务器上原版会直接 ImportError)。
+
+七个 solo 游戏配置在 `configs/gamescaling/`:pdq、每局 300 步(`scene_escape`、
+`cue_chase` 为 500)、3 局、温度 1.0、自由思考、历史 5 帧只留动作、画面缩到 854x480。
+论文的计分约定:`solo_craft` 分数为 `min(V/50, 1)`(V 为 UE 返回的原始点数),其余游戏直接用
+benchmark 分数;OVERALL 是七个游戏的均值。
+
+两个实际部署时的注意点:
+
+- **一张 GPU 只跑一个 UE5 实例。** 动作按墙钟 6×33 ms 执行,多个实例抢一张卡的渲染时,按住
+ 前进 0.2 s 几乎不动,分数会大幅下降且不报错。
+- `solo_craft` 的后续 episode 请换一个新的 UE5 进程;复用实例时第 2、3 局会立即结束并复报
+ 第 1 局分数。
+
+### 5.3 GameWorld
+
+在 [GameWorld](https://github.com/gameworld-project/gameworld)(测于 `e236a39`)里注册模型
+id `gamescaling`:
+
+```bash
+bash integrations/gameworld/install.sh /path/to/gameworld
+export PYTHONPATH=$PWD:$PYTHONPATH
+cd /path/to/gameworld
+# 上游仓库只带 2 个游戏;完整游戏库的游戏在该库的 benchmark/ 子目录下
+git clone --depth 1 https://github.com/gameworld-dev/gameworld-games.git /tmp/gameworld-games
+rm -rf games/benchmark && mv /tmp/gameworld-games/benchmark games/benchmark
+pip install -r requirements.txt && python -m playwright install --with-deps chromium
+python main.py --config 01_2048+01_01+gamescaling --headless
+python run_suite.py --suite # 批量:suite 里 model 写 gamescaling
+```
+
+补丁新增一种 `key_timeline` 动作:六个 33 ms 槽位的按住键(跨窗口保持),加一次鼠标移动和
+滚轮。鼠标是千分比屏幕空间里的虚拟光标,从中心出发、每个 chunk 移动 (X, Y) 并截断到屏幕内。
+系统提示词走 `gamescaling_template.j2`(自由段落版),控制说明经 `translate_controls`
+转成训练词表。
+
+口径(`catalog/models/gamescaling.yaml`):历史 5 轮(截图 + 动作)、截图缩放到高 480
+(PNG、Lanczos)、不 prefill ``、`max_tokens=4096`、温度 1.0、停在
+`<|action_end|>`、宽松解析。`wasd_remap`:只在某游戏 WASD 非法而方向键合法时,把模型输出
+的 WASD 映射成方向键(模型主要在 PC 游戏上训练,习惯用 WASD 移动)。环境变量
+`GAMESCALING_ENDPOINT` 可覆盖服务地址,`GAMESCALING_THINK=1` 可打开 think prefill(非论文口径)。
+
+## 6. 接入新游戏
+
+1. 用 `build_system_prompt` 写提示词:游戏名、规则、`key_bindings` 用训练词表;鼠标控视角
+ 时加 `mouse_aim=True`;`reasoning` 与 `think_prefill` 一致。
+2. 每 200 ms(或暂停时钟下每次决策)截一帧,调用 `policy.act(frame)`。
+3. 按 §4 执行 `Action`:6 个 33 ms 子步的按住键 + 鼠标位移 + 滚轮。
+4. 新游戏沿用默认客户端(原尺寸画面、不预填 ``、`TRAINING_SYSTEM_PROMPT` 或
+ 你自己的 `build_system_prompt`)。要对齐论文某一张表时,再改用
+ `PolicyConfig.preset("omnigamearena" | "vizdoom" | "gameworld")`。
+
+## 7. 与论文评测代码的差异
+
+发布代码与论文内部评测代码逐项对拍过:三个 benchmark 的全部系统提示词逐字节相同
+(ViZDoom 4 图、OmniGameArena 12 游戏 44 个 prompt、GameWorld 170 个任务),历史 trace
+中各 4000 条左右的模型回复反解结果完全相同。以下几处有意改动只在边缘情况下有区别:
+
+- OmniGameArena 的动作只从最后一个 `` 之后读取(内部代码搜全文,思维链里复述格式时
+ 会误执行那段引用)。
+- GameWorld 中解析失败的轮在历史里存为显式 no-op(内部代码存原始输出)。
+- GameWorld 槽位时长用 200/6 = 33.33 ms(内部为 33.0 ms)。
+- ViZDoom 历史轮保存动作原文(内部去掉首尾空白),episode 种子用 `crc32`(内部用 Python
+ `hash`,跨进程不稳定)。
+- OmniGameArena 的 `map_wait` 用上游默认 3 s。内部评测等 60 s,但前 3 s 之后世界是冻结的,
+ 所以两者进入第一步时的游戏时间一致。
+
+## 8. 测试
+
+```bash
+python tests/test_core.py # 或 python -m pytest tests/;离线:提示词、请求体、动作反解,不需要 GPU / 服务
+```
diff --git a/gamescaling/__init__.py b/gamescaling/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..ec32035c1a686c0833d5697112c01222fef44bd9
--- /dev/null
+++ b/gamescaling/__init__.py
@@ -0,0 +1,32 @@
+"""Inference-side contract of the GameScaling checkpoints: prompt, client, action decoding."""
+
+from .action import (
+ ACTION_END,
+ ACTION_START,
+ CHUNK_MS,
+ CHUNK_STEPS,
+ KEY_VOCAB,
+ NOOP_ACTION_TEXT,
+ STEP_MS,
+ Action,
+ parse_action,
+ split_reasoning,
+)
+from .policy import Decision, GameScalingPolicy, PolicyConfig, build_request, encode_image, finalize
+from .prompt import (
+ TRAINING_SYSTEM_PROMPT,
+ USER_TURN_TEXT,
+ build_gameworld_system_prompt,
+ build_system_prompt,
+ translate_controls,
+)
+
+__version__ = "0.1.0"
+
+__all__ = [
+ "ACTION_END", "ACTION_START", "CHUNK_MS", "CHUNK_STEPS", "KEY_VOCAB", "NOOP_ACTION_TEXT",
+ "STEP_MS", "Action", "parse_action", "split_reasoning",
+ "Decision", "GameScalingPolicy", "PolicyConfig", "build_request", "encode_image", "finalize",
+ "TRAINING_SYSTEM_PROMPT", "USER_TURN_TEXT", "build_gameworld_system_prompt",
+ "build_system_prompt", "translate_controls",
+]
diff --git a/gamescaling/__pycache__/__init__.cpython-310.pyc b/gamescaling/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c007d41b1258caaa20c63307768949861f0d93ad
Binary files /dev/null and b/gamescaling/__pycache__/__init__.cpython-310.pyc differ
diff --git a/gamescaling/__pycache__/action.cpython-310.pyc b/gamescaling/__pycache__/action.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6705701aa31291058410f77a5f4a73990e1fa822
Binary files /dev/null and b/gamescaling/__pycache__/action.cpython-310.pyc differ
diff --git a/gamescaling/__pycache__/keymaps.cpython-310.pyc b/gamescaling/__pycache__/keymaps.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..38e4b045e7eee30ab454344c707bfe4ab5952e72
Binary files /dev/null and b/gamescaling/__pycache__/keymaps.cpython-310.pyc differ
diff --git a/gamescaling/__pycache__/policy.cpython-310.pyc b/gamescaling/__pycache__/policy.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..ad52f8d6f6f5a40b31f899d62e92ab2d7db10b95
Binary files /dev/null and b/gamescaling/__pycache__/policy.cpython-310.pyc differ
diff --git a/gamescaling/__pycache__/prompt.cpython-310.pyc b/gamescaling/__pycache__/prompt.cpython-310.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..9caa95994bf7da2c106f1541624d41731486a23e
Binary files /dev/null and b/gamescaling/__pycache__/prompt.cpython-310.pyc differ
diff --git a/gamescaling/action.py b/gamescaling/action.py
new file mode 100644
index 0000000000000000000000000000000000000000..ec5bbed142176ebcb3cbd7fd2d115d9edb53cbbc
--- /dev/null
+++ b/gamescaling/action.py
@@ -0,0 +1,218 @@
+"""The GameScaling action format: parse model text into one 200 ms keyboard/mouse chunk.
+
+Every turn the model emits exactly one chunk:
+
+ <|action_start|>X Y Z ; g1 ; g2 ; g3 ; g4 ; g5 ; g6<|action_end|>
+
+- ``X Y`` is the mouse displacement over the whole 200 ms, in per-mille of the
+ screen (``X = sum(dx) / width * 1000``, clamped to +-1000; X>0 right, Y>0 down).
+- ``Z`` is the scroll amount in wheel clicks (clamped to +-5; Z>0 up).
+- ``g1..g6`` are six 33 ms substeps. Each group lists the keys/buttons that are
+ held during that substep (at most 4). A key present in consecutive groups is
+ held continuously; an empty group releases everything.
+
+Reasoning models may prefix the chunk with ``...``. The action is
+always read from the text *after* the last ````: thinking models quote
+the format back at themselves ("the format is <|action_start|>X Y Z ; ..."), and
+reading the whole reply would execute the quote.
+"""
+
+from __future__ import annotations
+
+import re
+from dataclasses import dataclass, field
+
+ACTION_START = "<|action_start|>"
+ACTION_END = "<|action_end|>"
+ACTION_END_TOKEN_ID = 151670
+THINK_OPEN = ""
+THINK_CLOSE = ""
+
+CHUNK_MS = 200.0
+CHUNK_STEPS = 6
+STEP_MS = CHUNK_MS / CHUNK_STEPS
+MAX_KEYS_PER_STEP = 4
+MOUSE_LIMIT = 1000.0
+SCROLL_LIMIT = 5.0
+
+NOOP_ACTION_TEXT = f"{ACTION_START}0 0 0 ; ; ; ; ; ; {ACTION_END}"
+
+# The 74-token vocabulary the model was trained on. Case matters:
+# `one`..`nine` are number-row keys, `One`..`Twelve` are F1..F12.
+LETTER_KEYS = tuple("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
+DIGIT_KEYS = ("zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine")
+FUNCTION_KEYS = ("One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight",
+ "Nine", "Ten", "Eleven", "Twelve")
+MOUSE_BUTTON_KEYS = ("LB", "RB", "MB")
+ARROW_KEYS = ("Up", "Down", "Left", "Right")
+SPECIAL_KEYS = ("Shift", "Ctrl", "Alt", "Tab", "Caps", "Esc", "Space", "Enter", "Back",
+ "Delete", "Insert", "Home", "End", "Pause")
+PUNCTUATION_KEYS = ("Equal", "Minus", "Period", "Slash", "Quote")
+KEY_VOCAB: frozenset[str] = frozenset(
+ LETTER_KEYS + DIGIT_KEYS + FUNCTION_KEYS + MOUSE_BUTTON_KEYS + ARROW_KEYS
+ + SPECIAL_KEYS + PUNCTUATION_KEYS
+)
+
+# `}` instead of `>` is a closing-bracket typo some models make.
+_TAG_RE = re.compile(r"<\|action_start\|[>}](.*?)<\|action_end\|[>}]", re.DOTALL)
+_BARE_RE = re.compile(r"^\s*-?\d")
+# Lenient fallbacks (see `parse_action(lenient=True)`).
+_WRAPPED_INT_RE = re.compile(
+ r"<\|action(?:_start)?\|>\s*(-?\d+)\s+(-?\d+)\s+(-?\d+)(.*?)<\|action(?:_end)?\|>",
+ re.DOTALL,
+)
+_SKELETON_RE = re.compile(r"[^\n;<]*(?:;[^\n;<]*){5,}")
+_BARE_INT_RE = re.compile(r"(-?\d+)\s+(-?\d+)\s+(-?\d+)\s*(;[^\n<]*)", re.DOTALL)
+_INT_RE = re.compile(r"^-?\d+$")
+
+
+def split_reasoning(text: str) -> tuple[str, str, bool]:
+ """``text`` -> (reasoning, text after the reasoning, reasoning was closed).
+
+ An unclosed ```` means generation ended before any action existed
+ (the token budget ran out, or a stop string matched inside the reasoning),
+ so the tail is empty.
+ """
+ text = text or ""
+ if THINK_CLOSE in text:
+ head, _, tail = text.rpartition(THINK_CLOSE)
+ return head.split(THINK_OPEN)[-1].strip(), tail, True
+ if THINK_OPEN in text:
+ return text.split(THINK_OPEN)[-1].strip(), "", False
+ return "", text, True
+
+
+@dataclass
+class Action:
+ """One parsed 200 ms chunk. Unparseable text is a no-op with ``parsed=False``."""
+
+ mouse: tuple[float, float, float] = (0.0, 0.0, 0.0)
+ steps: list[list[str]] = field(default_factory=lambda: [[] for _ in range(CHUNK_STEPS)])
+ parsed: bool = False
+ truncated: bool = False
+ body: str = ""
+ dropped: list[str] = field(default_factory=list)
+
+ @property
+ def history_text(self) -> str:
+ """What this turn looks like as an assistant message in the next prompt.
+
+ Always a well-formed chunk: an unparseable turn is stored as an explicit
+ no-op, because putting the model's own failure into context teaches it
+ to repeat the failure.
+ """
+ if not self.parsed:
+ return NOOP_ACTION_TEXT
+ return f"{ACTION_START}{self.body}{ACTION_END}"
+
+ @property
+ def is_noop(self) -> bool:
+ return not any(self.steps) and self.mouse == (0.0, 0.0, 0.0)
+
+ @property
+ def pressed(self) -> set[str]:
+ return {k for group in self.steps for k in group}
+
+ def to_text(self) -> str:
+ x, y, z = (int(round(v)) for v in self.mouse)
+ groups = " ; ".join(" ".join(g) for g in self.steps)
+ return f"{ACTION_START}{x} {y} {z} ; {groups}{ACTION_END}"
+
+
+def _build(nums: list[float], groups: list[str], body: str) -> Action:
+ x = max(-MOUSE_LIMIT, min(MOUSE_LIMIT, nums[0]))
+ y = max(-MOUSE_LIMIT, min(MOUSE_LIMIT, nums[1]))
+ z = max(-SCROLL_LIMIT, min(SCROLL_LIMIT, nums[2]))
+ steps: list[list[str]] = []
+ dropped: list[str] = []
+ for group in groups[:CHUNK_STEPS]:
+ keys = []
+ for tok in group.split():
+ (keys if tok in KEY_VOCAB else dropped).append(tok)
+ steps.append(keys[:MAX_KEYS_PER_STEP])
+ while len(steps) < CHUNK_STEPS:
+ steps.append([])
+ return Action(mouse=(x, y, z), steps=steps, parsed=True, body=body, dropped=dropped)
+
+
+def _parse_strict(tail: str) -> Action:
+ m = _TAG_RE.search(tail)
+ if m:
+ body = m.group(1)
+ elif _BARE_RE.match(tail) and ";" in tail:
+ # Tags are special tokens; a server that strips them returns a bare body.
+ body = tail.strip()
+ else:
+ return Action()
+ parts = [seg.strip() for seg in body.split(";")]
+ if not parts or not parts[0]:
+ return Action()
+ nums: list[float] = []
+ for tok in parts[0].split()[:3]:
+ try:
+ nums.append(float(tok))
+ except ValueError:
+ return Action()
+ if len(nums) < 3:
+ return Action()
+ return _build(nums, parts[1:], body)
+
+
+def _parse_lenient(text: str) -> Action:
+ """GameWorld's recovery for malformed replies (see `parse_action`)."""
+ text = text.replace(THINK_OPEN, " ").replace(THINK_CLOSE, " ")
+ m = _WRAPPED_INT_RE.search(text)
+ if m:
+ nums = [float(m.group(i)) for i in (1, 2, 3)]
+ key_part = m.group(4).strip()
+ body = text[m.start():m.end()]
+ body = body[body.find(">") + 1:body.rfind("<")]
+ else:
+ skel = None
+ for sm in _SKELETON_RE.finditer(text):
+ skel = sm.group(0)
+ if skel is None:
+ bm = _BARE_INT_RE.search(text)
+ if not bm:
+ return Action()
+ nums = [float(bm.group(i)) for i in (1, 2, 3)]
+ key_part = bm.group(4).strip()
+ body = bm.group(0)
+ else:
+ head = skel.partition(";")[0]
+ head_tokens = head.split()
+ if head_tokens and len(head_tokens) <= 3 and all(_INT_RE.match(t) for t in head_tokens):
+ nums = [float(t) for t in head_tokens] + [0.0, 0.0, 0.0]
+ key_part = skel[len(head):]
+ else:
+ nums = [0.0, 0.0, 0.0]
+ key_part = skel
+ body = skel
+ segments = key_part.split(";") if key_part else []
+ if segments and segments[0].strip() == "":
+ segments = segments[1:]
+ return _build(nums[:3], segments, body.strip())
+
+
+def parse_action(text: str, *, lenient: bool = False) -> Action:
+ """Raw model reply -> :class:`Action`. Never raises; failures are no-ops.
+
+ ``lenient=False`` (OmniGameArena / ViZDoom protocol): only a chunk after the
+ last ```` counts, either tagged or as a bare ``X Y Z ; ...`` body.
+
+ ``lenient=True`` (GameWorld protocol): additionally recover shapes a
+ well-trained checkpoint rarely emits -- an action inside an unclosed
+ ````, a 2-number mouse prefix, a keys-only skeleton -- by locating the
+ ``;``-separated six-group skeleton anywhere in the reply.
+ """
+ _, tail, closed = split_reasoning(text)
+ if closed:
+ action = _parse_strict(tail)
+ if action.parsed or not lenient:
+ return action
+ elif not lenient:
+ return Action(truncated=True)
+ action = _parse_lenient(text or "")
+ if not closed and not action.parsed:
+ action.truncated = True
+ return action
diff --git a/gamescaling/keymaps.py b/gamescaling/keymaps.py
new file mode 100644
index 0000000000000000000000000000000000000000..f4cf97fb8240ee7f7e95184082b25106c4358b8d
--- /dev/null
+++ b/gamescaling/keymaps.py
@@ -0,0 +1,53 @@
+"""Training key vocabulary -> the key names of common input backends.
+
+Mouse buttons (`LB` / `RB` / `MB`) are not keyboard keys; every table below
+leaves them out and backends handle them through `MOUSE_BUTTONS`.
+"""
+
+from __future__ import annotations
+
+from .action import LETTER_KEYS
+
+MOUSE_BUTTONS: dict[str, str] = {"LB": "left", "RB": "right", "MB": "middle"}
+
+# Unreal Engine 5 FKey names (OmniGameArena RemoteInput). Left variants are
+# used for the L/R-merged modifier tokens.
+TO_UE5: dict[str, str] = {
+ **{c: c for c in LETTER_KEYS},
+ "zero": "Zero", "one": "One", "two": "Two", "three": "Three", "four": "Four",
+ "five": "Five", "six": "Six", "seven": "Seven", "eight": "Eight", "nine": "Nine",
+ "One": "F1", "Two": "F2", "Three": "F3", "Four": "F4", "Five": "F5", "Six": "F6",
+ "Seven": "F7", "Eight": "F8", "Nine": "F9", "Ten": "F10", "Eleven": "F11",
+ "Twelve": "F12",
+ "Shift": "LeftShift", "Ctrl": "LeftControl", "Alt": "LeftAlt", "Tab": "Tab",
+ "Caps": "CapsLock", "Esc": "Escape", "Space": "SpaceBar", "Enter": "Enter",
+ "Back": "BackSpace", "Delete": "Delete", "Insert": "Insert", "Home": "Home",
+ "End": "End", "Pause": "Pause",
+ "Up": "Up", "Down": "Down", "Left": "Left", "Right": "Right",
+ "Equal": "Equals", "Minus": "Hyphen", "Period": "Period", "Slash": "Slash",
+ "Quote": "Apostrophe",
+}
+
+# Playwright `page.keyboard` names (GameWorld). Letters are lower case because
+# GameWorld's legal-key lists are written that way.
+TO_PLAYWRIGHT: dict[str, str] = {
+ **{c: c.lower() for c in LETTER_KEYS},
+ "zero": "0", "one": "1", "two": "2", "three": "3", "four": "4",
+ "five": "5", "six": "6", "seven": "7", "eight": "8", "nine": "9",
+ "One": "F1", "Two": "F2", "Three": "F3", "Four": "F4", "Five": "F5", "Six": "F6",
+ "Seven": "F7", "Eight": "F8", "Nine": "F9", "Ten": "F10", "Eleven": "F11",
+ "Twelve": "F12",
+ "Shift": "Shift", "Ctrl": "Control", "Alt": "Alt", "Tab": "Tab", "Caps": "CapsLock",
+ "Esc": "Escape", "Space": "Space", "Enter": "Enter", "Back": "Backspace",
+ "Delete": "Delete", "Insert": "Insert", "Home": "Home", "End": "End", "Pause": "Pause",
+ "Up": "ArrowUp", "Down": "ArrowDown", "Left": "ArrowLeft", "Right": "ArrowRight",
+ "Equal": "Equal", "Minus": "Minus", "Period": "Period", "Slash": "Slash",
+ "Quote": "Quote",
+}
+
+# Playwright name -> training token, for rewriting a game's documented controls
+# into the vocabulary the model emits.
+PLAYWRIGHT_TO_TOKEN: dict[str, str] = {
+ "ArrowLeft": "Left", "ArrowRight": "Right", "ArrowUp": "Up", "ArrowDown": "Down",
+ "Escape": "Esc", "CapsLock": "Caps", "Control": "Ctrl", "Backspace": "Back",
+}
diff --git a/gamescaling/policy.py b/gamescaling/policy.py
new file mode 100644
index 0000000000000000000000000000000000000000..51c3ef73c8da10be7101aee9bf525cc919750e7d
--- /dev/null
+++ b/gamescaling/policy.py
@@ -0,0 +1,254 @@
+"""Multi-turn policy client for a GameScaling checkpoint served by vLLM.
+
+One call to :meth:`GameScalingPolicy.act` is one 200 ms decision:
+
+ system the game's system prompt (see `gamescaling.prompt`)
+ user, assistant one pair per past decision: "current game screen" + frame,
+ ... then the action the model took (its reasoning is dropped
+ unless `history_think` asks to keep it)
+ user "current game screen" + the current frame
+ assistant optionally prefilled with ""; the model continues
+
+The checkpoint's own chat template renders a past assistant turn without
+reasoning as `\\n\\n\\n\\n<|action_start|>...`, exactly as in
+training, so the client only ever sends the action string.
+"""
+
+from __future__ import annotations
+
+import base64
+import io
+import logging
+import re
+import time
+from collections import deque
+from dataclasses import dataclass, field, replace
+from typing import Any, NamedTuple
+
+import requests
+from PIL import Image
+
+from .action import (
+ ACTION_END,
+ ACTION_END_TOKEN_ID,
+ ACTION_START,
+ THINK_OPEN,
+ Action,
+ parse_action,
+ split_reasoning,
+)
+from .prompt import USER_TURN_TEXT
+
+logger = logging.getLogger(__name__)
+
+_RESAMPLE = {"bilinear": Image.BILINEAR, "lanczos": Image.LANCZOS, "bicubic": Image.BICUBIC}
+
+
+@dataclass
+class PolicyConfig:
+ base_url: str = "http://127.0.0.1:8000/v1"
+ model: str = "gamescaling"
+ api_key: str = "EMPTY"
+ # Past decisions kept in context (one frame + one action each).
+ history_len: int = 5
+ # How many of the most recent past turns keep their text; -1 = all.
+ history_think: int = 0
+ # Frame sent to the model. None keeps the given game screen as-is.
+ # An exact (w, h), or image_height, is only for a benchmark preset.
+ image_size: tuple[int, int] | None = None
+ image_height: int | None = None
+ image_format: str = "jpeg" # jpeg | png
+ jpeg_quality: int = 90
+ resample: str = "bilinear"
+ # Prefill "" so the model reasons freely and closes it itself.
+ # Off by default: the generic prompt asks for an action string. Turn it on
+ # only together with a system prompt built with reasoning=True.
+ think_prefill: bool = False
+ temperature: float = 1.0
+ max_tokens: int = 2048
+ stop: list[str] = field(default_factory=lambda: [ACTION_END])
+ stop_token_ids: list[int] = field(default_factory=list)
+ include_stop_str_in_output: bool = False
+ lenient_parse: bool = False
+ timeout: float = 120.0
+
+ @classmethod
+ def preset(cls, benchmark: str, **overrides: Any) -> "PolicyConfig":
+ """Paper-benchmark clients. The default constructor is not one of these.
+
+ Default ``PolicyConfig()`` sends the given game frame unchanged and does
+ not prefill ````. Use a preset only when reproducing a paper table.
+ """
+ presets = {
+ "omnigamearena": cls(image_size=(854, 480), think_prefill=True),
+ # Free-form reasoning without a stop string: a model that quotes the
+ # format inside would otherwise be cut off mid-thought.
+ "vizdoom": cls(image_size=(854, 480), think_prefill=True, stop=[]),
+ "gameworld": cls(
+ image_size=None, image_height=480, image_format="png", resample="lanczos",
+ think_prefill=False, max_tokens=4096, stop=[ACTION_END],
+ stop_token_ids=[ACTION_END_TOKEN_ID], include_stop_str_in_output=True,
+ lenient_parse=True,
+ ),
+ }
+ if benchmark not in presets:
+ raise ValueError(f"unknown benchmark {benchmark!r}; known: {sorted(presets)}")
+ return replace(presets[benchmark], **overrides)
+
+
+class Turn(NamedTuple):
+ image_url: str
+ reasoning: str
+ action_text: str
+
+
+@dataclass
+class Decision:
+ """The outcome of one :meth:`GameScalingPolicy.act` call."""
+
+ action: Action
+ text: str
+ reasoning: str
+ latency_ms: float
+ finish_reason: str | None = None
+ completion_tokens: int | None = None
+ error: str | None = None
+
+
+def encode_image(image: Image.Image, cfg: PolicyConfig) -> str:
+ """Resize + encode a frame into the data URL the request carries."""
+ img = image
+ if cfg.image_size is not None and img.size != tuple(cfg.image_size):
+ img = img.resize(tuple(cfg.image_size), _RESAMPLE[cfg.resample])
+ elif cfg.image_height and img.height != cfg.image_height:
+ width = max(1, round(img.width * cfg.image_height / img.height))
+ img = img.resize((width, cfg.image_height), _RESAMPLE[cfg.resample])
+ buf = io.BytesIO()
+ if cfg.image_format == "png":
+ img.convert("RGB").save(buf, format="PNG")
+ mime = "image/png"
+ else:
+ img.convert("RGB").save(buf, format="JPEG", quality=cfg.jpeg_quality)
+ mime = "image/jpeg"
+ return f"data:{mime};base64," + base64.b64encode(buf.getvalue()).decode("ascii")
+
+
+def user_turn(image_url: str) -> dict:
+ return {"role": "user", "content": [
+ {"type": "text", "text": USER_TURN_TEXT},
+ {"type": "image_url", "image_url": {"url": image_url}},
+ ]}
+
+
+def assistant_turn(action_text: str, reasoning: str = "") -> dict:
+ if reasoning:
+ action_text = f"{THINK_OPEN}\n{reasoning.strip()}\n\n\n{action_text}"
+ return {"role": "assistant", "content": action_text}
+
+
+def build_request(messages: list[dict], cfg: PolicyConfig) -> dict:
+ """OpenAI-compatible /chat/completions body with the vLLM extensions we rely on."""
+ body: dict[str, Any] = {
+ "model": cfg.model,
+ "messages": list(messages),
+ "temperature": cfg.temperature,
+ "max_tokens": cfg.max_tokens,
+ # The action tags are special tokens; keep them in the decoded text.
+ "skip_special_tokens": False,
+ }
+ if cfg.stop:
+ body["stop"] = list(cfg.stop)
+ if cfg.stop_token_ids:
+ body["stop_token_ids"] = list(cfg.stop_token_ids)
+ if cfg.include_stop_str_in_output:
+ body["include_stop_str_in_output"] = True
+ if cfg.think_prefill:
+ body["messages"].append({"role": "assistant", "content": THINK_OPEN})
+ body["continue_final_message"] = True
+ body["add_generation_prompt"] = False
+ return body
+
+
+def finalize(text: str, finish_reason: str | None, cfg: PolicyConfig) -> str:
+ """Undo what the request itself did to the reply.
+
+ The prefill is not part of the returned text, and a stop string is removed
+ from it. Both are restored so the reply parses the same way as training data.
+ """
+ text = text or ""
+ if cfg.think_prefill and not text.lstrip().startswith(THINK_OPEN):
+ text = THINK_OPEN + text
+ _, tail, closed = split_reasoning(text)
+ if closed and ACTION_START not in tail:
+ bare = tail.strip()
+ if re.match(r"^-?\d", bare) and ";" in bare:
+ text = text[: len(text) - len(tail)] + ACTION_START + bare
+ if (finish_reason == "stop" and ACTION_START in text
+ and ACTION_END not in text[text.rfind(ACTION_START):]):
+ text += ACTION_END
+ return text
+
+
+class GameScalingPolicy:
+ """Stateful client: call :meth:`reset` at episode start, :meth:`act` per 200 ms."""
+
+ def __init__(self, system_prompt: str, config: PolicyConfig | None = None):
+ self.system_prompt = system_prompt
+ self.cfg = config or PolicyConfig()
+ self._history: deque[Turn] = deque()
+ self._session = requests.Session()
+
+ @property
+ def base_url(self) -> str:
+ return self.cfg.base_url.rstrip("/")
+
+ def reset(self) -> None:
+ self._history.clear()
+
+ def health_check(self) -> bool:
+ try:
+ r = self._session.get(f"{self.base_url}/models", timeout=10,
+ headers={"Authorization": f"Bearer {self.cfg.api_key}"})
+ return r.status_code < 400
+ except requests.RequestException:
+ return False
+
+ def messages(self, image_url: str) -> list[dict]:
+ out: list[dict] = [{"role": "system", "content": self.system_prompt}] if self.system_prompt else []
+ n = len(self._history)
+ for i, turn in enumerate(self._history):
+ out.append(user_turn(turn.image_url))
+ age = n - i
+ keep = self.cfg.history_think < 0 or age <= self.cfg.history_think
+ out.append(assistant_turn(turn.action_text, turn.reasoning if keep else ""))
+ out.append(user_turn(image_url))
+ return out
+
+ def act(self, image: Image.Image) -> Decision:
+ url = encode_image(image, self.cfg)
+ body = build_request(self.messages(url), self.cfg)
+ t0 = time.perf_counter()
+ text, finish, tokens, error = "", None, None, None
+ try:
+ r = self._session.post(f"{self.base_url}/chat/completions", json=body,
+ timeout=self.cfg.timeout,
+ headers={"Authorization": f"Bearer {self.cfg.api_key}"})
+ if r.status_code >= 400:
+ raise requests.HTTPError(f"HTTP {r.status_code}: {r.text[:500]}")
+ payload = r.json()
+ choice = (payload.get("choices") or [{}])[0]
+ text = (choice.get("message") or {}).get("content") or ""
+ finish = choice.get("finish_reason")
+ tokens = (payload.get("usage") or {}).get("completion_tokens")
+ except (requests.RequestException, ValueError, KeyError) as exc:
+ error = str(exc)
+ logger.error("policy request failed: %s", exc)
+ latency_ms = (time.perf_counter() - t0) * 1000
+ text = finalize(text, finish, self.cfg) if not error else ""
+ action = parse_action(text, lenient=self.cfg.lenient_parse)
+ reasoning, _, closed = split_reasoning(text)
+ self._history.append(Turn(url, reasoning if closed else "", action.history_text))
+ while len(self._history) > self.cfg.history_len:
+ self._history.popleft()
+ return Decision(action=action, text=text, reasoning=reasoning, latency_ms=latency_ms,
+ finish_reason=finish, completion_tokens=tokens, error=error)
diff --git a/gamescaling/prompt.py b/gamescaling/prompt.py
new file mode 100644
index 0000000000000000000000000000000000000000..db1c9deebf25ef38f18205e127b919a209b50744
--- /dev/null
+++ b/gamescaling/prompt.py
@@ -0,0 +1,182 @@
+"""System prompts for GameScaling checkpoints.
+
+All three benchmarks in the paper use the same skeleton, in this order:
+
+1. opening: gaming expert, the game's name, the 200 ms / 6 x 33 ms contract;
+2. ``**Game Rules**``: what the game is and how it is scored;
+3. controls: the keys this game uses, written in the training vocabulary;
+4. ``**Task Instruction**`` (GameWorld only: one game has several tasks);
+5. ``**Output Format**``: plain, or the empty-think / think+action variant when
+ the client lets the model reason;
+6. ``**Explanation**`` + ``**Key Naming Rules**``.
+
+Only the wording of the controls section and the separators differ between the
+two layouts below. Copy the strings, do not paraphrase them: the checkpoints key
+their output tag off the exact Output Format section.
+"""
+
+from __future__ import annotations
+
+import re
+from collections.abc import Iterable
+
+from .keymaps import PLAYWRIGHT_TO_TOKEN
+
+OPENING = (
+ "You are a gaming expert, and you are currently playing {name}. You are "
+ "proficient in keyboard and mouse operations. You understand game mechanics "
+ "and combat pacing, can quickly extract key information from the current "
+ "screen, and can think and make precise decisions at critical moments. Based "
+ "on the current screen, plan the next 200ms of actions, consisting of 6 steps "
+ "spaced 33ms apart. Each step lasts 33ms, until the next step begins. If the "
+ "current situation continues the previous strategy, output the action "
+ "directly. Think only when the situation changes significantly, the previous "
+ "analysis is no longer valid, or a new objective appears."
+)
+
+OUTPUT_FORMAT_PLAIN = (
+ "<|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10<|action_end|>"
+)
+OUTPUT_FORMAT_THINK = (
+ "**Action only (usual)**\n"
+ "<|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10"
+ "<|action_end|>\n"
+ "**Thinking + action (when necessary)**\n"
+ "reasoning<|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10"
+ "<|action_end|>"
+)
+
+TAIL = (
+ "**Explanation**\n"
+ "1. **Mouse Movement**: First, specify the relative displacement X, Y (X>0 means "
+ "move right, Y>0 means move down) and scroll amount Z (Z>0 means scroll up).\n"
+ "2. **Key Sequence**: Then list 6 groups of keys; within each group, keys are "
+ "separated by spaces, and groups are separated by semicolons.\n"
+ "- Each group can contain up to 4 keys.\n"
+ "- If a group has no keys, leave it empty but keep the `;`.\n"
+ "3. Only output a plain string that conforms to the above format — no line breaks "
+ "and no quotation marks.\n"
+ "**Key Naming Rules**\n"
+ "- Number keys `0-9`: use lowercase English words, e.g., `zero` for `0`, `one` for `1`, "
+ "... `nine` for `9`.\n"
+ "- Function keys `F1-F12`: use capitalized English words, e.g., `One` represents `F1`, "
+ "`Two` represents `F2`, and so on.\n"
+ "- Mouse buttons: use `LB`, `RB`, `MB` for the left, right, and middle mouse button.\n"
+ "- Letters: use the uppercase letter, e.g., `A`, `D`, `W`, `S`.\n"
+ "- Arrow keys: use `Up`, `Down`, `Left`, `Right`.\n"
+ "- Modifier/special keys: `Shift`, `Ctrl`, `Alt`, `Tab`, `Caps`, `Esc`, `Space`, "
+ "`Enter`, `Back` (backspace), `Delete`, `Insert`, `Home`, `End`, `Pause`."
+)
+
+MOUSE_AIM_LINE = "- Mouse X Y -> aim / rotate the camera (X>0 right, Y>0 down)"
+_MOUSE_BUTTON_ALIASES = {"LMB": "LB", "RMB": "RB", "MMB": "MB"}
+
+# Default inference prompt: no game name, no rules. The user turn is one game
+# frame labeled "current game screen". Named games use `build_system_prompt`.
+TRAINING_SYSTEM_PROMPT = '''You are an experienced PC game player, proficient in keyboard and mouse operations. Based on the current game screen and the corresponding historical trajectory, plan the next 200ms of actions, consisting of 6 steps. Each step is spaced 33ms apart. Every step lasts 33ms from its start time until the next step begins.
+**Output Format**
+<|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10<|action_end|>
+**Explanation**
+1. **Mouse Movement**: First, specify the relative displacement X, Y (X>0 means move right, Y>0
+means move down) and scroll amount Z (Z>0 means scroll up).
+2. **Key Sequence**: Then list 6 groups of keys; within each group, keys are separated by spaces,
+and groups are separated by semicolons.
+- Each group can contain up to 4 keys.
+- If a group has no keys, leave it empty but keep the `;`.
+3. Only output a plain string that conforms to the above format — no line breaks and no quotation marks.
+**Key Naming Rules**
+- Number keys `1-9`: use lowercase English words, e.g., `one` represents the `1` key on the keyboard.
+- Function keys `F1-F12`: use capitalized English words, e.g., `One` represents `F1`, `Two` represents `F2`, and so on.
+- Other keys (letters, Shift, Tab, Space, etc.): use the real keyboard name with an initial capital letter, e.g., `A`, `D`, `Shift`, `Space`, etc.'''
+
+USER_TURN_TEXT = "current game screen"
+
+
+def _output_format(reasoning: bool) -> str:
+ return OUTPUT_FORMAT_THINK if reasoning else OUTPUT_FORMAT_PLAIN
+
+
+def build_system_prompt(
+ game_name: str,
+ *,
+ rules: str | None = None,
+ key_bindings: Iterable[tuple[str, str]] | dict[str, str] | None = None,
+ mouse_aim: bool = True,
+ reasoning: bool = False,
+) -> str:
+ """Key-list layout for a named game (ViZDoom, OmniGameArena, or a new game).
+
+ ``key_bindings`` maps training tokens to what they do, e.g.
+ ``{"W": "Move forward", "LB": "Fire"}``; ``LMB``/``RMB``/``MMB`` are accepted
+ as aliases of ``LB``/``RB``/``MB``. ``mouse_aim`` adds the camera line for
+ games that are steered with the mouse. ``reasoning`` must match whether the
+ client prefills ```` (see ``PolicyConfig.think_prefill``).
+ """
+ parts = [OPENING.format(name=game_name)]
+ if rules and rules.strip():
+ parts.append("**Game Rules**\n" + rules.strip())
+ items = key_bindings.items() if isinstance(key_bindings, dict) else (key_bindings or ())
+ common = [f"- {_MOUSE_BUTTON_ALIASES.get(k, k)} -> {v}" for k, v in items]
+ if mouse_aim:
+ common.append(MOUSE_AIM_LINE)
+ if common:
+ parts.append(f"**Common Keys in {game_name}**\n" + "\n".join(common))
+ parts.append("**Output Format**\n" + _output_format(reasoning))
+ parts.append(TAIL)
+ return "\n".join(parts)
+
+
+def build_gameworld_system_prompt(
+ game_name: str | None,
+ *,
+ rules: str | None = None,
+ controls: str | None = None,
+ task: str | None = None,
+ reasoning: bool = False,
+) -> str:
+ """Free-text layout (GameWorld): rules, role/controls and task as paragraphs.
+
+ ``controls`` must already use training key names; see
+ :func:`translate_controls`.
+ """
+ opening = OPENING if game_name else OPENING.replace(", and you are currently playing {name}", "")
+ out = opening.format(name=game_name) + "\n"
+ if rules:
+ out += "\n**Game Rules**\n" + rules + "\n"
+ if controls:
+ out += "\n**Role and Controls**\n" + controls + "\n"
+ if task:
+ out += "\n**Task Instruction**\n" + task + "\n"
+ out += "\n**Output Format**\n" + _output_format(reasoning) + "\n" + TAIL
+ return out.strip()
+
+
+_PW_TO_TOKEN = PLAYWRIGHT_TO_TOKEN
+_PW_KEY_RE = re.compile(r"\b(" + "|".join(map(re.escape, _PW_TO_TOKEN)) + r")\b")
+_DIGIT_WORD = {"0": "zero", "1": "one", "2": "two", "3": "three", "4": "four",
+ "5": "five", "6": "six", "7": "seven", "8": "eight", "9": "nine"}
+_COMBO_SLASH_RE = re.compile(r"(? str:
+ """Rewrite a controls paragraph from browser key names into training tokens.
+
+ ``ArrowLeft`` -> ``Left``, ``Escape`` -> ``Esc``, ...; single letters become
+ upper case and digits become words, but only where they stand as keys
+ (``a/d``, ``w + a``, ``- r:``, ``1-9:``) so prose is left alone.
+ """
+ if not text:
+ return ""
+ out = _PW_KEY_RE.sub(lambda m: _PW_TO_TOKEN[m.group(1)], str(text))
+ out = _DIGIT_RANGE_RE.sub(lambda m: f"{_DIGIT_WORD[m.group(1)]}-{_DIGIT_WORD[m.group(2)]}", out)
+ out = _LIST_DIGIT_RE.sub(lambda m: m.group(1) + _DIGIT_WORD[m.group(2)], out)
+ out = _COMBO_SLASH_RE.sub(lambda m: f"{m.group(1).upper()}/{m.group(2).upper()}", out)
+ out = _COMBO_PLUS_RE.sub(lambda m: f"{m.group(1).upper()} + {m.group(2).upper()}", out)
+ out = _LIST_LETTER_RE.sub(lambda m: m.group(1) + m.group(2).upper(), out)
+ out = _COLON_LETTER_RE.sub(lambda m: m.group(1).upper(), out)
+ return out
diff --git a/models/0p8b_s1_1600h_gs6736/chat_template.jinja b/models/0p8b_s1_1600h_gs6736/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/0p8b_s1_1600h_gs6736/config.json b/models/0p8b_s1_1600h_gs6736/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0b4f7fab67dee310ad4a9321ac18549dabb1b344
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/config.json
@@ -0,0 +1,104 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 1024,
+ "initializer_range": 0.02,
+ "intermediate_size": 3584,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 16,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 8,
+ "num_hidden_layers": 24,
+ "num_key_value_heads": 2,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": true,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": true,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 12,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 768,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 3072,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 12,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 1024,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/0p8b_s1_1600h_gs6736/generation_config.json b/models/0p8b_s1_1600h_gs6736/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/0p8b_s1_1600h_gs6736/preprocessor_config.json b/models/0p8b_s1_1600h_gs6736/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/0p8b_s1_1600h_gs6736/processor_config.json b/models/0p8b_s1_1600h_gs6736/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/0p8b_s1_1600h_gs6736/tokenizer.json b/models/0p8b_s1_1600h_gs6736/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/0p8b_s1_1600h_gs6736/tokenizer_config.json b/models/0p8b_s1_1600h_gs6736/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/0p8b_s1_1600h_gs6736/video_preprocessor_config.json b/models/0p8b_s1_1600h_gs6736/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/0p8b_s1_1600h_gs6736/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/0p8b_s3_1600h_gs6760/chat_template.jinja b/models/0p8b_s3_1600h_gs6760/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/0p8b_s3_1600h_gs6760/config.json b/models/0p8b_s3_1600h_gs6760/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0b4f7fab67dee310ad4a9321ac18549dabb1b344
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/config.json
@@ -0,0 +1,104 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 1024,
+ "initializer_range": 0.02,
+ "intermediate_size": 3584,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 16,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 8,
+ "num_hidden_layers": 24,
+ "num_key_value_heads": 2,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": true,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": true,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 12,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 768,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 3072,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 12,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 1024,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/0p8b_s3_1600h_gs6760/generation_config.json b/models/0p8b_s3_1600h_gs6760/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/0p8b_s3_1600h_gs6760/preprocessor_config.json b/models/0p8b_s3_1600h_gs6760/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/0p8b_s3_1600h_gs6760/processor_config.json b/models/0p8b_s3_1600h_gs6760/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/0p8b_s3_1600h_gs6760/tokenizer.json b/models/0p8b_s3_1600h_gs6760/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/0p8b_s3_1600h_gs6760/tokenizer_config.json b/models/0p8b_s3_1600h_gs6760/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/0p8b_s3_1600h_gs6760/video_preprocessor_config.json b/models/0p8b_s3_1600h_gs6760/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/0p8b_s3_1600h_gs6760/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/27b_s1_1600h_gs6995/chat_template.jinja b/models/27b_s1_1600h_gs6995/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/27b_s1_1600h_gs6995/config.json b/models/27b_s1_1600h_gs6995/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..917fdda9a2036f3174e01a10578f076436e5e1b8
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/config.json
@@ -0,0 +1,144 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 5120,
+ "initializer_range": 0.02,
+ "intermediate_size": 17408,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 48,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 24,
+ "num_hidden_layers": 64,
+ "num_key_value_heads": 4,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": false,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": false,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 27,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1152,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4304,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 5120,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/27b_s1_1600h_gs6995/generation_config.json b/models/27b_s1_1600h_gs6995/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..b49b15c44e72a9b7fe46d127986faacdb6ab8eec
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/generation_config.json
@@ -0,0 +1,13 @@
+{
+ "bos_token_id": 248044,
+ "do_sample": true,
+ "eos_token_id": [
+ 248046,
+ 248044
+ ],
+ "pad_token_id": 248044,
+ "temperature": 0.6,
+ "top_k": 20,
+ "top_p": 0.95,
+ "transformers_version": "5.14.1"
+}
diff --git a/models/27b_s1_1600h_gs6995/model.safetensors.index.json b/models/27b_s1_1600h_gs6995/model.safetensors.index.json
new file mode 100644
index 0000000000000000000000000000000000000000..34f12f9fe39c33ecf672ad8f34bd1fcc0a87e15a
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/model.safetensors.index.json
@@ -0,0 +1,1192 @@
+{
+ "metadata": {
+ "total_parameters": 27356728560,
+ "total_size": 54713457120
+ },
+ "weight_map": {
+ "lm_head.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.embed_tokens.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.A_log": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.A_log": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.24.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.25.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.26.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.27.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.28.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.29.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.30.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.31.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.32.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.32.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.33.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.33.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.34.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.34.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.35.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.36.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.37.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.37.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.input_layernorm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.38.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.38.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.39.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.40.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.41.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.42.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.43.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.44.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.44.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.45.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.45.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.46.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.46.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.47.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.48.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.49.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.50.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.51.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.52.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.53.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.54.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.54.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.55.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.56.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.57.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.58.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.59.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.60.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.61.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.62.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.63.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.A_log": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
+ "model.language_model.norm.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.norm1.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.0.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.0.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.1.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.attn.proj.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.10.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.10.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.11.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.11.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.12.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.13.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.14.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.attn.proj.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.15.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.attn.qkv.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.15.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.15.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.16.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.16.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.17.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.attn.proj.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.18.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.norm1.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.18.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.18.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.19.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.2.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.2.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.2.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.2.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.attn.proj.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.20.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.20.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.21.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.attn.qkv.bias": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.22.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.22.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.23.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.attn.proj.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.24.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.24.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.25.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.26.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.attn.qkv.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.3.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.3.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.4.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.5.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
+ "model.visual.blocks.6.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.6.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.7.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.8.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.attn.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.attn.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.attn.qkv.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.attn.qkv.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.norm1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.norm1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.norm2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.blocks.9.norm2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.merger.linear_fc1.bias": "model-00001-of-00002.safetensors",
+ "model.visual.merger.linear_fc1.weight": "model-00001-of-00002.safetensors",
+ "model.visual.merger.linear_fc2.bias": "model-00001-of-00002.safetensors",
+ "model.visual.merger.linear_fc2.weight": "model-00001-of-00002.safetensors",
+ "model.visual.merger.norm.bias": "model-00001-of-00002.safetensors",
+ "model.visual.merger.norm.weight": "model-00001-of-00002.safetensors",
+ "model.visual.patch_embed.proj.bias": "model-00001-of-00002.safetensors",
+ "model.visual.patch_embed.proj.weight": "model-00001-of-00002.safetensors",
+ "model.visual.pos_embed.weight": "model-00001-of-00002.safetensors"
+ }
+}
diff --git a/models/27b_s1_1600h_gs6995/preprocessor_config.json b/models/27b_s1_1600h_gs6995/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/27b_s1_1600h_gs6995/processor_config.json b/models/27b_s1_1600h_gs6995/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/27b_s1_1600h_gs6995/tokenizer.json b/models/27b_s1_1600h_gs6995/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/27b_s1_1600h_gs6995/tokenizer_config.json b/models/27b_s1_1600h_gs6995/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/27b_s1_1600h_gs6995/video_preprocessor_config.json b/models/27b_s1_1600h_gs6995/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/27b_s1_1600h_gs6995/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/27b_s3_1600h_gs7020/chat_template.jinja b/models/27b_s3_1600h_gs7020/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/27b_s3_1600h_gs7020/config.json b/models/27b_s3_1600h_gs7020/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..94793620d2e7e1a82eba7ff0418b3cc28cefcdb3
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/config.json
@@ -0,0 +1,144 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "float32",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "float32",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 5120,
+ "initializer_range": 0.02,
+ "intermediate_size": 17408,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 48,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 24,
+ "num_hidden_layers": 64,
+ "num_key_value_heads": 4,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": false,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": false,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 27,
+ "dtype": "float32",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1152,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4304,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 5120,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/27b_s3_1600h_gs7020/generation_config.json b/models/27b_s3_1600h_gs7020/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..b49b15c44e72a9b7fe46d127986faacdb6ab8eec
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/generation_config.json
@@ -0,0 +1,13 @@
+{
+ "bos_token_id": 248044,
+ "do_sample": true,
+ "eos_token_id": [
+ 248046,
+ 248044
+ ],
+ "pad_token_id": 248044,
+ "temperature": 0.6,
+ "top_k": 20,
+ "top_p": 0.95,
+ "transformers_version": "5.14.1"
+}
diff --git a/models/27b_s3_1600h_gs7020/preprocessor_config.json b/models/27b_s3_1600h_gs7020/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/27b_s3_1600h_gs7020/processor_config.json b/models/27b_s3_1600h_gs7020/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/27b_s3_1600h_gs7020/tokenizer.json b/models/27b_s3_1600h_gs7020/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/27b_s3_1600h_gs7020/tokenizer_config.json b/models/27b_s3_1600h_gs7020/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/27b_s3_1600h_gs7020/video_preprocessor_config.json b/models/27b_s3_1600h_gs7020/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/27b_s3_1600h_gs7020/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/2b_s1_1600h_gs6736/chat_template.jinja b/models/2b_s1_1600h_gs6736/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/2b_s1_1600h_gs6736/config.json b/models/2b_s1_1600h_gs6736/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e5e8b6c56b2c847ca7ca5d4b7c677288f4fa42b
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/config.json
@@ -0,0 +1,104 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 2048,
+ "initializer_range": 0.02,
+ "intermediate_size": 6144,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 16,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 8,
+ "num_hidden_layers": 24,
+ "num_key_value_heads": 2,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": true,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": true,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 24,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1024,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4096,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 2048,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/2b_s1_1600h_gs6736/generation_config.json b/models/2b_s1_1600h_gs6736/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/2b_s1_1600h_gs6736/preprocessor_config.json b/models/2b_s1_1600h_gs6736/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/2b_s1_1600h_gs6736/processor_config.json b/models/2b_s1_1600h_gs6736/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/2b_s1_1600h_gs6736/tokenizer.json b/models/2b_s1_1600h_gs6736/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/2b_s1_1600h_gs6736/tokenizer_config.json b/models/2b_s1_1600h_gs6736/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/2b_s1_1600h_gs6736/video_preprocessor_config.json b/models/2b_s1_1600h_gs6736/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/2b_s1_1600h_gs6736/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/2b_s3_1600h_gs6760/chat_template.jinja b/models/2b_s3_1600h_gs6760/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/2b_s3_1600h_gs6760/config.json b/models/2b_s3_1600h_gs6760/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e5e8b6c56b2c847ca7ca5d4b7c677288f4fa42b
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/config.json
@@ -0,0 +1,104 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 2048,
+ "initializer_range": 0.02,
+ "intermediate_size": 6144,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 16,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 8,
+ "num_hidden_layers": 24,
+ "num_key_value_heads": 2,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": true,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": true,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 24,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1024,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4096,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 2048,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/2b_s3_1600h_gs6760/generation_config.json b/models/2b_s3_1600h_gs6760/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/2b_s3_1600h_gs6760/preprocessor_config.json b/models/2b_s3_1600h_gs6760/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/2b_s3_1600h_gs6760/processor_config.json b/models/2b_s3_1600h_gs6760/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/2b_s3_1600h_gs6760/tokenizer.json b/models/2b_s3_1600h_gs6760/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/2b_s3_1600h_gs6760/tokenizer_config.json b/models/2b_s3_1600h_gs6760/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/2b_s3_1600h_gs6760/video_preprocessor_config.json b/models/2b_s3_1600h_gs6760/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/2b_s3_1600h_gs6760/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/9b_s1_1600h_gs6736/chat_template.jinja b/models/9b_s1_1600h_gs6736/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/9b_s1_1600h_gs6736/config.json b/models/9b_s1_1600h_gs6736/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..6d35c090be9c5bfef11d7c54527a83e15e176f41
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/config.json
@@ -0,0 +1,112 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 4096,
+ "initializer_range": 0.02,
+ "intermediate_size": 12288,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 32,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 16,
+ "num_hidden_layers": 32,
+ "num_key_value_heads": 4,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": false,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": false,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 27,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1152,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4304,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 4096,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/9b_s1_1600h_gs6736/generation_config.json b/models/9b_s1_1600h_gs6736/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/9b_s1_1600h_gs6736/preprocessor_config.json b/models/9b_s1_1600h_gs6736/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/9b_s1_1600h_gs6736/processor_config.json b/models/9b_s1_1600h_gs6736/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/9b_s1_1600h_gs6736/tokenizer.json b/models/9b_s1_1600h_gs6736/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/9b_s1_1600h_gs6736/tokenizer_config.json b/models/9b_s1_1600h_gs6736/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/9b_s1_1600h_gs6736/video_preprocessor_config.json b/models/9b_s1_1600h_gs6736/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/9b_s1_1600h_gs6736/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/models/9b_s3_1600h_gs6760/chat_template.jinja b/models/9b_s3_1600h_gs6760/chat_template.jinja
new file mode 100644
index 0000000000000000000000000000000000000000..f8d4dea148f8b55d87f4a49798a21706f212f7e9
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/chat_template.jinja
@@ -0,0 +1,134 @@
+{%- set image_count = namespace(value=0) %}
+{%- set video_count = namespace(value=0) %}
+{%- macro render_content(content, do_vision_count, is_system_content=false) %}
+ {%- if content is string %}
+ {{- content }}
+ {%- elif content is iterable and content is not mapping %}
+ {%- for item in content %}
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain images.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set image_count.value = image_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
+ {%- elif 'video' in item or item.type == 'video' %}
+ {%- if is_system_content %}
+ {{- raise_exception('System message cannot contain videos.') }}
+ {%- endif %}
+ {%- if do_vision_count %}
+ {%- set video_count.value = video_count.value + 1 %}
+ {%- endif %}
+ {%- if add_vision_id %}
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
+ {%- endif %}
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
+ {%- elif 'text' in item %}
+ {{- item.text }}
+ {%- else %}
+ {{- raise_exception('Unexpected item type in content.') }}
+ {%- endif %}
+ {%- endfor %}
+ {%- elif content is none or content is undefined %}
+ {{- '' }}
+ {%- else %}
+ {{- raise_exception('Unexpected content type.') }}
+ {%- endif %}
+{%- endmacro %}
+{#- ICLR27-GameScaling CPT permissive template:
+ - 去掉原 Qwen3.5 模板对 "user query" 的强制断言(逐轮套模板会遇到无 user 的单轮)。
+ - 去掉 assistant 轮的 注入(该注入依赖全局 last_query_index, 会使
+ "逐轮拼接 != 整体" 从而破坏 MultiTurnSFTDataset.sanity_check 与 loss 掩码对齐)。
+ - 去掉原模板的 `{%- if not messages %}` 空判断: 本管线把 messages 以 numpy object-array
+ 传入, `not ` 会触发 "truth value of an array ... is ambiguous"。 #}
+{%- if tools and tools is iterable and tools is not mapping %}
+ {{- '<|im_start|>system\n' }}
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
+ {%- for tool in tools %}
+ {{- "\n" }}
+ {{- tool | tojson }}
+ {%- endfor %}
+ {{- "\n" }}
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n\n\n\nvalue_1\n\n\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner block must be nested within XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {%- if content %}
+ {{- '\n\n' + content }}
+ {%- endif %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+{%- else %}
+ {%- if messages[0].role == 'system' %}
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
+ {%- endif %}
+{%- endif %}
+{%- for message in messages %}
+ {%- set content = render_content(message.content, true)|trim %}
+ {%- if message.role == "system" %}
+ {%- if not loop.first %}
+ {{- raise_exception('System message must be at the beginning.') }}
+ {%- endif %}
+ {%- elif message.role == "user" %}
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
+ {%- elif message.role == "assistant" %}
+ {#- ICLR27 think 处理(逐轮、常量、不依赖跨轮 index => 不破坏 sanity_check 与 loss 掩码):
+ - 若该轮本身已带 (如 zebra_cot 推理数据): 原样保留其真实思维链, 不再注入,
+ 避免拼成"空 think + 真 think"的双块(那会破坏 Qwen 原生"恰好一个 think 块"结构)。
+ - 否则(VPT/游戏/普通 VL 等无 think 的轮): 注入 Qwen 原生"空 think"块 \n\n\n\n,
+ 训练无 think GT 只保结构, 让模型仍会输出 ..., 不破坏原生思考通路;
+ inference 端由生成提示(下方 add_generation_prompt, 不注入)自由填充思考内容。 #}
+ {%- if '' in content or '' in content %}
+ {{- '<|im_start|>' + message.role + '\n' + content }}
+ {%- else %}
+ {{- '<|im_start|>' + message.role + '\n' + '\n\n\n\n' + content }}
+ {%- endif %}
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
+ {%- for tool_call in message.tool_calls %}
+ {%- if tool_call.function is defined %}
+ {%- set tool_call = tool_call.function %}
+ {%- endif %}
+ {%- if loop.first %}
+ {%- if content|trim %}
+ {{- '\n\n\n\n' }}
+ {%- else %}
+ {{- '\n\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- '\n\n\n' }}
+ {%- endif %}
+ {%- if tool_call.arguments is defined %}
+ {%- for args_name, args_value in tool_call.arguments|items %}
+ {{- '\n' }}
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
+ {{- args_value }}
+ {{- '\n\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '\n' }}
+ {%- endfor %}
+ {%- endif %}
+ {{- '<|im_end|>\n' }}
+ {%- elif message.role == "tool" %}
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
+ {{- '<|im_start|>user' }}
+ {%- endif %}
+ {{- '\n\n' }}
+ {{- content }}
+ {{- '\n' }}
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
+ {{- '<|im_end|>\n' }}
+ {%- elif loop.last %}
+ {{- '<|im_end|>\n' }}
+ {%- endif %}
+ {%- else %}
+ {{- raise_exception('Unexpected message role.') }}
+ {%- endif %}
+{%- endfor %}
+{%- if add_generation_prompt %}
+ {{- '<|im_start|>assistant\n' }}
+{%- endif %}
diff --git a/models/9b_s3_1600h_gs6760/config.json b/models/9b_s3_1600h_gs6760/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..6d35c090be9c5bfef11d7c54527a83e15e176f41
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/config.json
@@ -0,0 +1,112 @@
+{
+ "architectures": [
+ "Qwen3_5ForConditionalGeneration"
+ ],
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248046,
+ "image_token_id": 248056,
+ "model_type": "qwen3_5",
+ "pad_token_id": 248044,
+ "text_config": {
+ "attention_bias": false,
+ "attention_dropout": 0.0,
+ "attn_output_gate": true,
+ "bos_token_id": null,
+ "dtype": "bfloat16",
+ "eos_token_id": 248044,
+ "full_attention_interval": 4,
+ "head_dim": 256,
+ "hidden_act": "silu",
+ "hidden_size": 4096,
+ "initializer_range": 0.02,
+ "intermediate_size": 12288,
+ "layer_types": [
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention",
+ "linear_attention",
+ "linear_attention",
+ "linear_attention",
+ "full_attention"
+ ],
+ "linear_conv_kernel_dim": 4,
+ "linear_key_head_dim": 128,
+ "linear_num_key_heads": 16,
+ "linear_num_value_heads": 32,
+ "linear_value_head_dim": 128,
+ "mamba_ssm_dtype": "float32",
+ "max_position_embeddings": 262144,
+ "mlp_only_layers": [],
+ "model_type": "qwen3_5_text",
+ "mtp_num_hidden_layers": 1,
+ "mtp_use_dedicated_embeddings": false,
+ "num_attention_heads": 16,
+ "num_hidden_layers": 32,
+ "num_key_value_heads": 4,
+ "pad_token_id": null,
+ "partial_rotary_factor": 0.25,
+ "rms_norm_eps": 1e-06,
+ "rope_parameters": {
+ "mrope_interleaved": true,
+ "mrope_section": [
+ 11,
+ 11,
+ 10
+ ],
+ "partial_rotary_factor": 0.25,
+ "rope_theta": 10000000,
+ "rope_type": "default"
+ },
+ "tie_word_embeddings": false,
+ "use_cache": true,
+ "vocab_size": 248320
+ },
+ "tie_word_embeddings": false,
+ "transformers_version": "5.14.1",
+ "video_token_id": 248057,
+ "vision_config": {
+ "deepstack_visual_indexes": [],
+ "depth": 27,
+ "dtype": "bfloat16",
+ "hidden_act": "gelu_pytorch_tanh",
+ "hidden_size": 1152,
+ "in_channels": 3,
+ "initializer_range": 0.02,
+ "intermediate_size": 4304,
+ "model_type": "qwen3_5_vision",
+ "num_heads": 16,
+ "num_position_embeddings": 2304,
+ "out_hidden_size": 4096,
+ "patch_size": 16,
+ "spatial_merge_size": 2,
+ "temporal_patch_size": 2
+ },
+ "vision_end_token_id": 248054,
+ "vision_start_token_id": 248053
+}
diff --git a/models/9b_s3_1600h_gs6760/generation_config.json b/models/9b_s3_1600h_gs6760/generation_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e6d59a5f5463e62e7dc45c7f40ff8604275c81a
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/generation_config.json
@@ -0,0 +1,9 @@
+{
+ "_from_model_config": true,
+ "eos_token_id": 248046,
+ "output_attentions": false,
+ "output_hidden_states": false,
+ "pad_token_id": 248044,
+ "transformers_version": "5.14.1",
+ "use_cache": true
+}
diff --git a/models/9b_s3_1600h_gs6760/preprocessor_config.json b/models/9b_s3_1600h_gs6760/preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea84a437d448ff71b08df68fdd949d5cc4ebb64
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "image_processor_type": "Qwen2VLImageProcessorFast"
+}
\ No newline at end of file
diff --git a/models/9b_s3_1600h_gs6760/processor_config.json b/models/9b_s3_1600h_gs6760/processor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..33818c7f9e991ad735fd240209f4fa73e6c28c50
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/processor_config.json
@@ -0,0 +1,60 @@
+{
+ "image_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_processor_type": "Qwen2VLImageProcessor",
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "merge_size": 2,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "size": {
+ "longest_edge": 16777216,
+ "shortest_edge": 65536
+ },
+ "temporal_patch_size": 2
+ },
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor": {
+ "do_convert_rgb": true,
+ "do_normalize": true,
+ "do_rescale": true,
+ "do_resize": true,
+ "do_sample_frames": true,
+ "fps": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "max_frames": 768,
+ "merge_size": 2,
+ "min_frames": 4,
+ "patch_size": 16,
+ "resample": 3,
+ "rescale_factor": 0.00392156862745098,
+ "return_metadata": false,
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "temporal_patch_size": 2,
+ "video_processor_type": "Qwen3VLVideoProcessor"
+ }
+}
diff --git a/models/9b_s3_1600h_gs6760/tokenizer.json b/models/9b_s3_1600h_gs6760/tokenizer.json
new file mode 100644
index 0000000000000000000000000000000000000000..5520bfd2dd834ce386c1312c410fa71af56db5ad
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/tokenizer.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
+size 19989325
diff --git a/models/9b_s3_1600h_gs6760/tokenizer_config.json b/models/9b_s3_1600h_gs6760/tokenizer_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d134cd298be1e3be25db393d93a1cefe80e3214
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/tokenizer_config.json
@@ -0,0 +1,33 @@
+{
+ "add_prefix_space": false,
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "backend": "tokenizers",
+ "bos_token": null,
+ "clean_up_tokenization_spaces": false,
+ "eos_token": "<|im_end|>",
+ "errors": "replace",
+ "image_token": "<|image_pad|>",
+ "is_local": true,
+ "local_files_only": false,
+ "model_max_length": 262144,
+ "model_specific_special_tokens": {
+ "audio_bos_token": "<|audio_start|>",
+ "audio_eos_token": "<|audio_end|>",
+ "audio_token": "<|audio_pad|>",
+ "image_token": "<|image_pad|>",
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+ },
+ "pad_token": "<|endoftext|>",
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
+ "processor_class": "Qwen3VLProcessor",
+ "split_special_tokens": false,
+ "tokenizer_class": "Qwen2Tokenizer",
+ "unk_token": null,
+ "video_token": "<|video_pad|>",
+ "vision_bos_token": "<|vision_start|>",
+ "vision_eos_token": "<|vision_end|>"
+}
diff --git a/models/9b_s3_1600h_gs6760/video_preprocessor_config.json b/models/9b_s3_1600h_gs6760/video_preprocessor_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ba673a5ad7d4d13f54155ecd38b2a94a6dac8fe
--- /dev/null
+++ b/models/9b_s3_1600h_gs6760/video_preprocessor_config.json
@@ -0,0 +1,21 @@
+{
+ "size": {
+ "longest_edge": 25165824,
+ "shortest_edge": 4096
+ },
+ "patch_size": 16,
+ "temporal_patch_size": 2,
+ "merge_size": 2,
+ "image_mean": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "image_std": [
+ 0.5,
+ 0.5,
+ 0.5
+ ],
+ "processor_class": "Qwen3VLProcessor",
+ "video_processor_type": "Qwen3VLVideoProcessor"
+}
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000000000000000000000000000000000000..425194e889243e8430493968e6d519b62a7df324
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,8 @@
+# Core client (gamescaling/): talks to any OpenAI-compatible server.
+requests>=2.31
+Pillow>=10.0
+
+# ViZDoom suite (integrations/vizdoom):
+# pip install vizdoom==1.2.4
+# Serving the checkpoint (separate environment is fine):
+# pip install "vllm>=0.17" # Qwen3.5 architecture; tested with 0.17.0
diff --git a/scripts/serve_vllm.sh b/scripts/serve_vllm.sh
new file mode 100644
index 0000000000000000000000000000000000000000..081210d47422700a09beb0f6000db43cd0ad60ec
--- /dev/null
+++ b/scripts/serve_vllm.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# Serve a GameScaling checkpoint with vLLM's OpenAI-compatible server.
+# bash scripts/serve_vllm.sh /path/to/checkpoint [port] [tensor_parallel]
+# The clients in this repository expect --served-model-name gamescaling.
+set -euo pipefail
+CKPT="${1:?usage: serve_vllm.sh CKPT [PORT] [TP]}"
+PORT="${2:-8000}"
+TP="${3:-1}"
+
+# 32k context holds the system prompt + 5 history frames + the reasoning budget;
+# 8 images = 5 history frames + the current one, with headroom.
+exec vllm serve "$CKPT" \
+ --served-model-name gamescaling \
+ --port "$PORT" \
+ --tensor-parallel-size "$TP" \
+ --dtype bfloat16 \
+ --max-model-len 32768 \
+ --limit-mm-per-prompt '{"image": 8}' \
+ --gpu-memory-utilization "${GPU_MEM_UTIL:-0.85}" \
+ --trust-remote-code
diff --git a/tests/test_core.py b/tests/test_core.py
new file mode 100644
index 0000000000000000000000000000000000000000..1cee633f8cea5e8f0425246e741c788d52bde7aa
--- /dev/null
+++ b/tests/test_core.py
@@ -0,0 +1,114 @@
+"""Offline tests: no model server, no game. `python -m pytest tests` or `python tests/test_core.py`."""
+
+import os
+import sys
+
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+from PIL import Image # noqa: E402
+
+from gamescaling import ( # noqa: E402
+ NOOP_ACTION_TEXT,
+ PolicyConfig,
+ build_gameworld_system_prompt,
+ build_request,
+ build_system_prompt,
+ finalize,
+ parse_action,
+ translate_controls,
+)
+from gamescaling.policy import encode_image # noqa: E402
+
+
+def test_parse_tagged_chunk():
+ a = parse_action("\n\n\n\n<|action_start|>120 -40 0 ; W ; W LB ; ; Shift W ; ; one<|action_end|>")
+ assert a.parsed and not a.truncated
+ assert a.mouse == (120.0, -40.0, 0.0)
+ assert a.steps == [["W"], ["W", "LB"], [], ["Shift", "W"], [], ["one"]]
+ assert a.history_text == "<|action_start|>120 -40 0 ; W ; W LB ; ; Shift W ; ; one<|action_end|>"
+
+
+def test_action_is_read_after_think_only():
+ quoted = "the format is <|action_start|>X Y Z ; k1 ; ; ; ; ; <|action_end|> so"
+ a = parse_action(quoted + "<|action_start|>5 0 0 ; D ; D ; ; ; ; <|action_end|>")
+ assert a.parsed and a.mouse[0] == 5.0 and a.steps[0] == ["D"]
+
+
+def test_unclosed_think_is_truncated_noop():
+ a = parse_action("I should move towards the <|action_start|>0 0 0 ; W")
+ assert not a.parsed and a.truncated and a.is_noop
+ assert a.history_text == NOOP_ACTION_TEXT
+
+
+def test_clamp_vocab_and_key_limit():
+ a = parse_action("<|action_start|>5000 -5000 9 ; A B C D E ; Foo W ; ; ; ; <|action_end|>")
+ assert a.mouse == (1000.0, -1000.0, 5.0)
+ assert a.steps[0] == ["A", "B", "C", "D"]
+ assert a.steps[1] == ["W"] and a.dropped == ["Foo"]
+
+
+def test_bare_body_and_placeholders():
+ assert parse_action("10 0 0 ; W ; ; ; ; ;").parsed
+ assert not parse_action("<|action_start|>X Y Z ; k1 ; ; ; ; ; <|action_end|>").parsed
+ assert not parse_action("I see a monster on the left.").parsed
+
+
+def test_lenient_recovers_skeleton():
+ text = "go right\n-5 4 ; D ; D ; D ; D ; D ; D"
+ assert not parse_action(text).parsed
+ a = parse_action(text, lenient=True)
+ assert a.parsed and a.mouse[:2] == (-5.0, 4.0) and a.steps[0] == ["D"]
+
+
+def test_finalize_restores_prefill_and_stop():
+ cfg = PolicyConfig(think_prefill=True)
+ out = finalize("\n\n\n\n<|action_start|>0 0 0 ; W ; ; ; ; ; ", "stop", cfg)
+ assert out.startswith("") and out.endswith("<|action_end|>")
+ assert parse_action(out).steps[0] == ["W"]
+
+
+def test_request_shape():
+ plain = build_request([{"role": "user", "content": "current game screen"}], PolicyConfig())
+ assert plain["messages"][-1]["role"] == "user"
+ assert "continue_final_message" not in plain
+ cfg = PolicyConfig(model="m", think_prefill=True)
+ body = build_request([{"role": "system", "content": "s"}], cfg)
+ assert body["messages"][-1] == {"role": "assistant", "content": ""}
+ assert body["continue_final_message"] and not body["add_generation_prompt"]
+ assert body["stop"] == ["<|action_end|>"] and body["skip_special_tokens"] is False
+ oga = PolicyConfig.preset("omnigamearena")
+ assert oga.image_size == (854, 480) and oga.think_prefill
+ gw = build_request([], PolicyConfig.preset("gameworld"))
+ assert "continue_final_message" not in gw and gw["stop_token_ids"] == [151670]
+
+
+def test_image_encoding():
+ img = Image.new("RGB", (1280, 720))
+ assert encode_image(img, PolicyConfig()).startswith("data:image/jpeg;base64,")
+ assert encode_image(img, PolicyConfig.preset("gameworld")).startswith("data:image/png;base64,")
+
+
+def test_prompt_sections_in_order():
+ p = build_system_prompt("Doom", rules="Kill monsters.", key_bindings={"W": "Forward", "LMB": "Fire"},
+ reasoning=True)
+ order = ["currently playing Doom", "**Game Rules**", "**Common Keys in Doom**", "- LB -> Fire",
+ "**Action only (usual)**", "**Explanation**", "**Key Naming Rules**"]
+ idx = [p.index(s) for s in order]
+ assert idx == sorted(idx)
+ gw = build_gameworld_system_prompt("2048", rules="Merge tiles.", controls="Use the arrow keys.",
+ task="Reach 256.")
+ assert "\n\n**Game Rules**\nMerge tiles.\n\n**Role and Controls**\n" in gw
+ assert "**Action only" not in gw
+
+
+def test_translate_controls():
+ text = "- ArrowLeft: move left\n- a/d: strafe\n- 1-9: pick item\nPress Escape to pause."
+ out = translate_controls(text)
+ assert "- Left: move left" in out and "A/D" in out and "one-nine:" in out and "Esc to pause" in out
+
+
+if __name__ == "__main__":
+ tests = [f for name, f in sorted(globals().items()) if name.startswith("test_")]
+ for t in tests:
+ t()
+ print(f"{len(tests)} tests passed")