---
title: Qwen3.5-0.8B-GDN2-Spatial
canonical_url: "https://www.modelscope.cn/models/tysgydk/Qwen3.5-0.8B-GDN2-Spatial"
md_url: "https://www.modelscope.cn/models/tysgydk/Qwen3.5-0.8B-GDN2-Spatial.md"
repository: tysgydk/Qwen3.5-0.8B-GDN2-Spatial
last_updated: 2026-09-19
license: apache-2.0
pipeline_tag: image-text-to-text
tasks:
  - image-text-to-text
model_type:
  - qwen3_5_gdn2
architectures:
  - Qwen35GDN2ForConditionalGeneration
base_model:
  - Qwen/Qwen3.5-0.8B
base_model_relation: finetune
parameters: 965.7M
tensor_type:
  - F32
  - BF16
library_name:
  - transformer
  - safetensors
  - pytorch
frameworks:
  - Pytorch
downloads: 74
stars: 0
tags:
  - gated-delta-net
  - gdn2
  - linear-attention
  - multimodal
  - spatial-reasoning
---

# Qwen3.5-0.8B-GDN2-Spatial

> Qwen3.5-0.8B-GDN2-Spatial - tysgydk 在 ModelScope 开源的模型。Qwen3.5-0.8B-GDN2-Spatial

tysgydk/Qwen3.5-0.8B-GDN2-Spatial 是 ModelScope 魔搭社区上的 965.7M 参数image-text-to-text模型，采用 apache-2.0 许可，基于 Qwen/Qwen3.5-0.8B 构建。

- **Repository**: tysgydk/Qwen3.5-0.8B-GDN2-Spatial
- **License**: apache-2.0
- **Tasks**: image-text-to-text
- **Parameters**: 965.7M
- **Base model**: Qwen/Qwen3.5-0.8B
- **Tags**: gated-delta-net, gdn2, linear-attention, multimodal, spatial-reasoning
- **Downloads**: 74
- **Stars**: 0
- **Last updated**: 2026-09-19

Source: https://www.modelscope.cn/models/tysgydk/Qwen3.5-0.8B-GDN2-Spatial

---

# Qwen3.5-0.8B-GDN2-Spatial

**v3.1 = v3 + 多选格式抛光（MC-format polish）。** 本次为权重热更新
（xview_k1 → xview_k1_mc3），架构与使用方式不变。

**v3.1 = v3 + an MC-format polish.** This is a weight hot-update
(xview_k1 → xview_k1_mc3); architecture and usage are unchanged.

