Gr00tN1d6Config
Unified configuration dataclass for the Gr00tN1d6 model, combining backbone and action head parameters.Model identification
str
default:"'Gr00tN1d6'"
HuggingFace model type identifier
str
default:"'bfloat16'"
Model data type (use bfloat16 for Flash Attention compatibility)
Backbone configuration
str
default:"'nvidia/Eagle-Block2A-2B-v2'"
HuggingFace model name or path for the vision-language backbone
str
default:"'eagle'"
Type of backbone model architecture
str | None
default:"None"
Specific model revision to use from HuggingFace Hub
int
default:"2048"
Dimension of backbone output embeddings (project_to_dim)
bool
default:"False"
Whether to fine-tune the LLM component of the backbone
bool
default:"False"
Whether to fine-tune the visual encoder of the backbone
int
default:"4"
Number of top LLM layers to tune (when tune_llm is True)
int
default:"16"
Which layer to extract features from in the backbone
bool
default:"False"
Whether to reproject vision features to a different dimension
bool
default:"True"
Enable Flash Attention for efficient attention computation
bool
default:"True"
Load backbone weights in bfloat16 precision
bool
default:"True"
Keep trainable backbone parameters in FP32 for numerical stability
bool
default:"False"
Use Eagle-specific collator that allows dynamic image size changes (needed for any-resolution)
Processing parameters
tuple[int, int] | None
default:"None"
Target crop size for images (height, width)
tuple[int, int] | None
default:"None"
Target resize for images before cropping (height, width)
int | None
default:"256"
Resize shortest edge of image to this size
float | None
default:"0.95"
Fraction of image to keep when center cropping
int | None
default:"None"
Maximum rotation angle (in degrees) for data augmentation
dict[str, float] | None
default:"None"
Parameters for color jitter augmentation (brightness, contrast, saturation, hue)
bool
default:"True"
Use Albumentations library for image augmentation (vs torchvision)
bool
default:"True"
Lowercase and remove punctuation from language instructions
bool
default:"False"
Apply sin/cos encoding to state features per-embodiment
bool
default:"False"
Use relative actions instead of absolute actions
Action head dimensions
int
default:"29"
Maximum state dimension across all embodiments (for padding)
int
default:"29"
Maximum action dimension across all embodiments (for padding)
int
default:"16"
Number of future action steps to predict
Hidden dimension for action head MLPs
int
default:"1536"
Embedding dimension for state and action inputs to DiT
Diffusion model architecture
bool
default:"True"
Use AlternateVLDiT (True) or standard DiT (False)
int
default:"2"
Attend to text features every N transformer blocks (for AlternateVLDiT)
dict
Configuration for the DiT transformer:
positional_embeddings: Type of positional embeddings (None for learned)num_layers: Number of transformer layers (32 for N1D6)num_attention_heads: Number of attention heads (32)attention_head_dim: Dimension per attention head (48)norm_type: Normalization type (“ada_norm” for adaptive layer norm)dropout: Dropout probability (0.2)final_dropout: Apply dropout before final layer (True)output_dim: Output dimension (1024)interleave_self_attention: Interleave self-attention and cross-attention (True)
Global architecture parameters
bool
default:"True"
Add learned positional embeddings to action sequences
float
default:"0.2"
Dropout probability for attention layers
bool
default:"True"
Apply layer normalization to vision-language features
int
default:"1024"
Maximum sequence length for positional embeddings
Flow matching parameters
int
default:"4"
Number of denoising steps during inference
float
default:"1.5"
Alpha parameter for Beta distribution noise schedule
float
default:"1.0"
Beta parameter for Beta distribution noise schedule
float
default:"0.999"
Noise scaling factor:
t = (1 - beta_sample) * noise_sint
default:"1000"
Number of discrete timestep buckets for diffusion
Training parameters
bool
default:"True"
Fine-tune state encoder, action encoder, and action decoder
bool
default:"True"
Fine-tune the DiT transformer in the action head
bool
default:"True"
Fine-tune the vision-language layer normalization
float
default:"0.0"
Probability of dropping out state features during training
float
default:"0.0"
Scale of additive Gaussian noise on state features during training
Multi-embodiment parameters
int
default:"32"
Maximum number of embodiments the model can support
Methods
to_filtered_dict
Return a dictionary representation, optionally excluding augmentation parameters.bool
default:"True"
Whether to exclude augmentation-related keys from the dictionary
dict
Dictionary representation of the configuration
to_filtered_json
Return a JSON string representation, optionally excluding augmentation parameters.bool
default:"True"
Whether to exclude augmentation-related keys from the JSON
dict
Additional arguments passed to
json.dumps()str
JSON string representation of the configuration
Configuration from YAML
Configurations are typically loaded from YAML files during training:Model registration
The configuration is automatically registered with the model registry:Saving and loading
Configurations are automatically saved during training:Backward compatibility
The config includes backward compatibility for legacy arguments:See also
- GR00T model class - Main model class using this configuration
- Training configuration - Training-specific configuration
- Data configuration - Data loading and processing configuration