nemo_automodel.components.models.praxis
nemo_automodel.components.models.praxis
Submodules
nemo_automodel.components.models.praxis.action_expertnemo_automodel.components.models.praxis.backbonenemo_automodel.components.models.praxis.confignemo_automodel.components.models.praxis.hubnemo_automodel.components.models.praxis.layersnemo_automodel.components.models.praxis.lora_exportnemo_automodel.components.models.praxis.masksnemo_automodel.components.models.praxis.modelnemo_automodel.components.models.praxis.objectivenemo_automodel.components.models.praxis.parallelizenemo_automodel.components.models.praxis.state_dict_adapter
Package Contents
Classes
Functions
API
The parsed config.json of a Praxis single-arm checkpoint.
Parse and validate a checkpoint config document.
Read and parse <path>/config.json.
Outputs of one denoising step.
Action velocity of shape [batch, K * F, action_patch_dim].
The encoder features the action expert read.
Video velocity of shape [batch, channels, K * F, h, w], None when not decoded.
Bases: HFCheckpointingMixin, Module, MoEFSDPSyncMixin
Video backbone and action expert of a Praxis checkpoint.
The checkpointer’s metadata hook: the consolidated directory carries the source checkpoint’s config.
Denoise one window of K chunks of F latent frames.
Parameters:
Text-encoder states of shape [1, text_tokens, text_dim].
Anchor latent of shape [1, channels, 1, h, w].
Clean copies of chunks 0 .. K-2 of shape [1, channels, (K-1) * F, h, w], or None.
Noised chunks of shape [1, channels, K * F, h, w].
Video flow time per chunk, shape [1, K].
Noised action tokens of shape [1, K * F, action_patch_dim], chunk-major.
Action flow time per chunk, shape [1, K].
Normalized boundary pose per chunk, shape [1, K, proprio_patch_dim].
(encoder anchor, encoder text, encoder video, decoder video) rotary offsets.
Run the decoder tower for the video velocity.
Build the autograd graph through the backbone. False runs it under
torch.no_grad for runs that train only the action expert.
Returns: PraxisOutput
class:PraxisOutput.
Build the model with uninitialized weights on the current default device.
Build the model from a checkpoint directory or its Hugging Face repo.
With a real device the checkpoint tensors are assigned strictly and the model is returned in
eval mode with gradients disabled. With device="meta" only the architecture is built; a
training recipe shards it first and then fills it through the checkpointer
(load_base_model).
Parameters:
Checkpoint directory with config.json, the safetensors
shards and model.safetensors.index.json, or the Hugging Face repo id of one
(runwayml/praxis-1-droid), downloaded to the Hub cache.
Backend selection; defaults to praxis_backend.
Device of the loaded tensors, or "meta" for the architecture alone.
Router load-balancing terms for training (both zero at inference).
Returns: PraxisPolicy
The model; pretrained_path names the checkpoint directory.
The MoE feed-forwards of both towers in module order.
Move the rotary frequency tables to device.
The tables are plain attributes, not buffers, so module casts and sharding leave them alone; they are built once on the CPU and only moved, never recomputed on the accelerator.
Move every router’s selection bias toward balanced expert load (call once per optimizer step).
The backend the Praxis checkpoint runs with: torch linears, flex attention, grouped-GEMM experts.
Parameters:
Token exchange of the routed experts under expert parallelism (distributed.ep_size > 1):
the DTensor all-gather of "torch", or DeepEP, HybridEP or UCCL-EP. Without expert parallelism
the experts run locally whatever the value.