CoolFace
Modelpublic

vrfai/Cosmos-Reason2-8B-NVFP4

sourceHugging Faceotherupdated 4mo agoView on Hugging Face
2likes159downloads
Model Card

Cosmos-Reason2-8B-NVFP4

NVFP4 quantized version of nvidia/Cosmos-Reason2-8B by vrfai using llm-compressor.

License: This model inherits the NVIDIA Open Model License from the base model. Commercial use and derivative models are permitted under its terms.

NVFP4 Quantization Details

Base modelnvidia/Cosmos-Reason2-8B
QuantizationNVFP4 — weights FP4, activations FP4 (dynamic local), scales FP8
Formatcompressed-tensors (native vLLM support)
Toolvllm-project/llm-compressor
Model size<17 GB> → <7.1 GB> (~58% reduction)
RequiresNVIDIA Blackwell GPU (SM 120+), vLLM ≥ 0.19

What's Quantized / What's Not

ComponentPrecisionReason
All LLM layers — FFN + attention projections (36 layers)NVFP4Standard transformer, stable under 4-bit
Vision encoder — all 27 blocks + mergerBF16Preserved for visual perception quality
DeepStack merger list (3×)BF16Multi-scale visual fusion, sensitive to precision
lm_headBF16Output logits preserved for generation stability

Quantization Config (llm-compressor)

yaml
# recipe.yaml
QuantizationModifier:
  targets: [Linear]
  scheme: NVFP4
  ignore:
    - lm_head
    # Vision encoder — 27 blocks (attn + mlp) + merger
    - re:model\.visual\.blocks\.\d+\..*
    - model.visual.merger.linear_fc1
    - model.visual.merger.linear_fc2
    # DeepStack multi-scale merger
    - re:model\.visual\.deepstack_merger_list\.\d+\..*

Quick Start (vLLM)

bash
vllm serve vrfai/Cosmos-Reason2-8B-NVFP4 \
  --max-model-len 8192

Python (Transformers)

python
from transformers import Qwen3VLForConditionalGeneration, AutoTokenizer

model_name = "vrfai/Cosmos-Reason2-8B-NVFP4"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = Qwen3VLForConditionalGeneration.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)

OpenAI-compatible API

python
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
response = client.chat.completions.create(
    model="vrfai/Cosmos-Reason2-8B-NVFP4",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "image_url", "image_url": {"url": "https://..."}},
                {"type": "text", "text": "Describe the physical interaction in this scene."}
            ]
        }
    ],
    temperature=0.7,
    max_tokens=512,
)
print(response.choices[0].message.content)

Tested Environment

ComponentVersion
vLLM0.19.1
Transformers5.6.0
PyTorch2.10.0+cu128
CUDA12.8 (nvcc 12.8.61)
llm-compressorcompressed-tensors 0.14.0.1
GPU1× NVIDIA RTX 5090

Model Overview

Cosmos-Reason2-8B is a vision-language model developed by NVIDIA for Physical AI reasoning — understanding physical common sense and embodied interactions from video and image inputs.

ArchitectureQwen3VLForConditionalGeneration
Parameters~8B
Hidden size4096
Layers36 (standard GQA transformer)
Attention heads32 Q / 8 KV
Vision encoder depth27 blocks (DeepStack-enhanced)
Context length262,144 tokens
Input modalitiesText, image, video

Quality Benchmarks

For benchmark results see the Physical AI Bench Leaderboard and the base model card.


Ethical Considerations & Safety

This section is reproduced from the base model card and applies equally to this quantized derivative.

This model is intended for Physical AI developers working on embodied reasoning tasks. Users are responsible for model inputs and outputs, including implementing appropriate guardrails prior to deployment.

Safety note: Because this model is designed for robot planning and can serve as a VLA backbone, its outputs may directly influence physical actuation. Planning errors or misinterpretations carry inherent life-safety risks, including physical collisions or unsafe object manipulation.

Please report security vulnerabilities or NVIDIA AI concerns here.


Credits

Quantization Script

The recipes and scripts used to quantize this model can be found in the following repository: