MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

↓ 1 callersMethod_initialize_kv_cache
(self, num_chunks: int)
diffusion/scheduler/longlive_flow_euler_sampler.py:414
↓ 1 callersMethod_initialize_kv_cache
(self, num_chunks: int)
diffusion/longsana/pipeline/sana_inference_interactive_pipeline_long_chunk.py:113
↓ 1 callersMethod_initialize_kv_cache
(self, num_chunks: int)
diffusion/longsana/pipeline/sana_inference_pipeline.py:108
↓ 1 callersMethod_initialize_kv_cache
(self, num_chunks: int)
diffusion/longsana/pipeline/sana_inference_interactive_pipeline.py:129
↓ 1 callersMethod_initialize_models
initialize Sana models
diffusion/longsana/model/ode_regression_sana.py:179
↓ 1 callersMethod_initialize_sana_models
initialize Sana models
diffusion/longsana/model/dmd_sana.py:165
↓ 1 callersFunction_inject_sliced_extras
Inject ``extra`` kwargs into ``kwargs``, slicing temporal dims. Tensors whose temporal axis is longer than ``num_chunk_frames`` are sliced to
diffusion/scheduler/self_forcing_flow_euler_sampler.py:74
↓ 1 callersFunction_invert_SE3
Closed-form inverse of a 4x4 SE(3) batch.
diffusion/model/nets/sana_camctrl_blocks.py:517
↓ 1 callersFunction_kcfg
()
diffusion/model/ops/fused_gdn.py:66
↓ 1 callersFunction_linearize_stage1_ffn_for_nvfp4
(module: nn.Module, *, prefix: str = "")
inference_video_scripts/wm/inference_sana_wm.py:442
↓ 1 callersMethod_load_diffusers_components
(self)
diffusion/refiner/diffusers_ltx2_refiner.py:77
↓ 1 callersFunction_load_font
(size: int)
diffusion/utils/action_overlay.py:133
↓ 1 callersMethod_load_img
(self, path)
tools/metrics/clip-score/clip_score.py:79
↓ 1 callersMethod_load_img
(self, path)
tools/metrics/clip-score/src/clip_score/clip_score.py:107
↓ 1 callersMethod_load_img_from_path
(self, path)
tools/metrics/clip-score/clip_score.py:85
↓ 1 callersMethod_load_modality
(self, path, modality)
tools/metrics/clip-score/clip_score.py:67
↓ 1 callersMethod_load_txt
(self, data)
tools/metrics/clip-score/clip_score.py:74
↓ 1 callersMethod_load_txt
(self, data)
tools/metrics/clip-score/clip_score.py:173
↓ 1 callersMethod_load_txt
(self, path)
tools/metrics/clip-score/src/clip_score/clip_score.py:113
↓ 1 callersMethod_load_txt_from_path
(self, path)
tools/metrics/clip-score/clip_score.py:106
↓ 1 callersMethod_manage_temporal_grouping
Manage temporal grouping state for chunked processing.
diffusion/model/ltx2/causal_vae.py:613
↓ 1 callersMethod_manage_trim_state
Manage trim state for removing temporal padding.
diffusion/model/ltx2/causal_vae.py:748
↓ 1 callersFunction_move_ltx2_video_modules_to
(transformer: nn.Module, device: torch.device | str)
diffusion/refiner/diffusers_ltx2_refiner.py:2597
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
diffusion/model/norms.py:203
↓ 1 callersMethod_norm
(self, x)
diffusion/model/wan/model.py:180
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor.
diffusion/model/nets/fastlinear/modules/nn/norm.py:206
↓ 1 callersFunction_normalised_rotation
Per-frame ``(yaw, pitch)`` in ``[-1, 1]`` with EMA smoothing.
diffusion/utils/action_overlay.py:97
↓ 1 callersMethod_normalize_prompts
normalize the prompts that may be nested (list/tuple) or contain single element tuples to List[str]. rules: - if it is a string, retur
diffusion/longsana/pipeline/sana_inference_interactive_pipeline_long_chunk.py:43
↓ 1 callersMethod_normalize_prompts
normalize the prompts that may be nested (list/tuple) or contain single element tuples to List[str]. rules: - if it is a string, retur
diffusion/longsana/pipeline/sana_inference_interactive_pipeline.py:46
↓ 1 callersMethod_offload_stage1
(self)
inference_video_scripts/wm/inference_sana_wm.py:1157
↓ 1 callersMethod_offload_text_encoder
(self)
inference_video_scripts/wm/inference_sana_wm.py:1170
↓ 1 callersFunction_offload_video_unused_audio_modules
(transformer: nn.Module, device: torch.device | str)
diffusion/refiner/diffusers_ltx2_refiner.py:2561
↓ 1 callersMethod_order_check
(self, str_idx)
diffusion/utils/data_sampler.py:148
↓ 1 callersFunction_pack_camera_conditions
Build raymap + chunk_plucker tensors the model consumes.
inference_video_scripts/wm/inference_sana_wm.py:791
↓ 1 callersFunction_pack_text_embeds
( text_hidden_states: torch.Tensor, sequence_lengths: torch.Tensor, device: str | torch.device,
diffusion/refiner/diffusers_ltx2_refiner.py:1879
↓ 1 callersFunction_parse_action_string
``"w-10,iw-5,none-3"`` → list of per-frame held-key lists.
inference_video_scripts/wm/inference_sana_wm.py:540
↓ 1 callersFunction_patch_imagereward_compat
()
diffusion/post_training/rewards.py:114
↓ 1 callersMethod_patch_model
Monkey-patch ``model.forward_long`` to inject sliced camera tensors.
diffusion/scheduler/self_forcing_flow_euler_sampler.py:319
↓ 1 callersFunction_path_fingerprint
(path: str | Path)
diffusion/refiner/diffusers_ltx2_refiner.py:2299
↓ 1 callersFunction_path_fingerprint
(path: str | Path)
inference_video_scripts/wm/inference_sana_wm.py:175
↓ 1 callersFunction_per_frame_deltas
Return ``(N-1, 3)`` per-frame translation and YXZ-euler rotation (deg).
diffusion/utils/action_overlay.py:57
↓ 1 callersFunction_pick_phase_b_d_splits
Returns (d_splits, nw_override, ns_override, acc_override). `d_splits=1` → use baseline `_phase_b_kernel` with `_CHUNKWISE_TUNING` config. `d
diffusion/model/ops/fused_gdn_chunkwise.py:1084
↓ 1 callersFunction_pixel_chunk_to_cpu_uint8
Convert a decoded pixel chunk ``[-1, 1]`` to a CPU uint8 ``(B,T,H,W,3)``. The float->uint8 conversion and the channel-last permute/contiguous run
inference_video_scripts/wm/streaming_pipeline.py:52
↓ 1 callersFunction_pop_extra_model_kwargs
Pop all keys from ``model_kwargs`` except ``mask`` and ``data_info``. The popped entries are the "extras" (camera tensors, RoPE caches, etc.)
diffusion/scheduler/self_forcing_flow_euler_sampler.py:105
↓ 1 callersFunction_pose_inverse
(p: np.ndarray)
diffusion/utils/action_overlay.py:48
↓ 1 callersFunction_prec_key
(dot_prec: int)
diffusion/model/ops/fused_gdn_chunkwise.py:244
↓ 1 callersFunction_precision_params
(precision: int)
diffusion/model/ops/fused_gdn.py:77
↓ 1 callersMethod_predict_current_x0
( self, *, sink: torch.Tensor, noisy_current: torch.Tensor, prompt_emb
diffusion/refiner/diffusers_ltx2_refiner.py:681
↓ 1 callersMethod_predict_x0_active_block
Forward through the transformer on the ACTIVE BLOCK ONLY and return x0. The active block's Q attends to ``[prefix, current]`` K/V via the
diffusion/refiner/diffusers_ltx2_refiner.py:473
↓ 1 callersMethod_prepare_generator_input
Given a tensor containing the whole ODE sampling trajectories, randomly choose an intermediate timestep and return the latent as well
diffusion/longsana/model/ode_regression_sana.py:275
↓ 1 callersMethod_prepare_self_qkv_fusion
(self)
diffusion/refiner/diffusers_ltx2_refiner.py:226
↓ 1 callersFunction_prepared_module_cache_hash
(payload: dict[str, object])
diffusion/refiner/diffusers_ltx2_refiner.py:2294
↓ 1 callersFunction_prepared_module_cache_hash
(payload: dict[str, object])
inference_video_scripts/wm/inference_sana_wm.py:170
↓ 1 callersFunction_prepared_module_cache_root
()
diffusion/refiner/diffusers_ltx2_refiner.py:2287
↓ 1 callersFunction_prepared_module_cache_root
()
inference_video_scripts/wm/inference_sana_wm.py:163
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
diffusion/model/gaussian_diffusion.py:982
↓ 1 callersMethod_process_first_frame_encoding
Apply special encoding to the first frame, following the logic in _run_generator. Args: frames: frame sequence [batch_si
diffusion/longsana/model/streaming_sana_long.py:84
↓ 1 callersMethod_refine
( self, sana_latent: torch.Tensor, prompt: str, params: GenerationParams,
inference_video_scripts/wm/inference_sana_wm.py:1599
↓ 1 callersMethod_refine_latents_ar
Chunk-causal AR refinement — thin wrapper around ``RefinerChunkRunner``. Implements the canonical ``rf_shifted_sink`` KV-cache contract end-t
diffusion/refiner/diffusers_ltx2_refiner.py:392
↓ 1 callersFunction_refiner_empty_cache_before_capture
()
diffusion/refiner/diffusers_ltx2_refiner.py:2079
↓ 1 callersFunction_refiner_exact_capture_layer_mask
(n_layers: int, *, default_mask: list[bool])
diffusion/refiner/diffusers_ltx2_refiner.py:2045
↓ 1 callersFunction_refiner_fast_kv_capture_mode
()
diffusion/refiner/diffusers_ltx2_refiner.py:1969
↓ 1 callersFunction_refiner_fast_kv_needs_clean_block
(block_idx: int)
diffusion/refiner/diffusers_ltx2_refiner.py:1986
↓ 1 callersFunction_refiner_history_layer_mask
(n_layers: int)
diffusion/refiner/diffusers_ltx2_refiner.py:1998
↓ 1 callersFunction_refiner_profile_enabled
()
diffusion/refiner/diffusers_ltx2_refiner.py:2084
↓ 1 callersFunction_refiner_self_attn_kernel
()
diffusion/refiner/diffusers_ltx2_refiner.py:1678
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
diffusion/model/wan/t5.py:208
↓ 1 callersMethod_release_refiner
(self)
inference_video_scripts/wm/inference_sana_wm.py:1141
↓ 1 callersFunction_resolve_kv_cache_storage_dtype
()
diffusion/refiner/diffusers_ltx2_refiner.py:1958
↓ 1 callersFunction_resolve_launch_config
Returns (prec, dot_prec, state_fp32, num_warps). Uses ``PRECISION_OVERRIDE`` when set; otherwise falls back to ``_kcfg()`` (which picks ``STA
diffusion/model/ops/fused_gdn.py:92
↓ 1 callersFunction_resolve_native_checkpoint_source
(config, native_cfg)
train_scripts/sol_rl/train_sana.py:104
↓ 1 callersMethod_resolve_refiner_root
(self, refiner: RefinerSettings)
inference_video_scripts/wm/inference_sana_wm.py:1133
↓ 1 callersFunction_resolve_streaming_paths
Materialise the five checkpoint paths, fetching from the Hub on first use. With ``--streaming_root`` set we read a LOCAL bundle (back-compat); ot
inference_video_scripts/wm/inference_sana_wm_streaming.py:273
↓ 1 callersFunction_restore_stage1_nvfp4_runtime
(model: nn.Module)
inference_video_scripts/wm/inference_sana_wm.py:346
↓ 1 callersFunction_restore_stripped_pickle_values
(restore: list[tuple[object, object, object, str]])
diffusion/refiner/diffusers_ltx2_refiner.py:2404
↓ 1 callersFunction_restore_stripped_pickle_values
(restore: list[tuple[object, object, object, str]])
inference_video_scripts/wm/inference_sana_wm.py:268
↓ 1 callersFunction_rollout_for_one_prompt
( pipeline, reward_fn, executor, prompt_text, prompt_meta, prompt_embed_single, po
train_scripts/sol_rl/train_flux1.py:246
↓ 1 callersFunction_rollout_for_one_prompt
( rollout_transformer, vae, num_channels, latent_size, reward_fn, executor, prompt
train_scripts/sol_rl/train_sana.py:139
↓ 1 callersFunction_rollout_for_one_prompt
( pipeline, reward_fn, executor, prompt_text, prompt_meta, prompt_embed_single, po
train_scripts/sol_rl/train_sd3.py:253
↓ 1 callersFunction_run_streaming_inference_sequential
Memory-first path: finish stage-1, offload it, then refine/decode.
inference_video_scripts/wm/streaming_pipeline.py:719
↓ 1 callersMethod_sample_stage1
( self, image: Image.Image, prompt: str, camera: dict[str, torch.Tensor],
inference_video_scripts/wm/inference_sana_wm.py:1408
↓ 1 callersMethod_save_prepared_transformer_cache
(self)
diffusion/refiner/diffusers_ltx2_refiner.py:158
↓ 1 callersMethod_save_stage1_prepared_cache
(self, model_path: str | Path)
inference_video_scripts/wm/inference_sana_wm.py:1019
↓ 1 callersFunction_set_bon_combo
( config, reward_name, best_of_n, num_image_per_prompt, n_gpus, grad_steps_per_epoch, rollout_bsz, train_b
configs/sol_rl/sana.py:81
↓ 1 callersFunction_set_bon_combo
( config, reward_name, best_of_n, num_image_per_prompt, n_gpus, grad_steps_per_epoch, rollout_bsz, train_b
configs/sol_rl/flux1.py:66
↓ 1 callersFunction_set_bon_combo
( config, reward_name, best_of_n, num_image_per_prompt, n_gpus, grad_steps_per_epoch, rollout_bsz, train_b
configs/sol_rl/sd3.py:77
↓ 1 callersFunction_set_cross_attention_kv_cache
( transformer: nn.Module, prompt_embeds: torch.Tensor, prompt_attention_mask: torch.Tensor | None,
diffusion/refiner/diffusers_ltx2_refiner.py:1694
↓ 1 callersMethod_setup_visualizer
Initialize the inference pipeline for visualization on CPU, to be moved to GPU only when needed.
diffusion/longsana/trainer/self_forcing_trainer.py:666
↓ 1 callersMethod_should_use_8bit
Determine if a parameter should be quantized to 8bit Rules: 1. linear layers: parameter size > min_8bit_size 2. 1x1 conv laye
diffusion/utils/optimizer.py:523
↓ 1 callersMethod_shuffle_output
Apply pixel shuffle and trim to output.
diffusion/model/ltx2/causal_vae.py:773
↓ 1 callersMethod_sigma_to_t
(self, sigma, log_sigmas)
diffusion/scheduler/sa_solver_diffusers.py:297
↓ 1 callersFunction_stage1_nvfp4_include_patterns
(mode: str)
inference_video_scripts/wm/inference_sana_wm.py:288
↓ 1 callersFunction_stage1_nvfp4_uses_cross_attention
()
inference_video_scripts/wm/inference_sana_wm.py:311
↓ 1 callersFunction_strip_local_callables_for_pickle
Temporarily remove TE init closures that are not used after construction.
diffusion/refiner/diffusers_ltx2_refiner.py:2331
↓ 1 callersFunction_strip_local_callables_for_pickle
(root: object)
inference_video_scripts/wm/inference_sana_wm.py:197
↓ 1 callersFunction_system_cuda_home
Locate a CUDA toolkit with *usable* headers (cuda_runtime.h, nv/target, crt/host_config.h) and an nvcc, returning ``(home, include_dir)``. So
diffusion/model/ops/fused_gdn_chunkwise_cuda.py:700
↓ 1 callersFunction_t5
( name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokenizer_kwargs={
diffusion/model/wan/t5.py:359
↓ 1 callersFunction_te_module_name_variants
(name: str)
diffusion/refiner/diffusers_ltx2_refiner.py:2414
↓ 1 callersMethod_temporal_tiled_decode
Decode with temporal tiling for long videos.
diffusion/model/ltx2/causal_vae.py:2080
↓ 1 callersMethod_temporal_tiled_encode
Encode with temporal tiling for long videos.
diffusion/model/ltx2/causal_vae.py:2049
← previousnext →801–900 of 2,606, ranked by callers