rskill-qwen35_4b-any-general
Runs open at bf16; the
int4(NF4) variant needs OpenRAL Pro. The default loads the pinned upstream checkpoint (weights_uri) at bf16. With the OpenRAL Pro quantization package installed, theint4variant (pro_default, ADR-0139) loads its pre-quantized NF4 pack fromquantization.variants.int4.weights_uri. Under ADR-0123, open-source OpenRAL loads only fp32, fp16 and bf16 weights; quantized formats (int8, fp8, int4/NF4, nvfp4) need OpenRAL Pro.
OpenRAL rSkill β Qwen3.5-4B natively-multimodal video-language model packaged as an NF4 bitsandbytes
vlmrSkill. Accepts RGB image or video frames plus a natural-language query; returns a text answer. No actuators. Apache-2.0.
Preview
Real answer of this skill's QwenSceneVlm (built by build_scene_vlm from this manifest; the NF4 int4 variant's checkpoint, bf16 compute, CUDA sidecar with thinking on, 3.3 GB VRAM, ~22 s for this query) to the prompt shown, on a LIBERO libero_object sim frame (rskills/smolvla-libero/media/libero-object_success_start.jpg, 480Γ480). The text is verbatim; the basket is empty in this frame.
Quick Start
openral rskill install OpenRAL/rskill-qwen35_4b-any-general
from openral_core.schemas import RSkillManifest
manifest = RSkillManifest.from_yaml("rskills/qwen35-4b-nf4/rskill.yaml")
assert manifest.kind == "vlm"
assert manifest.role == "s2"
assert manifest.quantization.extra["scheme"] == "nf4"
assert manifest.is_commercial_use_allowed is True
What It Does
Qwen3.5-4B is a natively-multimodal foundation model trained from scratch on interleaved text, image, and video tokens. Given an RGB image or video clip and a natural-language question, it returns a free-form text answer grounded in the visual content.
It is kind: vlm, role: s2: a pure perception component at S2
(slow-reasoning) rate (~0.2β1 Hz), not an S1 fast policy. It emits text answers
and never drives ros2_control joints.
Representative queries for robot scene understanding:
- "What objects are on the table?"
- "Is the gripper clear of obstacles?"
- "Describe the relative positions of the cup and bowl."
- "Has the pick-and-place task completed?"
Why Qwen3.5-4B over Qwen2.5-VL-7B
| Qwen3.5-4B (this skill) | Qwen2.5-VL-7B | |
|---|---|---|
| Parameters | 4B | 7B |
| VideoMME (w/ subs.) | 83.5% | ~72% |
| MLVU | 82.8% | ~73% |
| VRAM at NF4 | 2.5 GB declared (min_vram_gb.int4), ~3.3 GB measured resident |
β |
| VRAM at BF16 | ~8 GB | ~13 GB |
| Architecture | Hybrid linear-attn (3:1) | Full quadratic ViT+LLM |
| License | Apache-2.0 | Apache-2.0 |
Qwen3.5-4B beats Qwen2.5-VL-7B on every video benchmark despite being 3B smaller, and its hybrid attention handles long video sequences (continuous robot camera streams) far more efficiently. At NF4 it fits within 8 GB VRAM alongside the S1 skill stack.
Architecture
Qwen3.5 uses a 3:1 hybrid attention stack: three Gated DeltaNet (linear-attention, O(n)) layers per full-attention layer, cutting cost on long sequences. The vision encoder is shared with Qwen3-VL. Key features:
- Native video support β temporal patch embedding, second-level event localization, up to 256K context (extensible to 1M)
- Spatial grounding β RefCOCO avg ~80.6; strong for "where is X?" queries
- 201-language support
Runtime
The default (quantization.dtype: bf16) loads the SHA-pinned upstream
Qwen/Qwen3.5-4B (weights_uri, also source_repo) at bf16: 9.3 GB of weights,
so a GPU with at least 12 GB. Its 3.3 GB resident, no bf16 load spike),
so it fits an 8 GB GPU with no loader workaround (provenance, CLAUDE.md Β§1.8).int4 variant (OpenRAL Pro's pro_default,
ADR-0139) is a pre-quantized NF4 checkpoint at its own pinned weights_uri
(hf://OpenRAL/rskill-qwen35_4b-any-general@86d341c): model.safetensors with an
embedded bitsandbytes quantization_config (nf4, double-quant, bf16 compute). The
sidecar loads it directly as 4-bit (
Reproduce the checkpoint with tools/build_qwen_vlm_nf4_checkpoint.py. NF4
needs OpenRAL Pro (ADR-0123): take the quantization config from Pro in the
workspace venv, then build in the sidecar venv:
CFG=$(.venv/bin/python -c 'from openral_rskill.quantization_gate import \
sidecar_quantization_args as a; print(a("nf4", what="the Qwen NF4 build")[1])')
$OPENRAL_QWEN_VLM_SIDECAR_VENV/bin/python tools/build_qwen_vlm_nf4_checkpoint.py \
--source Qwen/Qwen3.5-4B --quantization-config "$CFG" \
--out ~/.cache/openral/qwen35-4b-nf4-ckpt
It loads the upstream model once (serial materialization so the bf16 pass fits 8 GB), saves the NF4 weights + processor, and verifies the checkpoint reloads as 4-bit and answers a smoke query.
The kind: vlm runtime is implemented as a read-only reasoner tool,
not an ExecuteRskill (a scene VLM produces text, not actions):
- Sidecar:
tools/qwen_vlm_sidecar.pyboots the NF4 model in its own venv and serves a ZMQ REQ/REP + msgpack protocol. Provision it separately and point at it withOPENRAL_QWEN_VLM_SIDECAR_VENV(or let the backend auto-spawn it on first query). - Backend:
openral_runner.backends.gstreamer.qwen_scene_vlm.QwenSceneVlmis the node-side ZMQ client;build_scene_vlm(manifest)builds it from this manifest. The node-side client deps (pyzmq + msgpack) install withjust sync --group qwen-vlm. - Service node:
openral_perception_ros.scene_vlm_nodesubscribes the cameras and serves/openral/perception/query_scene(openral_msgs/srv/QueryScene). - Reasoner tool: the LLM sees the read-only
query_scenetool when the reasoner is launched withscene_query_available:=true. It asks open-ended scene-state questions ("has the robot grasped the mug?", "is the task complete?") and the answer feeds the next reasoning tick.
Validated live
The sidecar + backend + query_scene path ran end-to-end on an NVIDIA RTX
4070 Laptop (8 GB): NF4 Qwen3.5-4B loads to ~3.3 GB resident, and real
image queries return correct answers, including task verification ("Has a robot
gripper grasped any object?" β "No", grounded in the frame). Covered by the
GPU-gated tests/unit/test_qwen_scene_vlm.py::test_e2e_query_coco_sample (set
OPENRAL_QWEN_VLM_SIDECAR_VENV).
8 GB load note. The pre-quantized int4 variant loads 4-bit weights
directly (~3.3 GB, ~6 s) with no workaround. The workaround only matters when
quantizing at load from the raw upstream (the build step, or
--model Qwen/Qwen3.5-4B): transformers 5.x's parallel loader materializes
weights in bf16 on-GPU before bitsandbytes quantizes, and the 4-way-concurrent
~7.4 GB transient OOMs an 8 GB card. The sidecar then forces serial
materialization (core_model_loading.GLOBAL_WORKERS = 1) + the
expandable-segments allocator config (PYTORCH_ALLOC_CONF on this sidecar's
torch 2.9.1; PYTORCH_CUDA_ALLOC_CONF was renamed in 2.9); it auto-detects which
path applies and sets the right env var name. The Gated-DeltaNet fast kernels
(fla / causal-conv1d) are optional; without them transformers uses a slower
torch fallback. The model loads via AutoModelForImageTextToText (it registers
as Qwen3_5ForConditionalGeneration).
Benchmark Numbers
Benchmarks below are paper-reported (Qwen team, February 2026); not
reproduced locally, and no eval/*.json ships with this rSkill.
| Benchmark | Qwen3.5-4B | Qwen3.5-9B |
|---|---|---|
| VideoMME (w/ subtitles) | 83.5% | 84.5% |
| VideoMME (w/o subtitles) | 76.9% | 78.4% |
| VideoMMMU | 74.1% | 78.9% |
| MLVU | 82.8% | 84.4% |
| MVBench | 71.2% | 74.4% |
| LVBench | 66.4% | 70.0% |
| MMMU | 77.6% | 78.4% |
| RefCOCO avg | 80.6% | 81.3% |
| LingoQA (driving / spatial) | 74.4% | 80.4% |
Supported robots and embodiments
Embodiment-agnostic: it emits text, never actuator commands, so the only
hardware dependency is an RGB camera stream of at least 336Γ336.
rskill.yaml declares the wildcard embodiment_tags: ["any"], so any robot
with a compatible camera can install it and expose the reasoner's query_scene
tool. It pairs with any S1 VLA policy:
the VLA acts, this VLM verifies (e.g. "did the grasp succeed?").
Sensors and Observation Contract
| Direction | Key | Modality | Shape / format | Notes |
|---|---|---|---|---|
| in | any RGB camera | RGB image or video | min 336 Γ 336 | vla_feature_key intentionally omitted |
| in | query | text | natural language | scene question, grounding query, or task-completion check |
| out | answer | text | free-form | grounded text response; returned as QueryScene.answer |
The model emits no action chunks and has no proprioception contract.
Manifest Summary
| Field | Value |
|---|---|
name |
OpenRAL/rskill-qwen35_4b-any-general |
version |
0.1.0 |
license |
apache-2.0 |
role / kind |
s2 / vlm |
runtime |
pytorch |
quantization.dtype |
bf16 (variant int4, pro_default) |
quantization.extra.scheme |
nf4 |
weights_uri |
hf://Qwen/Qwen3.5-4B@851bf6e (upstream, bf16); int4 variant: hf://OpenRAL/rskill-qwen35_4b-any-general@86d341c (pre-quantized NF4) |
min_vram_gb.bf16 |
8.0 GB |
min_vram_gb.int4 |
2.5 GB |
latency_budget.per_chunk_ms |
3000 ms |
actions |
query |
License
The rSkill package metadata and README are OpenRAL project files under
Apache-2.0. The wrapped Qwen3.5 weights are released by the Qwen Team under
Apache-2.0, permitting commercial use. No OPENRAL_ALLOW_NONCOMMERCIAL=1
flag is needed.
