Downloads · 30 days
24
26% of all-time downloads
prithivMLmods/Spatial-SSRL-Qwen3VL-4B-FP8
Spatial-SSRL-Qwen3VL-4B-FP8 is a image-text-to-text model from prithivMLmods. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
24
26% of all-time downloads
All-time downloads
94
Public
Parameters
4.4B
6.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.9 GB · 100%
How the weights are stored.
F8_E4M33.6B · 82%
From the Hugging Face model README

Spatial-SSRL-Qwen3VL-4B-FP8 is an FP8-compressed variant built on top of internlm/Spatial-SSRL-Qwen3VL-4B. This edition applies BF16 · FP8 (F8_E4M3) precision formats to reduce memory footprint and increase inference throughput, while preserving the spatial reasoning and multimodal understanding strengths of the original 4B architecture.
The base Spatial-SSRL-Qwen3VL-4B model is a spatially enhanced vision-language model built upon Qwen3-VL-4B-Instruct. It integrates Spatial-SSRL, a lightweight self-supervised reinforcement learning paradigm designed to scale RLVR efficiently. The model demonstrates strong spatial intelligence while maintaining the original general visual capabilities of its base architecture.
[!important] FP8 (8-bit floating point) weight and activation quantization using hardware acceleration on GPUs – FP8 W8A8. Quantization W8A8 FP8-dynamic recipe – examples.
Spatial-SSRL is a lightweight, tool-free framework naturally compatible with the RLVR training paradigm and easy to extend to a wide range of pretext tasks.
The framework currently formulates five spatially oriented tasks, requiring only standard RGB or RGB-D images. It is modular and extensible, enabling the research community to introduce new spatial pretext objectives that further strengthen large vision-language models.
We welcome contributions to expand Spatial-SSRL with effective spatial reasoning tasks that enhance LVLM capabilities.
from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info
import torch
# Load the Spatial SSRL Qwen3VL 4B FP8 model
model = Qwen3VLForConditionalGeneration.from_pretrained(
"internlm/Spatial-SSRL-Qwen3VL-4B-FP8",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained(
"internlm/Spatial-SSRL-Qwen3VL-4B-FP8"
)
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": "sample_image.png",
},
{
"type": "text",
"text": "Describe spatial relationships between objects and explain their relative positions."
},
],
}
]
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
text=[text],
images=image_inputs,
videos=video_inputs,
padding=True,
return_tensors="pt",
).to("cuda")
generated_ids = model.generate(**inputs, max_new_tokens=1024)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False
)
print(output_text)
Note: This model focuses on spatial reasoning and multimodal understanding.