Repository Analysis

Lightricks/LTX-2

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

44.0 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Lightricks/LTX-2, a Python project with 8,247 GitHub stars. SynthScan v2.0 examined 59,243 lines of code across 302 source files, recording 1340 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 44.0 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).

44.0
Adjusted Score
44.0
Raw Score
100%
Time Factor
2026-07-08
Last Push
8.2K
Stars
Python
Language
59.2K
Lines of Code
302
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.03
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 6HIGH 4MEDIUM 582LOW 748

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 1340 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 Separators572 hits · 1814 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.yaml296# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml298# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml308# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml310# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml320# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml322# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml1# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml3# =============================================================================COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml49# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml51# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml107# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml109# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml138# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml140# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml175# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml177# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml198# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml200# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml211# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml213# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml279# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml281# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml340# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/v2a_lora.yaml342# -----------------------------------------------------------------------------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.yaml290# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml292# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml302# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml304# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml314# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml316# -----------------------------------------------------------------------------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.yaml49# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml51# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml102# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml104# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml128# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml130# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml165# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml167# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml188# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml190# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml201# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml203# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml273# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml275# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml334# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_extend_lora.yaml336# -----------------------------------------------------------------------------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.yaml290# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml292# -----------------------------------------------------------------------------COMMENT
MEDIUMpackages/ltx-trainer/configs/audio_suffix_lora.yaml302# -----------------------------------------------------------------------------COMMENT
512 more matches not shown…
Unused Imports240 hits · 235 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py12CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py16CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py32CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py32CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py32CODE
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.py34CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py35CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py36CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py65CODE
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
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py12CODE
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__.py24CODE
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/lipdub.py3CODE
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.py11CODE
LOW…ltx-pipelines/src/ltx_pipelines/multigpu/sp_builder.py6CODE
LOW…pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py21CODE
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
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__.py10CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py10CODE
180 more matches not shown…
Hyper-Verbose Identifiers153 hits · 153 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.py306 def _get_resolution_bucket_for_item(self, media_tensor: torch.Tensor) -> tuple[int, int, int]:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py383def _compute_temporal_subsample_indices(num_frames: int, factor: int) -> list[int]:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1288def compute_scaled_resolution_buckets(CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1343def _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.py375def _build_sharded_dataloader(CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py45 def validate_exactly_one_modality(self) -> "PrefixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py51 def validate_num_frames_constraint(self) -> "PrefixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py74 def validate_exactly_one_modality(self) -> "SuffixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py80 def validate_num_frames_constraint(self) -> "SuffixConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py108 def validate_exactly_one_modality(self) -> "MaskConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py125 def validate_exactly_one_modality(self) -> "ReferenceConditionConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py212 def validate_frozen_modality_conflicts(self) -> "ValidationSample":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py304def _get_strategy_discriminator(v: dict | TrainingStrategyConfigBase) -> str:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py419 def validate_preprocessed_data_root(cls, v: str) -> str:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py587 def validate_reference_videos(cls, v: list[str] | None, info: ValidationInfo) -> list[str] | None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py624 def validate_scaled_reference_dimensions(self) -> "ValidationConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py657 def validate_output_modality_requirements(self) -> "ValidationConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py799 def _validate_data_dirs_exist(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/config.py810 def validate_strategy_compatibility(self) -> "LtxTrainerConfig":CODE
LOWpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py96def _suppress_accelerate_memory_warnings() -> Generator[None, None, None]:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py239def load_embeddings_processor(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py298 def _encode_conditioning_media(self) -> list[CachedSampleMedia]:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py304 def _cond_needs_video_encoder(cond: object) -> bool:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py309 def _cond_needs_audio_encoder(cond: object) -> bool:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py588 def _apply_video_conditionings(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py344 def _encode_sample_conditions(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py429 def _encode_temporal_condition_media(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py633 def _apply_audio_conditionings(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py721 def _apply_reference_side_by_side(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py936 def _load_and_downsample_mask(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1065 def _modality_from_latent_state(state: LatentState, context: Tensor, sigma: Tensor) -> Modality:CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1078 def _build_stg_perturbation_config(CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py1197def _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.py432 def _collect_trainable_params(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py600 def _prepare_models_for_training(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py806 def _offloaded_optimizer_state(self) -> Iterator[None]:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py1068 def _build_checkpoint_metadata(self) -> dict[str, str]:CODE
LOW…r/src/ltx_trainer/training_strategies/base_strategy.py203 def _create_per_token_timesteps(conditioning_mask: Tensor, sampled_sigma: Tensor) -> Tensor:CODE
LOW…r/src/ltx_trainer/training_strategies/base_strategy.py219 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.py542 def _compute_spatial_crop_mask(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py594 def _apply_reference_condition(CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py701 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.py23def read_lora_reference_downscale_factor(lora_path: str) -> int:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py34def read_lora_reference_temporal_scale_factor(lora_path: str) -> int:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py45def downsample_mask_video_to_latent(CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py86def append_ic_lora_reference_video_conditionings( # noqa: PLR0913CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/lipdub.py131 def _create_stage_conditionings(CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/lipdub.py166 def _encode_reference_audio_vae_latent(self, video_path: str) -> torch.Tensor:CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/lipdub.py214 def build_image_conditionings(output_shape: VideoPixelShape) -> list:CODE
93 more matches not shown…
Over-Commented Block177 hits · 93 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 # Training mode: "lora" for efficient adapter training, "full" for full fine-tuningCOMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml61COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml101 # Cross-modal attention: allows audio to attend to video featuresCOMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml121 # Frozen modalities get sigma=0, timestep=0, no noise, and no lossCOMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml161 # Optimizer type: "adamw" (standard) or "adamw8bit" (memory-efficient)COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml181 # Options: "no" (fp32), "fp16" (half precision), "bf16" (bfloat16, recommended)COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml201# Specifies the training data location and loading parameters.COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml281# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/v2a_lora.yaml301 # Timestep sampling modeCOMMENT
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 # Training mode: "lora" for efficient adapter training, "full" for full fine-tuningCOMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml61COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml121 # Number of audio latent timesteps to use as conditioning prefixCOMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml161 # Enable gradient checkpointing to reduce memory usageCOMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml181COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml261COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml281COMMENT
LOWpackages/ltx-trainer/configs/audio_extend_lora.yaml301COMMENT
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 # Training mode: "lora" for efficient adapter training, "full" for full fine-tuningCOMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml61COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml121 # Number of audio latent timesteps to use as conditioning suffixCOMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml161 # Enable gradient checkpointing to reduce memory usageCOMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml181COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml261COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml281COMMENT
LOWpackages/ltx-trainer/configs/audio_suffix_lora.yaml301COMMENT
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 # LoRA is recommended for most use cases (faster, less memory, prevents overfitting)COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml61 # Dropout probability for LoRA layers (0.0 = no dropout)COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml81 # - video_to_audio_attn.to_k, video_to_audio_attn.to_q, video_to_audio_attn.to_v, video_to_audio_attn.to_out.0COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml101# Defines the audio-to-video training approach using the unified flexible strategy.COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml121 audio:COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml161COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml181 load_text_encoder_in_8bit: falseCOMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml261COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml281 interval: 250COMMENT
LOWpackages/ltx-trainer/configs/a2v_lora.yaml301 timestep_sampling_params: { }COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml1# =============================================================================COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml21# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml41COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml61 #COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml81 # Attention layers (matches both video and audio branches)COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml161 # Mixed precision training modeCOMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml181# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml261checkpoints:COMMENT
LOWpackages/ltx-trainer/configs/t2v_lora.yaml281 timestep_sampling_mode: "shifted_logit_normal"COMMENT
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.yaml41COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml61 dropout: 0.0COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml101# -----------------------------------------------------------------------------COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml121 # Reference conditioning (IC-LoRA): concatenates pre-encoded reference videoCOMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml161COMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml181COMMENT
117 more matches not shown…
Hallucination Indicators6 hits · 65 pts
SeverityFileLineSnippetContext
CRITICALpackages/ltx-pipelines/src/ltx_pipelines/ic_lora.py40from ltx_pipelines.utils.helpers import assert_resolution, combined_image_conditionings, get_deviceCODE
CRITICALpackages/ltx-pipelines/src/ltx_pipelines/lipdub.py41from ltx_pipelines.utils.helpers import assert_resolution, combined_image_conditionings, get_deviceCODE
CRITICALpackages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py62from ltx_pipelines.utils.helpers import get_device, modality_from_latent_stateCODE
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.py9from ltx_pipelines.utils.helpers import cleanup_memoryCODE
CRITICAL…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py14from ltx_pipelines.utils.helpers import post_process_latent, timesteps_from_maskCODE
Modern Structural Boilerplate48 hits · 50 pts
SeverityFileLineSnippetContext
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py451 def _setup_lora(self) -> None:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py758 def _setup_accelerator(self) -> None:CODE
LOW…rainer/src/ltx_trainer/training_strategies/__init__.py26__all__ = [CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/distilled_mgpu.py39logger = logging.getLogger(__name__)CODE
LOW…-pipelines/src/ltx_pipelines/ti2vid_two_stages_mgpu.py41logger = logging.getLogger(__name__)CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/__init__.py47__all__ = [CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py67logger = logging.getLogger(__name__)CODE
LOW…pelines/src/ltx_pipelines/ti2vid_two_stages_hq_mgpu.py43logger = 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.py31logger = logging.getLogger(__name__)CODE
LOW…pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py40logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py26__all__ = [CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py25logger = logging.getLogger(__name__)CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py90logger = logging.getLogger(__name__)CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py18logger = logging.getLogger(__name__)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.py20logger = 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.py44logger = 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__.py21__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/guidance/__init__.py10__all__ = [CODE
LOWpackages/ltx-core/src/ltx_core/conditioning/__init__.py14__all__ = [CODE
LOW…s/ltx-core/src/ltx_core/conditioning/types/__init__.py10__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
LOWpackages/ltx-core/src/ltx_core/loader/__init__.py31__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__.py5__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.py26logger = logging.getLogger(__name__)CODE
LOW…kages/ltx-core/src/ltx_core/model/transformer/model.py351 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…ages/ltx-core/src/ltx_core/model/video_vae/__init__.py13__all__ = [CODE
LOW…ltx-core/src/ltx_core/model/video_vae/normalization.py3__all__ = ["PixelNorm", "build_normalization_layer"]CODE
LOWpackages/ltx-kernels/src/ltx_kernels/__init__.py5__all__ = ["All2All"]CODE
LOWpackages/ltx-kernels/src/ltx_kernels/all_to_all.py137 def set_rank_tokens(self, rank_num_tokens: list[int]) -> None:CODE
LOWpackages/ltx-kernels/src/ltx_kernels/all_to_all.py141 def set_timeout_seconds(self, seconds: float) -> None:CODE
LOW…ages/ltx-kernels/src/ltx_kernels/blockwise/__init__.py23__all__ = [CODE
AI Structural Patterns35 hits · 34 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.py394CODE
LOWpackages/ltx-trainer/scripts/process_videos.py819CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1366CODE
LOWpackages/ltx-trainer/scripts/process_dataset.py54CODE
LOWpackages/ltx-trainer/scripts/process_dataset.py291CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py295CODE
LOWpackages/ltx-trainer/scripts/process_captions.py233CODE
LOWpackages/ltx-trainer/scripts/process_captions.py398CODE
LOWpackages/ltx-trainer/scripts/serve_captioner.py99CODE
LOWpackages/ltx-trainer/src/ltx_trainer/datasets.py18CODE
LOWpackages/ltx-trainer/src/ltx_trainer/model_loader.py285CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/retake.py140CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py233CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py204CODE
LOW…tx-core/src/ltx_core/multigpu/transformer/attention.py96CODE
LOW…c/ltx_core/text_encoders/gemma/embeddings_connector.py93CODE
LOW…kages/ltx-core/src/ltx_core/block_streaming/builder.py84CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py99CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py144CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py169CODE
LOW…s/ltx-core/src/ltx_core/model/transformer/attention.py194CODE
LOW…kages/ltx-core/src/ltx_core/model/transformer/model.py47CODE
LOW…ckages/ltx-core/src/ltx_core/model/transformer/rope.py40CODE
LOWpackages/ltx-core/src/ltx_core/model/upsampler/model.py24CODE
LOW…kages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py316CODE
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py66CODE
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py283CODE
LOW…s/ltx-core/src/ltx_core/model/video_vae/convolution.py11CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py176CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py587CODE
LOW…ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py24CODE
LOW…ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py210CODE
Excessive Try-Catch Wrapping29 hits · 30 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.py245 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1238 except Exception:CODE
LOWpackages/ltx-trainer/scripts/train.py54 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py123 except Exception as e:CODE
LOWpackages/ltx-trainer/scripts/decode_latents.py172 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.py280 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.py567 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py584 except Exception as e:CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py1035 except Exception:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py29 except Exception as e:CODE
LOW…ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py40 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.py122 except Exception:CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py470 except Exception as e:CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py476 except Exception as e:CODE
LOWpackages/ltx-core/src/ltx_core/devices.py91 except Exception:CODE
LOW…ltx-core/src/ltx_core/block_streaming/block_fetcher.py80 except Exception as exc:CODE
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.py447 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py452 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py456 # Step 3: Apply padding if neededCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py468 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
Deep Nesting32 hits · 28 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.py394CODE
LOWpackages/ltx-trainer/scripts/process_videos.py822CODE
LOWpackages/ltx-trainer/scripts/process_videos.py1063CODE
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.py344CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py588CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py633CODE
LOW…kages/ltx-trainer/src/ltx_trainer/validation_runner.py721CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py119CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py705CODE
LOWpackages/ltx-trainer/src/ltx_trainer/trainer.py806CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py187CODE
LOW…rainer/src/ltx_trainer/training_strategies/flexible.py464CODE
LOWpackages/ltx-pipelines/src/ltx_pipelines/utils/args.py129CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py441CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py612CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py457CODE
LOW…ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py204CODE
LOWpackages/ltx-core/src/ltx_core/multigpu/sharded_sd.py123CODE
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.py462CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py38CODE
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py475CODE
LOW…rc/ltx_core/model/video_vae/memory_efficient_decode.py528CODE
LOWpackages/ltx-kernels/setup.py57CODE
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.py447 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py452 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py456 # Step 3: Apply padding if neededCOMMENT
LOW…ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py468 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpackages/ltx-trainer/src/ltx_trainer/gemma_8bit.py31Load the Gemma text encoder in 8-bit precision using bitsandbytes. Only the Gemma LLM backbone is loaded here. The STRING
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__.py44Factory function to create the appropriate training strategy. The strategy is determined by the `name` field in the STRING
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.md52│ ├── trainer.py # Main training orchestration with AccelerateCODE
MEDIUMpackages/ltx-trainer/CLAUDE.md52│ ├── 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.yaml229 # Set these to match --reference-downscale-factor / --reference-temporal-scale-factorCOMMENT
LOWpackages/ltx-trainer/configs/v2v_ic_lora.yaml244 # Set these to match --reference-downscale-factor / --reference-temporal-scale-factorCOMMENT
LOWpackages/ltx-trainer/scripts/decode_latents.py138 # Check if audio VAE is loadedCOMMENT
LOWpackages/ltx-trainer/scripts/decode_latents.py191 # 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.py295 # Check if latents are in legacy patchified format [seq_len, C]COMMENT
LOW…ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py870 # 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.py324 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