Views
No views yet
| Component | Model | Trainable? |
|---|---|---|
| Vision Encoder | NVIDIA RADIO (ViT-B) | Frozen |
| Language Encoder | NVIDIA Nemotron Nano 9B v2 | Frozen |
| Fusion | Cross-Attention (4 heads) | Trained |
| Action Head | DDPM Diffusion Policy | Trained |
1import torch
2from models import NemotronVLA, load_radio_model, load_nemotron_model, extract_nemotron_embedding
3from huggingface_hub import hf_hub_download
4
5# Download checkpoint
6ckpt_path = hf_hub_download("keivalya/nemotron-vla", "nemotron_vla.pt")
7ckpt = torch.load(ckpt_path, map_location="cuda", weights_only=False)
8
9# Build model
10model = NemotronVLA(**ckpt["config"]).to("cuda")
11model.load_state_dict(ckpt["model_state_dict"])
12model.eval()
13
14# Load RADIO for vision
15radio_model, _ = load_radio_model(device="cuda")
16
17# Encode instruction with Nemotron
18nemotron_model, tokenizer, _ = load_nemotron_model(device="cuda")
19text_emb = extract_nemotron_embedding(nemotron_model, tokenizer, "push the object to the goal")nemotron_vla.pt — model checkpointconfig.json — architecture configmodels.py — model definitionsutils.py — training and evaluation utilitiesenv.py — MetaWorld environment wrappercollect_multitask.py — multi-task data collection