Skip to main content

Gr00tN1d6

The main GR00T model class that combines a vision-language backbone with an action head for flow matching diffusion-based policy learning.

Initialization

Gr00tN1d6Config
required
Model configuration object containing all hyperparameters
dict
default:"{'trust_remote_code': True}"
Dictionary with transformers loading parameters:
  • trust_remote_code: Whether to trust remote code when loading from HuggingFace Hub
  • local_files_only: Whether to only use local files
  • revision: Specific model revision to use
  • cache_dir: Directory to cache downloaded models
  • token: HuggingFace access token for gated models

Loading from pretrained

The recommended way to load a GR00T model is using the AutoModel.from_pretrained method:
During training, transformers parameters are passed from the training config. During inference (e.g., from_pretrained), defaults are used.

Methods

forward

Forward pass through the complete model for training.
dict
required
Dictionary containing:
  • Vision-language inputs (images, text, attention masks)
  • Action inputs (state, action, embodiment_id, action_mask)
BatchFeature
BatchFeature containing:
  • loss: Combined action prediction loss
  • action_loss: Per-timestep action loss
  • action_mask: Mask for valid actions
  • backbone_features: Vision-language embeddings
  • state_features: Encoded state features
Example:

get_action

Generate actions using flow matching diffusion process for inference.
dict
required
Dictionary containing:
  • Vision-language inputs (images, text, attention masks)
  • State and embodiment_id (no ground truth actions needed)
BatchFeature
BatchFeature containing:
  • action_pred: Predicted actions tensor of shape (B, action_horizon, action_dim)
  • backbone_features: Vision-language embeddings
  • state_features: Encoded state features
Example:

prepare_input

Prepare inputs for backbone and action head.
dict
required
Raw input dictionary containing vision-language and action data
Tuple[BatchFeature, BatchFeature]
Tuple of (backbone_inputs, action_inputs) ready for model forward pass

Properties

torch.device
Device where model parameters are located
torch.dtype
Data type of model parameters
Gr00tN1d6Config
Model configuration object

Architecture

The Gr00tN1d6 model consists of two main components:
  1. Backbone (EagleBackbone): Vision-language encoder that processes images and text
    • Uses NVIDIA Eagle vision-language model
    • Configurable layer selection and fine-tuning
    • Optional flash attention for efficiency
  2. Action Head (Gr00tN1d6ActionHead): Flow matching diffusion model for action generation
    • DiT or AlternateVLDiT transformer architecture
    • Embodiment-conditioned MLPs for state/action encoding
    • Beta distribution noise schedule for flow matching
    • Supports multi-embodiment learning (up to 32 embodiments)
Data Flow:

Supported embodiments

The model supports multiple robot embodiments through embodiment-specific projectors:

Training configuration

Control which parts of the model are trainable:

Flow matching diffusion

The action head uses flow matching for action generation: Training:
  1. Sample time t ~ Beta(α=1.5, β=1.0)
  2. Create noisy trajectory: x_t = (1-t) * noise + t * action
  3. Predict velocity: v = action - noise
  4. Minimize MSE: L = ||v_pred - v||²
Inference:
  1. Start with random noise
  2. Iteratively denoise using Euler integration over num_inference_timesteps steps
  3. Return final denoised actions

Model registration

The model is automatically registered with HuggingFace Transformers:

See also