**v3 = [GDN2 v2](https://modelscope.cn/models/tysgydk/Qwen3.5-0.8B-GDN2) 主干 +
多点空间状态模块（S_spatial）。** 在 GDN2 改造之上，本权重增加了一个槽位注意力
场景状态（32 槽位 × 512 维）：从视觉塔 patch 特征构建，用 2.5D 世界坐标监督
（像素 xy + 绝对深度，经相机位姿反投影），以**只读**方式注入语言模型——
每一层全注意力之后（6 个注入点）加最终隐状态（1 个点），各走一个独立的
门控交叉注意力读取。

**v3 = [GDN2 v2](https://modelscope.cn/models/tysgydk/Qwen3.5-0.8B-GDN2) backbone + a
multi-point spatial state module (S_spatial).** On top of the GDN2 conversion, this
checkpoint adds a slot-attention scene state (32 slots × 512 dims) built from
vision-tower patch features, supervised with 2.5D world coordinates (pixel xy +
absolute depth, back-projected through camera pose), and injected **read-only** into
the language model after every full-attention layer (6 points) plus the final hidden
state (1 point), each through its own gated cross-attention read.

设计意图：给语言模型一个持久的、可查询的空间工作区，让遮挡推理、相对深度、
跨视角同一性从"一次前向的推断"变成"对工作区的读操作"。

The design intent: give the LM a persistent, query-able spatial workspace so that
occlusion reasoning, relative depth, and cross-view identity become *read operations*
instead of single-pass inferences.

## 使用方法 | Usage

主干与 v2 完全一致。空间通路是可选附加件，随仓库提供
`spatial_runtime.py` + `spatial.safetensors`：

The backbone works exactly like v2. The spatial pathway is an opt-in add-on shipped
as `spatial_runtime.py` + `spatial.safetensors` in this repo:

```python
import sys, torch
from modelscope import snapshot_download
d = snapshot_download('tysgydk/Qwen3.5-0.8B-GDN2-Spatial')
sys.path.insert(0, d)

from transformers import AutoModelForImageTextToText, AutoProcessor
from spatial_runtime import attach_spatial

model = AutoModelForImageTextToText.from_pretrained(
    d, trust_remote_code=True, dtype=torch.bfloat16, device_map="cuda")
processor = AutoProcessor.from_pretrained(d, trust_remote_code=True)

hook = attach_spatial(model, f"{d}/spatial.safetensors")   # 7 个门控注入点 / 7 gated injection points
hook.build_slots(inputs["pixel_values"], inputs["image_grid_thw"], batch_size)
out = model.generate(**inputs)
hook.clear()   # 不构建槽位 / clear 之后 => 行为与 v2 完全一致 / no slots built or after clear() => behaves exactly like v2
```

环境要求：`transformers >= 5.17`、`flash-linear-attention >= 0.5.2`。

Requirements: `transformers >= 5.17`, `flash-linear-attention >= 0.5.2`.

## 为什么必须多点注入 | Why multi-point injection

单点注入（仅最终层）实测**三次**零边际——模型"快想完了"才给参考资料没有用。
多点注入才解锁能力。同检查点消融（空间钩子开/关，骨干权重完全相同，
合成遮挡基准，n=600）：

Single-point injection (final layer only) was measured **three times** at zero
marginal gain — handing the model reference material after it has already "finished
thinking" does not work. Multi-point injection unlocks it. Same-checkpoint ablation
(spatial hook on/off, identical backbone weights, synthetic occlusion benchmark,
n=600):

| 题型 Task type | 开注入 hook ON | 关注入 hook OFF |
|---|---|---|
| 遮挡 2 跳 occlusion 2-hop | **62%** | 28% |
| 遮挡 occlusion | **67%** | 45% |
| 隐藏物体 hidden object | **53%** | 35% |
| 距离判断 distance judge | **61%** | 36% |
| 更近/最远 closer / farthest | **86% / 58%** | 72% / 45% |

注意读取门控很小（tanh ≈ ±0.01）但起决定性作用——小门控 × 大幅度读取向量
足矣。跨视角完全遮挡题（被问物体在当前视角不可见）：**12% → 76%**。

Note the read gates are small (tanh ≈ ±0.01) yet decisive — a small gate times a
large-magnitude read vector is enough. Cross-view full-occlusion questions
(object invisible in the queried view): **12% → 76%**.

## 真实照片迁移（BLINK val）| Real-photo transfer (BLINK val)

| 子任务 Subtask | 基线 base | v3.1（本模型）v3.1 (this) |
|---|---|---|
| 相对深度 Relative depth | 51.6% | **55.6%** † |
| 多视角推理 Multi-view reasoning | 0%* | **44.4%** |
| 目标定位 Object localization | ~47.5% | **52.5%** |
| 视觉对应 Visual correspondence | 39.5% | 29.7% ⚠️ |
| 空间关系 Spatial relation | 53.8% | 53.1% |
| **总计 TOTAL** | **39.6%** | **46.0%** |

\* 基线根本无法解析双图格式。† v3 旧值 61.3% 见下节说明。
\* base cannot parse the two-image format at all. † The v3 value of 61.3% is
explained in the next section.

几何级空间能力可迁移到真实照片；空间关系在 v3.1 中回到基线水平（53.1% ≈
53.8%）。视觉对应（VC）仍是已知短板，见下节与"已知限制"。

Geometric spatial skills transfer to real photos; spatial relation returns to
baseline level in v3.1 (53.1% ≈ 53.8%). Visual correspondence (VC) remains a known
weakness — see the next section and "Known limitations".

## 格式伪影与 v3.1 抛光 | Format artifact and the v3.1 polish

v3 初版在多选基准上的部分低分是**格式伪影**而非真实能力：模型以自由文本作答
而非输出选项字母。例如空间关系（SR）按内容判分实为 53.8%——等于基线，
27.3% 的字母判分低值是格式造成的；视觉对应（VC）上模型则退化为恒选 (A)。

Part of v3's low scores on multiple-choice benchmarks was a **format artifact**,
not true capability: the model answered in free text instead of emitting the option
letter. For example, spatial relation (SR) scored 53.8% by content — equal to
baseline; the 27.3% letter-graded low was format-induced. On visual correspondence
(VC) the model degenerated to always answering (A).

根因：空间训练数据中多选格式出现 **0 次**，字母应答行为在训练中被侵蚀——
一种格式层面的灾难性遗忘。

Root cause: the multiple-choice format appeared **0 times** in the spatial training
data, so letter-answering behavior eroded during training — a format-level
catastrophic forgetting.

v3.1 的修复是**配对格式抛光**：同一道题的自由格式与多选格式成对训练，
金标字母均匀分布。权重标识 xview_k1 → xview_k1_mc3。

The v3.1 fix is a **paired-format polish**: each question is trained in both its
free-form and multiple-choice variants as a pair, with gold letters uniformly
distributed. Weight tag: xview_k1 → xview_k1_mc3.

代价如实说明：合成遮挡基准部分题型回退约 5~10 点（n=300 快测口径：
occlude_2hop 62% → 52%，xview_side 79% → 68%）。通用能力回归在同族权重
（R1）上无损：TextVQA 63.7、语言评测 loss（96 条留出集）1.772、合成属性任务
39/40；**v3.1 本权重实测回归通过，数值与 R1 完全一致**。

The cost, stated plainly: some synthetic-occlusion task types regressed by roughly
5–10 points (n=300 quick-test protocol: occlude_2hop 62% → 52%, xview_side
79% → 68%). General-capability regression is clean on the sibling (R1) weights:
TextVQA 63.7, language eval loss (96-sample holdout) 1.772, synthetic attribute
task 39/40; **regression on the v3.1 weights themselves is measured clean,
with values identical to R1**.

VC 恒选 (A) 的问题在 v3.1 中**未解决**——这疑似真实能力短板而非格式问题，
留给后续版本。

The VC always-(A) degeneration is **not fixed** in v3.1 — it is suspected to be a
true capability gap rather than a format issue, and is left for a future release.

## 通用能力回归检查 | General-capability regression check

| 基准 Benchmark | v2 发布版 v2 release | v3.1（本模型）v3.1 (this) |
|---|---|---|
| TextVQA val 512（精确/宽松）/ TextVQA val 512 (exact / soft) | 63.3% / 73.6% | **63.7% / 74.0%** |
| 语言评测 loss（96 条留出集）/ Language eval loss (96-sample holdout) | 1.776 | **1.772** |
| 合成属性任务 Synthetic attribute task | 39/40 | 39/40 |

注：上表 v3.1 列为本权重实测值，与同族 R1 权重的回归值一致（TextVQA
63.7 / loss 1.772 / 属性任务 39/40）。

Note: the v3.1 column above is measured on this checkpoint; it matches the
sibling R1 weights' regression values (TextVQA 63.7 / loss 1.772 / attribute
task 39/40).

通用能力零税：不构建槽位或纯文本输入时，空间通路完全惰性。

No tax on general ability: with no slots built, or text-only input, the spatial
pathway is inert.

## 训练配方（空间阶段）| Training recipe (spatial stage)

- 数据：合成真 3D 世界（`world3d`，多物体桌面场景，相机位姿已知），
  多跳遮挡问答 + 跨视角问答 + 槽位 xyz 监督；v3.1 追加多选格式抛光数据
  （自由格式 + 多选格式成对，金标字母均匀分布）。
- Data: synthetic true-3D worlds (`world3d`, multi-object tabletop scenes, camera
  poses known), multi-hop occlusion QA + cross-view QA + slot xyz supervision;
  v3.1 adds MC-format polish data (free-form + multiple-choice pairs, gold
  letters uniformly distributed).
- 目标：问答交叉熵 + 槽位 xyz MSE（注意力加权、免匹配）+ 语言回放。
- Objectives: QA cross-entropy + slot xyz MSE (attn-weighted, assignment-free)
  + language replay.
- 联合阶段：GDN2 层、注意力、MLP 与模块一起解冻训练。
- Joint phase: GDN2 layers, attention, MLPs unfrozen together with the module.
- 全部空间组件零初始化门控：初始时模型与 v2 逐位一致。
- All spatial components zero-init gated: at init the model is bit-identical to v2.

## 已知限制 | Known limitations

- 0.8B 研究型模型；空间模块在合成场景上训练。
- 0.8B research model; spatial module trained on synthetic scenes.
- 视觉对应（VC）：v3.1 中恒选 (A) 的选项退化**未修复**，疑似真实能力短板，
  留给后续版本（v3 曾归因于格式伪影，v3.1 修正该判断）。
- Visual correspondence (VC): the always-(A) option degeneration is **not fixed**
  in v3.1 and is suspected to be a true capability gap, left for a future release
  (v3 attributed it to a format artifact; v3.1 corrects that assessment).
- 多选格式抛光对合成遮挡基准部分题型有约 5~10 点的代价（见上节）。
- The MC-format polish costs roughly 5–10 points on some synthetic-occlusion task
  types (see above).
- 思考模式（`enable_thinking=True`）：0.8B 基底从未学会闭合 `<think>` 块
  （已验证：原版基底行为完全相同）。请使用默认的非思考模式。
- Thinking mode (`enable_thinking=True`): the 0.8B base never learned to close
  `<think>` blocks (verified: original base behaves identically). Use the default
  non-thinking mode.
- 槽位预算 32 个；更密集的场景未测试。
- Slot budget is 32; scenes denser than that were not tested.

## 引用 | Citation

基于千问 3.5（Apache-2.0）和 FLA 的 GatedDeltaNet2 构建。使用本权重请引用
千问与 FLA/GDN 的原始论文。

Built on Qwen3.5 (Apache-2.0) and FLA's GatedDeltaNet2. Please cite the original
Qwen and FLA/GDN papers if you use this checkpoint.
