Repository Analysis

Lightricks/LTX-2

Official Python inference and LoRA trainer package for the LTX-2 audio–video generative model.

36.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Lightricks/LTX-2, a Python project with 9,286 GitHub stars. SynthScan v2.0 examined 87,109 lines of code across 387 source files, recording 1863 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 36.1 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

36.1
Adjusted Score
36.1
Raw Score
100%
Time Factor
2026-08-26
Last Push
9.3K
Stars
Python
Language
87.1K
Lines of Code
387
Files
1.9K
Pattern Hits
2026-08-29
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 6MEDIUM 624LOW 1230

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1863 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators614 hits · 1940 pts
SeverityFileLineSnippetContext
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml26# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml28# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml30# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml327# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml329# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml339# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml341# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml351# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml353# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml1# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml3# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml54# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml56# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml112# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml114# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml143# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml145# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml180# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml182# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml203# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml205# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml216# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml218# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml310# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml312# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml371# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml373# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml26# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml28# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml30# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml321# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml323# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml333# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml335# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml345# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml347# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml1# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml3# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml54# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml56# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml107# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml109# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml133# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml135# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml170# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml172# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml193# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml195# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml206# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml208# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml304# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml306# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml365# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml367# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml26# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml28# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml30# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml321# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml323# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml333# -----------------------------------------------------------------------------COMMENT
554 more matches not shown…
Unused Imports487 hits · 455 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py21CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py16CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py33CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py33CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py33CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py34CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py35CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py35CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py36CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py37CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py79CODE
LOWpackages/ltx-trainer/src/ltx_trainer/training_state.py1CODE
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py12CODE
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py12CODE
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py12CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dfr_layout.py3CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/distilled_mgpu.py11CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py5CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/retake.py1CODE
LOW…-pipelines/src/ltx_pipelines/ti2vid_two_stages_mgpu.py10CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py25CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py26CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py27CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py28CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py29CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py30CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py31CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py32CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py33CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py34CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py35CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dubit.py3CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/dfr_pipeline.py3CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dfr_mgpu.py11CODE
LOW…pelines/src/ltx_pipelines/ti2vid_two_stages_hq_mgpu.py13CODE
LOW…ges/ltx-pipelines/src/ltx_pipelines/multigpu/runner.py7CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/controller.py31CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/multigpu/fleet.py9CODE
LOW…tx-pipelines/src/ltx_pipelines/multigpu/tdp_builder.py5CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py12CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py12CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py12CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py12CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py12CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py19CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py20CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py20CODE
LOW…pipelines/src/ltx_pipelines/multigpu/gemma_builders.py15CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/sp_builder.py6CODE
LOW…pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py22CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/_broadcast.py7CODE
LOW…tx-pipelines/src/ltx_pipelines/multigpu/nccl_groups.py3CODE
LOW…x-pipelines/src/ltx_pipelines/multigpu/vae_builders.py5CODE
LOW…lines/src/ltx_pipelines/multigpu/delegating_builder.py6CODE
LOW…pipelines/src/ltx_pipelines/multigpu/weight_tracker.py5CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py1CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py1CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py1CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py1CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py1CODE
427 more matches not shown…
Hyper-Verbose Identifiers287 hits · 280 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/scripts/compute_reference.py169 def media_path_to_reference_path(media_file: Path) -> Path:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py308 def _get_resolution_bucket_for_item(self, media_tensor: torch.Tensor) -> tuple[int, int, int]:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py385def _compute_temporal_subsample_indices(num_frames: int, factor: int) -> list[int]:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1318def compute_scaled_resolution_buckets(CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1377def _build_sharded_dataloader(CODE
LOWpackages/ltx-trainer/scripts/process_captions.py168 def _load_caption_data_from_csv(self) -> dict[str, str]:CODE
LOWpackages/ltx-trainer/scripts/process_captions.py185 def _load_caption_data_from_json(self) -> dict[str, str]:CODE
LOWpackages/ltx-trainer/scripts/process_captions.py206 def _load_caption_data_from_jsonl(self) -> dict[str, str]:CODE
LOWpackages/ltx-trainer/scripts/process_captions.py233def compute_captions_embeddings( # noqa: PLR0913CODE
LOWpackages/ltx-trainer/scripts/process_captions.py376def _build_sharded_dataloader(CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py60 def validate_exactly_one_modality(self) -> "PrefixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py81 def validate_exactly_one_modality(self) -> "SuffixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py106 def validate_exactly_one_modality(self) -> "MaskConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py123 def validate_exactly_one_modality(self) -> "ReferenceConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py196 def validate_frozen_modality_conflicts(self) -> "ValidationSample":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py310def _get_strategy_discriminator(v: dict | TrainingStrategyConfigBase) -> str:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py425 def validate_preprocessed_data_root(cls, v: str) -> str:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py586 def migrate_deprecated_guidance_fields(cls, data: object) -> object:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py640 def validate_reference_videos(cls, v: list[str] | None, info: ValidationInfo) -> list[str] | None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py677 def validate_output_modality_requirements(self) -> "ValidationConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py819 def _validate_data_dirs_exist(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py830 def validate_strategy_compatibility(self) -> "LtxTrainerConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py137def _suppress_accelerate_memory_warnings() -> Generator[None, None, None]:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py351def load_embeddings_processor(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py372 def _encode_conditioning_media(self) -> list[CachedSampleMedia]:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py378 def _cond_needs_video_encoder(cond: object) -> bool:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py383 def _cond_needs_audio_encoder(cond: object) -> bool:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py688 def _apply_video_conditionings(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py184 def _validate_sample_geometry(self) -> None:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py418 def _encode_sample_conditions(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py520 def _encode_temporal_condition_media(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py733 def _apply_audio_conditionings(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py825 def _apply_reference_side_by_side(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1089 def _load_and_downsample_mask(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1217 def _resolve_video_guider_params(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1239 def _resolve_audio_guider_params(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1261 def _modality_from_latent_state(state: LatentState, context: Tensor, sigma: Tensor) -> Modality:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1277 def _build_stg_perturbation_config(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1296 def _build_modality_perturbation_config(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1422def _concatenate_videos_side_by_side(left_video: Tensor, right_video: Tensor) -> Tensor:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/timestep_samplers.py122 def _get_shift_for_sequence_length(CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py451 def _collect_trainable_params(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py619 def _prepare_models_for_training(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py825 def _offloaded_optimizer_state(self) -> Iterator[None]:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py1080 def _build_checkpoint_metadata(self) -> dict[str, str]:CODE
LOW…r/src/ltx_trainer/training_strategies/base_strategy.py201 def _create_per_token_timesteps(conditioning_mask: Tensor, sampled_sigma: Tensor) -> Tensor:CODE
LOW…r/src/ltx_trainer/training_strategies/base_strategy.py217 def _create_first_frame_conditioning_mask(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py166 def validate_at_least_one_generated(self) -> "FlexibleStrategyConfig":CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py175 def validate_audio_intrinsic_regions(self) -> "FlexibleStrategyConfig":CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py320 def _infer_reference_scale_factors_from_config(self) -> tuple[int | None, int | None]:CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py464 def _apply_intrinsic_condition(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py544 def _compute_spatial_crop_mask(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py597 def _apply_reference_condition(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py704 def _infer_temporal_scale_factor(cond_num_frames: int, target_num_frames: int) -> int:CODE
LOW…/src/ltx_trainer/training_strategies/video_to_video.py261 def _infer_reference_downscale_factor(CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py30def read_lora_reference_downscale_factor(lora_path: str) -> int:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py41def read_lora_reference_temporal_scale_factor(lora_path: str) -> int:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py52def downsample_mask_video_to_latent(CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py93def append_ic_lora_reference_video_conditionings( # noqa: PLR0913CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dubit.py147 def _create_stage_conditionings(CODE
227 more matches not shown…
Over-Commented Block195 hits · 108 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/configs/v2a_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml21# preprocessed_data_root/COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml41 # VAE components. Leave these out for a unified checkpoint — they default to model_path.COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml61 rank: 32COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml81 # - audio_attn2.to_k, audio_attn2.to_q, audio_attn2.to_v, audio_attn2.to_out.0 (audio cross-attention to text)COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml121 # modality-specific configuration blocks.COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml141 latents_dir: "audio_latents"COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml181# Acceleration ConfigurationCOMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml201COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml301 generate_audio: trueCOMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml321 keep_last_n: -1COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml341# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml21# Dataset structure:COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml41 # VAE components. Leave these out for a unified checkpoint — they default to model_path.COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml61 rank: 32COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml81 # - audio_attn2.to_k, audio_attn2.to_q, audio_attn2.to_v, audio_attn2.to_out.0 (audio cross-attention to text)COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml121 latents_dir: "audio_latents"COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml161 scheduler_type: "linear"COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml181 quantization: nullCOMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml301 # Skip validation at the beginning of training (step 0)COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml321# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml21# Dataset structure:COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml41 # VAE components. Leave these out for a unified checkpoint — they default to model_path.COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml61 rank: 32COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml81 # - audio_attn2.to_k, audio_attn2.to_q, audio_attn2.to_v, audio_attn2.to_out.0 (audio cross-attention to text)COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml121 latents_dir: "audio_latents"COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml161 scheduler_type: "linear"COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml181 quantization: nullCOMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml301 # Skip validation at the beginning of training (step 0)COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml321# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml21# ├── latents/ # Video latents (VAE-encoded videos)COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml41 # A split pack's transformer carries no VAE weights, so there they are required:COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml61COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml81 # - audio_ff.net.0.proj, audio_ff.net.2 (audio feed-forward)COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml101 # - "audio_ff.net.2"COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml121 latents_dir: "latents"COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml161 # Options: "constant", "linear", "cosine", "cosine_with_restarts", "polynomial"COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml181 # Options: null (none), "int8-quanto", "int4-quanto", "int2-quanto", "fp8-quanto", "fp8uz-quanto"COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml201 preprocessed_data_root: "/path/to/preprocessed/data"COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml301COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml321COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml21# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml41 training_mode: "lora"COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml61 # Can help with regularization if overfitting occursCOMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml81 # (Q from audio, K/V from video - allows audio to attend to video features)COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml101# This configuration trains both video and audio generation from text prompts.COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml121 # Directory name (within preprocessed_data_root) containing audio latentsCOMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml161# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml181 offload_optimizer_during_validation: falseCOMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml281 # Independent of training_strategy.audio.is_generated - you can generate audioCOMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml301 # Precision to use when saving checkpoint weightsCOMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml21# Dataset metadata columns: video, reference_video, captionCOMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml41 # audio_vae_path: "path/to/vae/ltx-2.5-audio-vae-bf16.safetensors"COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml61 # The effective scaling is alpha/rank, so alpha=rank means scaling of 1.0COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml81 # AUDIO-VIDEO CROSS-ATTENTION MODULES (for cross-modal interaction, not used for video-only IC-LoRA):COMMENT
135 more matches not shown…
Modern Structural Boilerplate75 hits · 76 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py470 def _setup_lora(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py777 def _setup_accelerator(self) -> None:CODE
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py25__all__ = [CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/distilled_mgpu.py41logger = logging.getLogger(__name__)CODE
LOW…-pipelines/src/ltx_pipelines/ti2vid_two_stages_mgpu.py43logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py52__all__ = [CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/dfr_pipeline.py84logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py74logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dfr_mgpu.py46logger = logging.getLogger(__name__)CODE
LOW…pelines/src/ltx_pipelines/ti2vid_two_stages_hq_mgpu.py45logger = logging.getLogger(__name__)CODE
LOW…ges/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py55logger = logging.getLogger(__name__)CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/controller.py48logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/multigpu/fleet.py33logger = logging.getLogger(__name__)CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py22__all__ = [CODE
LOW…pipelines/src/ltx_pipelines/multigpu/gemma_builders.py37logger = logging.getLogger(__name__)CODE
LOW…pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py39logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py31__all__ = [CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/utils/args.py24logger = logging.getLogger(__name__)CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py119logger = logging.getLogger(__name__)CODE
LOW…kages/ltx-pipelines/src/ltx_pipelines/utils/helpers.py54logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py22logger = logging.getLogger(__name__)CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py29logger = logging.getLogger(__name__)CODE
LOW…/ltx-pipelines/src/ltx_pipelines/utils/media_io/exr.py20logger = logging.getLogger(__name__)CODE
LOW…pipelines/src/ltx_pipelines/utils/media_io/__init__.py42__all__ = [CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/decode.py28logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/modality_tiling.py31logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/hdr.py20__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/devices.py18logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/__init__.py11__all__ = ["DimensionTilingConfig", "ShardedSD", "TileCountConfig", "transformer", "vae"]CODE
LOW…kages/ltx-core/src/ltx_core/multigpu/gemma/__init__.py6__all__ = ["AccelerateGemmaWrapper", "load_gemma_with_device_map"]CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/gemma/loader.py29logger = logging.getLogger(__name__)CODE
LOW…tx-core/src/ltx_core/multigpu/transformer/attention.py62 def set_seqlen_all2all(self, seqlens: list[int]) -> None:CODE
LOW…ltx-core/src/ltx_core/multigpu/transformer/__init__.py11__all__ = [CODE
LOW…-core/src/ltx_core/multigpu/vae/distributed_decoder.py45logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/vae/__init__.py5__all__ = ["DistributedVideoDecoder"]CODE
LOW…/ltx-core/src/ltx_core/text_encoders/gemma/__init__.py30__all__ = [CODE
LOW…-core/src/ltx_core/text_encoders/gemma/gemma_assets.py32logger = logging.getLogger(__name__)CODE
LOW…e/text_encoders/gemma/encoders/encoder_configurator.py25logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/guidance/__init__.py10__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/color/__init__.py36__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/color/hlg.py33logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/conditioning/__init__.py15__all__ = [CODE
LOW…s/ltx-core/src/ltx_core/conditioning/types/__init__.py11__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/quantization/__init__.py10__all__ = [CODE
LOW…x-core/src/ltx_core/quantization/blockwise/__init__.py11__all__ = ["build_fp6_policy", "build_fp8_policy"]CODE
LOW…s/ltx-core/src/ltx_core/quantization/nvfp4/__init__.py13__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/loader/__init__.py38__all__ = [CODE
LOW…ltx-core/src/ltx_core/block_streaming/block_fetcher.py14logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-core/src/ltx_core/block_streaming/__init__.py16__all__ = [CODE
LOW…kages/ltx-core/src/ltx_core/block_streaming/builder.py49logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-core/src/ltx_core/model/__init__.py6__all__ = [CODE
LOW…es/ltx-core/src/ltx_core/model/transformer/__init__.py13__all__ = [CODE
LOW…kages/ltx-core/src/ltx_core/model/transformer/model.py27logger = logging.getLogger(__name__)CODE
LOW…kages/ltx-core/src/ltx_core/model/transformer/model.py420 def set_gradient_checkpointing(self, enable: bool) -> None:CODE
LOW…ages/ltx-core/src/ltx_core/model/upsampler/__init__.py6__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/model/common/__init__.py5__all__ = [CODE
LOW…ages/ltx-core/src/ltx_core/model/audio_vae/__init__.py15__all__ = [CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py678__all__ = [STRING
LOW…ages/ltx-core/src/ltx_core/model/video_vae/__init__.py31__all__ = [CODE
LOW…ltx-core/src/ltx_core/model/video_vae/normalization.py3__all__ = ["PixelNorm", "build_normalization_layer"]CODE
15 more matches not shown…
AI Structural Patterns59 hits · 58 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/scripts/split_scenes.py153CODE
LOWpackages/ltx-trainer/scripts/split_scenes.py310CODE
LOWpackages/ltx-trainer/scripts/caption_videos.py352CODE
LOWpackages/ltx-trainer/scripts/process_videos.py396CODE
LOWpackages/ltx-trainer/scripts/process_videos.py837CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1400CODE
LOWpackages/ltx-trainer/scripts/process_dataset.py55CODE
LOWpackages/ltx-trainer/scripts/process_dataset.py315CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py313CODE
LOWpackages/ltx-trainer/scripts/process_captions.py233CODE
LOWpackages/ltx-trainer/scripts/process_captions.py399CODE
LOWpackages/ltx-trainer/scripts/serve_captioner.py99CODE
LOWpackages/ltx-trainer/src/ltx_trainer/datasets.py18CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py408CODE
LOW…-pipelines/src/ltx_pipelines/keyframe_interpolation.py64CODE
LOW…-pipelines/src/ltx_pipelines/keyframe_interpolation.py146CODE
LOW…es/ltx-pipelines/src/ltx_pipelines/ti2vid_one_stage.py68CODE
LOW…es/ltx-pipelines/src/ltx_pipelines/ti2vid_one_stage.py134CODE
LOW…tx-pipelines/src/ltx_pipelines/ti2vid_two_stages_hq.py71CODE
LOW…tx-pipelines/src/ltx_pipelines/ti2vid_two_stages_hq.py174CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages.py70CODE
LOW…s/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages.py159CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/retake.py77CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/retake.py150CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/ic_lora.py70CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/ic_lora.py174CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dubit.py69CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dubit.py193CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/dfr_pipeline.py403CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/dfr_pipeline.py526CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/distilled.py94CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/distilled.py187CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py225CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/dfr_mgpu.py133CODE
LOW…ges/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py69CODE
LOW…ges/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py151CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py298CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py208CODE
LOW…tx-core/src/ltx_core/multigpu/transformer/attention.py96CODE
LOW…c/ltx_core/text_encoders/gemma/embeddings_connector.py95CODE
LOWpackages/ltx-core/src/ltx_core/color/hlg.py241CODE
LOW…kages/ltx-core/src/ltx_core/block_streaming/builder.py84CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py102CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py147CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py172CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py197CODE
LOW…kages/ltx-core/src/ltx_core/model/transformer/model.py48CODE
LOW…ckages/ltx-core/src/ltx_core/model/transformer/rope.py40CODE
LOWpackages/ltx-core/src/ltx_core/model/upsampler/model.py25CODE
LOW…kages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py317CODE
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py67CODE
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py284CODE
LOW…s/ltx-core/src/ltx_core/model/video_vae/convolution.py11CODE
LOW…ore/src/ltx_core/model/video_vae/conv_video_decoder.py179CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py182CODE
LOW…rc/ltx_core/model/video_vae/diffusion_video_decoder.py89CODE
LOW…ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py24CODE
LOW…ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py210CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py2060CODE
Deep Nesting60 hits · 52 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/scripts/compute_reference.py142CODE
LOWpackages/ltx-trainer/scripts/caption_videos.py77CODE
LOWpackages/ltx-trainer/scripts/caption_videos.py284CODE
LOWpackages/ltx-trainer/scripts/process_videos.py396CODE
LOWpackages/ltx-trainer/scripts/process_videos.py840CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1084CODE
LOWpackages/ltx-trainer/scripts/process_captions.py233CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py15CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py113CODE
LOWpackages/ltx-trainer/src/ltx_trainer/quantization.py171CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py418CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py688CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py733CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py825CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py134CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py724CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py825CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py187CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py464CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/dfr_pipeline.py526CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/utils/args.py384CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/utils/args.py202CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py208CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py32CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py252CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py69CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py268CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/decode.py139CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/decode.py306CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/sharded_sd.py123CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/gemma/loader.py70CODE
LOW…-core/src/ltx_core/text_encoders/gemma/gemma_assets.py253CODE
LOWpackages/ltx-core/src/ltx_core/loader/sft_loader.py20CODE
LOWpackages/ltx-core/src/ltx_core/block_streaming/disk.py88CODE
LOW…kages/ltx-core/src/ltx_core/block_streaming/builder.py471CODE
LOW…ore/src/ltx_core/model/video_vae/model_configurator.py519CODE
LOW…ore/src/ltx_core/model/video_vae/conv_video_decoder.py64CODE
LOW…ore/src/ltx_core/model/video_vae/conv_video_decoder.py386CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py41CODE
LOW…rc/ltx_core/model/video_vae/diffusion_video_decoder.py1004CODE
LOW…rc/ltx_core/model/video_vae/diffusion_video_decoder.py1345CODE
LOW…rc/ltx_core/model/video_vae/memory_efficient_decode.py541CODE
LOW…-core/src/ltx_core/model/video_vae/diffusion_tiling.py261CODE
LOW…e/model/video_vae/transformer/fallback_na/triton_na.py21CODE
LOW…model/video_vae/transformer/fallback_na/joint_eager.py428CODE
LOWpackages/ltx-kernels/setup.py153CODE
LOWpackages/ltx-kernels/setup.py194CODE
LOWpackages/ltx-kernels/src/ltx_kernels/vae/na_attn_dsl.py90CODE
LOWpackages/ltx-kernels/src/ltx_kernels/vae/na_attn_dsl.py115CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py396CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1081CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1315CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1521CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1599CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1658CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1685CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py1703CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/block_fna_dsl.py2721CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/fna_attn_core.py314CODE
LOW…kages/ltx-kernels/src/ltx_kernels/vae/fna_attn_core.py594CODE
Excessive Try-Catch Wrapping33 hits · 34 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/scripts/compute_reference.py103 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/compute_reference.py228 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/split_scenes.py283 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/caption_videos.py179 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/caption_videos.py346 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py247 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1261 except Exception:CODE
LOWpackages/ltx-trainer/scripts/train.py54 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py137 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py186 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py41 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py80 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py109 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py173 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/datasets.py274 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/captioning.py274 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/captioning.py376 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py586 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py603 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py1047 except Exception:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py36 except Exception as e:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py47 except Exception as e:CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/controller.py262 except Exception:CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/controller.py355 except Exception:CODE
LOW…ges/ltx-pipelines/src/ltx_pipelines/utils/constants.py152 except Exception:CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py281 except Exception as e:CODE
LOW…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py287 except Exception as e:CODE
LOWpackages/ltx-core/src/ltx_core/devices.py149 except Exception:CODE
LOWpackages/ltx-core/src/ltx_core/color/hlg.py198 except Exception as e:CODE
LOWpackages/ltx-core/src/ltx_core/color/hlg.py206 except Exception as e:CODE
LOWpackages/ltx-core/src/ltx_core/color/hlg.py301 except Exception:CODE
LOW…ltx-core/src/ltx_core/block_streaming/block_fetcher.py80 except Exception as exc:CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py42except Exception:CODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…ges/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py22from ltx_pipelines.utils.helpers import modality_from_latent_stateCODE
CRITICAL…ges/ltx-pipelines/src/ltx_pipelines/utils/gpu_model.py8from ltx_pipelines.utils.helpers import cleanup_memoryCODE
CRITICAL…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py18from ltx_pipelines.utils.helpers import post_process_latent, timesteps_from_maskCODE
Structural Annotation Overuse16 hits · 28 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/docs/custom-training-strategies.md58### Step 1: Plan Your StrategyCOMMENT
LOWpackages/ltx-trainer/docs/custom-training-strategies.md74### Step 2: Extend Data Preprocessing (If Needed)COMMENT
LOWpackages/ltx-trainer/docs/custom-training-strategies.md130### Step 3: Create the Strategy ConfigurationCOMMENT
LOWpackages/ltx-trainer/docs/custom-training-strategies.md198### Step 4: Implement the Strategy ClassCOMMENT
LOWpackages/ltx-trainer/docs/custom-training-strategies.md324### Step 5: Register the StrategyCOMMENT
LOWpackages/ltx-trainer/docs/custom-training-strategies.md369### Step 6: Create a Configuration FileCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py361 # Step 1: Load and patchify latentsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py369 # Step 2: Get text embeddingsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py374 # Step 3: Initialize noise, timesteps, and loss mask based on is_generated flagCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py387 # Step 4: Generate positionsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py404 # Step 5: Apply conditions (intrinsic first, then extrinsic)COMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py431 # Step 6: Build ModalityCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py448 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py453 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py457 # Step 3: Apply padding if neededCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py469 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py61Quantize a built text encoder's Gemma backbone to 8-bit and move it to ``device``. Args: text_encoder: EncodSTRING
HIGH…kages/ltx-trainer/src/ltx_trainer/timestep_samplers.py105Sample timesteps for a specific batch tensor. Args: batch: Input tensor of shape (batch_size, seq_leSTRING
HIGH…rainer/src/ltx_trainer/training_strategies/__init__.py42Factory function to create the appropriate training strategy. The strategy is determined by the `name` field in the STRING
HIGH…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py42Stream a VAE decode to half EXR frames plus a BT.2020/HLG master. One pass over ``chunks`` feeds two independent sinSTRING
HIGH…x-pipelines/src/ltx_pipelines/utils/media_io/encode.py133Encode RGB frames to video; SDR H.264 or HDR EXR+HLG when ``color_space`` is set. Args: video: RGB frames asSTRING
Verbosity Indicators10 hits · 20 pts
SeverityFileLineSnippetContext
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py361 # Step 1: Load and patchify latentsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py369 # Step 2: Get text embeddingsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py374 # Step 3: Initialize noise, timesteps, and loss mask based on is_generated flagCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py387 # Step 4: Generate positionsCOMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py404 # Step 5: Apply conditions (intrinsic first, then extrinsic)COMMENT
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py431 # Step 6: Build ModalityCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py448 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py453 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py457 # Step 3: Apply padding if neededCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py469 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
AI Slop Vocabulary3 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml19# - Create seamless audio extension modelsCOMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml19# - Create seamless audio extension modelsCOMMENT
MEDIUMpackages/ltx-trainer/configs/video_extend_lora.yaml17# - Create seamless video extension models with optional audioCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMpackages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py45 # Create a single temporary directory for all filesCOMMENT
MEDIUM…ckages/ltx-core/src/ltx_core/components/patchifiers.py108 # Create a tensor containing the size of a single patch:COMMENT
MEDIUM…s/ltx-core/src/ltx_core/model/video_vae/convolution.py124 # Define the size of the channels after the first convolutionCOMMENT
Modern AI Meta-Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMpackages/ltx-trainer/AGENTS.md58│ ├── trainer.py # Main training orchestration with AccelerateCODE
MEDIUMpackages/ltx-trainer/CLAUDE.md58│ ├── trainer.py # Main training orchestration with AccelerateCODE
MEDIUMpackages/ltx-trainer/scripts/caption_videos.py25 # Enable Qwen3 chain-of-thought (slower, more detail)STRING
MEDIUMpackages/ltx-trainer/src/ltx_trainer/captioning.py400 # Thinking models (e.g. Qwen3-Omni-*-Thinking) emit the reasoning traceCOMMENT
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml234 # Set these to match --reference-downscale-factor / --reference-temporal-scale-factorCOMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml249 # Set these to match --reference-downscale-factor / --reference-temporal-scale-factorCOMMENT
LOWpackages/ltx-trainer/scripts/decode_latents.py152 # Check if audio VAE is loadedCOMMENT
LOWpackages/ltx-trainer/scripts/decode_latents.py205 # Check if latents need reshaping (old patchified format)COMMENT
LOWpackages/ltx-trainer/src/ltx_trainer/quantization.py89 # Check if model has transformer_blocks for block-by-block quantizationCOMMENT
LOWpackages/ltx-trainer/src/ltx_trainer/datasets.py289 # Check if latents are in legacy patchified format [seq_len, C]COMMENT
LOW…ore/src/ltx_core/model/video_vae/conv_video_decoder.py447 # Check if current temporal slice overlaps with previous temporal sliceSTRING
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…rc/ltx_core/model/video_vae/memory_efficient_decode.py337 interior.mul_(1 + scale2).add_(shift2) # type: ignore[possibly-undefined]CODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/src/ltx_trainer/gpu_utils.py33 def my_function():STRING