Repository Analysis

ostris/ai-toolkit

The ultimate training toolkit for finetuning diffusion models

16.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ostris/ai-toolkit, a Python project with 11,309 GitHub stars. SynthScan v2.0 examined 170,358 lines of code across 574 source files, recording 1923 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 16.0 places this repository in the Moderate 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).

16.0
Adjusted Score
16.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
11.3K
Stars
Python
Language
170.4K
Lines of Code
574
Files
1.9K
Pattern Hits
2026-07-14
Scan Date
0.11
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 1HIGH 64MEDIUM 279LOW 1579

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 1923 distinct pattern matches across 20 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.

Unused Imports654 hits · 627 pts
SeverityFileLineSnippetContext
LOWextensions_built_in/audio_models/base_audio_model.py1CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py6CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py6CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py14CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py17CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py17CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py24CODE
LOWextensions_built_in/audio_models/ace_step/__init__.py1CODE
LOWextensions_built_in/audio_models/ace_step/__init__.py1CODE
LOW…ensions_built_in/audio_models/ace_step/src/pipeline.py4CODE
LOW…ensions_built_in/audio_models/ace_step/src/pipeline.py5CODE
LOWextensions_built_in/concept_replacer/ConceptReplacer.py3CODE
LOWextensions_built_in/concept_replacer/ConceptReplacer.py4CODE
LOWextensions_built_in/concept_replacer/ConceptReplacer.py4CODE
LOWextensions_built_in/concept_replacer/ConceptReplacer.py5CODE
LOW…nsions_built_in/concept_slider/ConceptSliderTrainer.py7CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py60CODE
LOWextensions_built_in/diffusion_models/krea2/__init__.py1CODE
LOW…nsions_built_in/diffusion_models/krea2/src/pipeline.py14CODE
LOWextensions_built_in/diffusion_models/chroma/__init__.py1CODE
LOWextensions_built_in/diffusion_models/chroma/__init__.py2CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py6CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py17CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py17CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py19CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py20CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py21CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py28CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py6CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py9CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py17CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py17CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py19CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py19CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py20CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py21CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py29CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py7CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py7CODE
LOW…nsions_built_in/diffusion_models/ideogram4/__init__.py1CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py5CODE
LOW…built_in/diffusion_models/ideogram4/src/latent_norm.py1CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py9CODE
LOW…ns_built_in/diffusion_models/ideogram4/src/pipeline.py8CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py3CODE
LOWextensions_built_in/diffusion_models/ltx2/__init__.py1CODE
LOWextensions_built_in/diffusion_models/ltx2/__init__.py1CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py10CODE
LOW…ns_built_in/diffusion_models/prx_pixel_t2i/__init__.py1CODE
LOW…uilt_in/diffusion_models/prx_pixel_t2i/src/__init__.py3CODE
LOW…uilt_in/diffusion_models/prx_pixel_t2i/src/__init__.py4CODE
LOW…/diffusion_models/nucleus_image/nucleus_image_model.py20CODE
LOW…ns_built_in/diffusion_models/nucleus_image/__init__.py1CODE
LOWextensions_built_in/diffusion_models/flux2/__init__.py1CODE
LOWextensions_built_in/diffusion_models/flux2/__init__.py2CODE
LOWextensions_built_in/diffusion_models/flux2/__init__.py2CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py30CODE
LOW…ons_built_in/diffusion_models/flux_kontext/__init__.py1CODE
LOW…built_in/diffusion_models/flux_kontext/flux_kontext.py2CODE
LOW…built_in/diffusion_models/flux_kontext/flux_kontext.py5CODE
594 more matches not shown…
Decorative Section Separators154 hits · 470 pts
SeverityFileLineSnippetContext
MEDIUMrun_mac.zsh7# ── Banner ─────────────────────────────────────────────────────────COMMENT
MEDIUMrun_mac.zsh43# ── 1. Download standalone Python if needed ─────────────────────────COMMENT
MEDIUMrun_mac.zsh70# ── 2. Create venv if it doesn't exist ──────────────────────────────COMMENT
MEDIUMrun_mac.zsh77# ── 3. Download / update portable Node.js ──────────────────────────COMMENT
MEDIUMrun_mac.zsh119# ── 4. Install / update PyTorch packages ────────────────────────────COMMENT
MEDIUMrun_mac.zsh141# ── 5. Install / update requirements.txt ────────────────────────────COMMENT
MEDIUMrun_mac.zsh160# ── 6. Build and start the UI ───────────────────────────────────────COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py29# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py31# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py76# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py78# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py434# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py436# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py524# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py526# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py959# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py961# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1150# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1152# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1177# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1179# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1343# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1345# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1467# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1469# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py230 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py232 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py479 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py481 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py542 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py544 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py627 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py629 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py774 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py776 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py845 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py847 # ------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py27# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py29# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py61# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py63# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py240# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py242# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py270# ---------------------------------------------------------------------------COMMENT
MEDIUM…nsions_built_in/diffusion_models/krea2/src/pipeline.py272# ---------------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py211 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py213 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py438 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py440 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py472 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py474 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py553 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py555 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py596 # ------------------------------------------------------------------COMMENT
MEDIUM…sions_built_in/diffusion_models/ideogram4/ideogram4.py598 # ------------------------------------------------------------------COMMENT
MEDIUM…ns_built_in/diffusion_models/ideogram4/src/pipeline.py68# ---------------------------------------------------------------------------COMMENT
MEDIUM…ns_built_in/diffusion_models/ideogram4/src/pipeline.py77# ---------------------------------------------------------------------------COMMENT
MEDIUM…ns_built_in/diffusion_models/ideogram4/src/pipeline.py102# ---------------------------------------------------------------------------COMMENT
MEDIUM…ns_built_in/diffusion_models/ideogram4/src/pipeline.py104# ---------------------------------------------------------------------------COMMENT
MEDIUM…ns_built_in/diffusion_models/ideogram4/src/pipeline.py161# ---------------------------------------------------------------------------COMMENT
94 more matches not shown…
Hyper-Verbose Identifiers323 hits · 349 pts
SeverityFileLineSnippetContext
LOWextensions_built_in/audio_models/base_audio_model.py72 def convert_lora_weights_before_save(self, state_dict):CODE
LOWextensions_built_in/audio_models/base_audio_model.py80 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py237 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py929 def enable_gradient_checkpointing(self):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py867 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py870 def convert_lora_weights_before_save(self, state_dict):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py876 def convert_lora_weights_before_load(self, state_dict):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py103def patch_qwen_vl_patch_embed(model):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py383 def get_quantization_exclude_modules(self):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py608 def _batch_ref_latents_from_batch(CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py464 def enable_gradient_checkpointing(self):CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py467 def disable_gradient_checkpointing(self):CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py446 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py454 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py428 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py436 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py56def modify_mask_to_attend_padding(mask, max_seq_length, num_extra_padding=8):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py178 def enable_gradient_checkpointing(self, enable: bool = True):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py70def modify_mask_to_attend_padding(mask, max_seq_length, num_extra_padding=8):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py226 def enable_gradient_checkpointing(self, enable: bool = True):CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py463def _modulation_shift_scale_fn(x, scale, shift):CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py521 def modulation_shift_scale_fn(self, x, scale, shift):CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py649 def modulation_shift_scale_fn(self, x, scale, shift):CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py704 def modulation_shift_scale_fn(self, x, scale, shift):CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py113def _load_component_state_dict(base: str, subfolder: str, basename: str) -> dict:CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py199 def text_embedding_space_version(self):CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py620 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py623 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py630 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py412 def enable_gradient_checkpointing(self):CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py415 def disable_gradient_checkpointing(self):CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py188 def enable_gradient_checkpointing(self):CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py289 def enable_gradient_checkpointing(self):CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py381 def enable_gradient_checkpointing(self):CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py398def convert_diffusers_state_dict(src: dict[str, Tensor]) -> dict[str, Tensor]:CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py129def update_state_dict_inplace(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py202def split_transformer_and_connector_state_dict(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py878def get_model_state_dict_from_combined_ckpt(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py1027def convert_lora_original_to_diffusers(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py1061def convert_lora_diffusers_to_original(CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py1141 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py1144 def convert_lora_weights_before_save(self, state_dict):CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py1152 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…ilt_in/diffusion_models/prx_pixel_t2i/prx_pixel_t2i.py294 def get_latent_noise_from_latents(self, latents: torch.Tensor, noise_offset=0.0):CODE
LOW…ilt_in/diffusion_models/prx_pixel_t2i/prx_pixel_t2i.py332 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…ilt_in/diffusion_models/prx_pixel_t2i/prx_pixel_t2i.py335 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…ilt_in/diffusion_models/prx_pixel_t2i/prx_pixel_t2i.py341 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…/diffusion_models/prx_pixel_t2i/src/transformer_prx.py49def maybe_adjust_dtype_for_device(CODE
LOW…/diffusion_models/prx_pixel_t2i/src/transformer_prx.py784 def _compute_timestep_embedding(STRING
LOW…/diffusion_models/nucleus_image/nucleus_image_model.py405 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…/diffusion_models/nucleus_image/nucleus_image_model.py408 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…/diffusion_models/nucleus_image/nucleus_image_model.py415 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py505 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py508 def convert_lora_weights_before_save(self, state_dict):CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py515 def convert_lora_weights_before_load(self, state_dict):CODE
LOWextensions_built_in/diffusion_models/flux2/src/model.py141 def enable_gradient_checkpointing(self):CODE
LOW…ons_built_in/diffusion_models/flux2/src/autoencoder.py194 def enable_gradient_checkpointing(self):CODE
LOW…ons_built_in/diffusion_models/flux2/src/autoencoder.py295 def enable_gradient_checkpointing(self):CODE
LOW…ons_built_in/diffusion_models/flux2/src/autoencoder.py398 def enable_gradient_checkpointing(self):CODE
LOW…nsions_built_in/diffusion_models/flux2/src/pipeline.py93 def _get_mistral_prompt_embeds(CODE
263 more matches not shown…
Cross-File Repetition54 hits · 270 pts
SeverityFileLineSnippetContext
HIGH…nsions_built_in/diffusion_models/krea2/src/pipeline.py0lightweight flow-matching sampler used by ai-toolkit's preview generation.STRING
HIGH…ns_built_in/diffusion_models/ideogram4/src/pipeline.py0lightweight flow-matching sampler used by ai-toolkit's preview generation.STRING
HIGH…_built_in/diffusion_models/boogu_image/src/pipeline.py0lightweight flow-matching sampler used by ai-toolkit's preview generation.STRING
HIGH…ensions_built_in/diffusion_models/chroma/src/layers.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGHextensions_built_in/diffusion_models/flux2/src/model.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGH…models/hidream/src/hidream_o1/qwen3_vl_transformers.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGH…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py0omnigen2 attention processor module copyright 2025 baai, the omnigen2 team and the huggingface team. all rights reservedSTRING
HIGH…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py0omnigen2 attention processor module copyright 2025 baai, the omnigen2 team and the huggingface team. all rights reservedSTRING
HIGH…sion_models/omnigen2/src/models/attention_processor.py0omnigen2 attention processor module copyright 2025 baai, the omnigen2 team and the huggingface team. all rights reservedSTRING
HIGH…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGH…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGH…elines/hidream_image/pipeline_hidream_image_editing.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGH…/src/pipelines/hidream_image/pipeline_hidream_image.py0calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. handles custom tSTRING
HIGH…src/schedulers/scheduling_flow_match_euler_discrete.py0output class for the scheduler's `step` function output. args: prev_sample (`torch.floattensor` of shape `(batch_size, nSTRING
HIGH…sion_models/hidream/src/schedulers/flash_flow_match.py0output class for the scheduler's `step` function output. args: prev_sample (`torch.floattensor` of shape `(batch_size, nSTRING
HIGHtoolkit/samplers/mean_flow_scheduler.py0output class for the scheduler's `step` function output. args: prev_sample (`torch.floattensor` of shape `(batch_size, nSTRING
HIGH…src/schedulers/scheduling_flow_match_euler_discrete.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…igen2/src/schedulers/scheduling_dpmsolver_multistep.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…sion_models/hidream/src/schedulers/flash_flow_match.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…sion_models/hidream/src/schedulers/fm_solvers_unipc.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…src/schedulers/scheduling_flow_match_euler_discrete.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…igen2/src/schedulers/scheduling_dpmsolver_multistep.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…sion_models/hidream/src/schedulers/flash_flow_match.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…sion_models/hidream/src/schedulers/fm_solvers_unipc.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…src/schedulers/scheduling_flow_match_euler_discrete.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…igen2/src/schedulers/scheduling_dpmsolver_multistep.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…sion_models/hidream/src/schedulers/flash_flow_match.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…sion_models/hidream/src/schedulers/fm_solvers_unipc.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…igen2/src/schedulers/scheduling_dpmsolver_multistep.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…sion_models/hidream/src/schedulers/fm_solvers_unipc.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGHtoolkit/samplers/custom_lcm_scheduler.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…usion_models/hidream/src/models/attention_processor.py0attention processor used typically in processing the sd3-like self-attention projections.STRING
HIGHtoolkit/ip_adapter.py0attention processor used typically in processing the sd3-like self-attention projections.STRING
HIGHtoolkit/models/flux_sage_attn.py0attention processor used typically in processing the sd3-like self-attention projections.STRING
HIGHtoolkit/models/vd_adapter.py0attention processor used typically in processing the sd3-like self-attention projections.STRING
HIGHextensions_built_in/sd_trainer/DiffusionTrainer.py0start a daemon thread that periodically checks should_stop() and terminates the process immediately when triggered.STRING
HIGHextensions_built_in/sd_trainer/UITrainer.py0start a daemon thread that periodically checks should_stop() and terminates the process immediately when triggered.STRING
HIGHextensions_built_in/captioner/BaseCaptioner.py0start a daemon thread that periodically checks should_stop() and terminates the process immediately when triggered.STRING
HIGHextensions_built_in/sd_trainer/DiffusionTrainer.py0helper method to run an async coroutine and track the task.STRING
HIGHextensions_built_in/sd_trainer/UITrainer.py0helper method to run an async coroutine and track the task.STRING
HIGHextensions_built_in/captioner/BaseCaptioner.py0helper method to run an async coroutine and track the task.STRING
HIGHextensions_built_in/sd_trainer/DiffusionTrainer.py0create a new connection for each operation to avoid locking.STRING
HIGHextensions_built_in/sd_trainer/UITrainer.py0create a new connection for each operation to avoid locking.STRING
HIGHextensions_built_in/captioner/BaseCaptioner.py0create a new connection for each operation to avoid locking.STRING
HIGHtoolkit/reference_adapter.py0attention processor for custom te for pytorch 2.0. args: hidden_size (`int`): the hidden size of the attention layer. crSTRING
HIGHtoolkit/util/ip_adapter_utils.py0attention processor for custom te for pytorch 2.0. args: hidden_size (`int`): the hidden size of the attention layer. crSTRING
HIGHtoolkit/models/te_adapter.py0attention processor for custom te for pytorch 2.0. args: hidden_size (`int`): the hidden size of the attention layer. crSTRING
HIGHtoolkit/util/ip_adapter_utils.py0processor for implementing scaled dot-product attention (enabled by default if you're using pytorch 2.0).STRING
HIGHtoolkit/models/single_value_adapter.py0processor for implementing scaled dot-product attention (enabled by default if you're using pytorch 2.0).STRING
HIGHtoolkit/models/vd_adapter.py0processor for implementing scaled dot-product attention (enabled by default if you're using pytorch 2.0).STRING
HIGHtoolkit/optimizers/automagic.py0performs a single optimization step. arguments: closure (callable, optional): a closure that reevaluates the model and rSTRING
HIGHtoolkit/optimizers/adafactor.py0performs a single optimization step. arguments: closure (callable, optional): a closure that reevaluates the model and rSTRING
HIGHtoolkit/optimizers/prodigy_8bit.py0performs a single optimization step. arguments: closure (callable, optional): a closure that reevaluates the model and rSTRING
HIGHtoolkit/optimizers/adam8bit.py0performs a single optimization step. arguments: closure (callable, optional): a closure that reevaluates the model and rSTRING
Deep Nesting242 hits · 219 pts
SeverityFileLineSnippetContext
LOWflux_train_ui.py25CODE
LOWui_scripts/upsample_ideogram4_caption.py132CODE
LOWui_scripts/merge_loras.py27CODE
LOWextensions_built_in/diffusion_models/chroma/pipeline.py148CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py98CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py99CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py92CODE
LOW…ns_built_in/diffusion_models/ideogram4/src/pipeline.py312CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py191CODE
LOW…ensions_built_in/diffusion_models/ideogram4/src/vae.py292CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py878CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py933CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py979CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py847CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py336CODE
LOW…ons_built_in/diffusion_models/flux2/src/autoencoder.py197CODE
LOW…ons_built_in/diffusion_models/flux2/src/autoencoder.py298CODE
LOW…in/diffusion_models/qwen_image/qwen_image_edit_plus.py231CODE
LOW…in/diffusion_models/qwen_image/qwen_image_pipelines.py28CODE
LOW…usion_models/omnigen2/src/pipelines/image_processor.py135CODE
LOW…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py341CODE
LOW…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py709CODE
LOW…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py346CODE
LOW…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py607CODE
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py205CODE
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py493CODE
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py595CODE
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py664CODE
LOW…lt_in/diffusion_models/boogu_image/boogu_image_edit.py188CODE
LOW…iffusion_models/boogu_image/src/attention_processor.py264CODE
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py955CODE
LOW…built_in/diffusion_models/z_image/z_image_l2p_model.py294CODE
LOW…ions_built_in/diffusion_models/wan22/wan22_5b_model.py250CODE
LOW…ions_built_in/diffusion_models/wan22/wan22_pipeline.py46CODE
LOW…ons_built_in/diffusion_models/wan22/wan22_14b_model.py495CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py569CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py773CODE
LOW…/src/pipelines/hidream_image/pipeline_hidream_image.py516CODE
LOW…in/diffusion_models/hidream/src/hidream_o1/pipeline.py32CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py1260CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py2345CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py2368CODE
LOWextensions_built_in/dataset_tools/SuperTagger.py71CODE
LOWextensions_built_in/dataset_tools/SyncFromCollection.py95CODE
LOW…nsions_built_in/advanced_generator/Img2ImgGenerator.py55CODE
LOW…nsions_built_in/advanced_generator/Img2ImgGenerator.py105CODE
LOW…ions_built_in/advanced_generator/ReferenceGenerator.py55CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py116CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py241CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py484CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py1003CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py1120CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py1288CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py2115CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py59CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py118CODE
LOWextensions_built_in/sd_trainer/UITrainer.py51CODE
LOWextensions_built_in/captioner/BaseCaptioner.py157CODE
LOWextensions_built_in/captioner/BaseCaptioner.py233CODE
LOWextensions_built_in/captioner/BaseCaptioner.py292CODE
182 more matches not shown…
Excessive Try-Catch Wrapping154 hits · 197 pts
SeverityFileLineSnippetContext
LOWrun.py116 except Exception as e:CODE
LOWrun.py121 except Exception as e2:CODE
LOWrun.py129 except Exception as e2:CODE
LOWrun_modal.py136 except Exception as e:CODE
MEDIUMrun_modal.py137 print(f"Error running job: {e}")CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py321 except Exception as e:CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py301 except Exception as e:CODE
LOW…ensions_built_in/diffusion_models/omnigen2/__init__.py239 except Exception as e:CODE
LOWextensions_built_in/diffusion_models/z_image/z_image.py103 except Exception as e:CODE
LOW…_built_in/diffusion_models/hidream/hidream_o1_model.py164 except Exception as e:CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py1091 except Exception as e:STRING
LOW…elines/hidream_image/pipeline_hidream_image_editing.py1101 except Exception as e:STRING
LOWextensions_built_in/dataset_tools/SuperTagger.py184 except Exception:CODE
LOWextensions_built_in/dataset_tools/SyncFromCollection.py83 except Exception as e:CODE
LOWextensions_built_in/dataset_tools/SyncFromCollection.py110 except Exception as e:CODE
LOWextensions_built_in/dataset_tools/tools/image_tools.py35 except Exception as e:CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py871 except Exception as e:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py84 except Exception:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py276 except Exception as e:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py290 except Exception as db_err:CODE
LOWextensions_built_in/sd_trainer/UITrainer.py76 except Exception:CODE
LOWextensions_built_in/sd_trainer/UITrainer.py212 except Exception as e:CODE
LOWextensions_built_in/captioner/Qwen3VLCaptioner.py121 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/Qwen3VLCaptioner.py122 print(f"Error processing {file_path}: {e}")CODE
LOWextensions_built_in/captioner/AceStepCaptioner.py259 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/AceStepCaptioner.py260 print(f"Error processing {file_path}: {e}")CODE
LOWextensions_built_in/captioner/BaseCaptioner.py122 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/BaseCaptioner.py123 print(f"Error captioning file {file_path}: {e}")CODE
LOWextensions_built_in/captioner/BaseCaptioner.py215 except Exception as e:CODE
LOWextensions_built_in/captioner/BaseCaptioner.py258 except Exception:CODE
LOWextensions_built_in/captioner/BaseCaptioner.py421 except Exception as db_err:CODE
LOWextensions_built_in/captioner/BaseCaptioner.py435 except Exception as e:CODE
LOWextensions_built_in/captioner/Ideogram4Captioner.py181 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/Ideogram4Captioner.py182 print(f"Error processing {file_path}: {e}")CODE
LOWtesting/test_vae.py64 except Exception as e:CODE
MEDIUMtesting/test_vae.py65 print(f"Error processing {img_path}: {e}")CODE
LOWtesting/test_ltx_dataloader.py176 except Exception:CODE
LOWtesting/test_ltx_dataloader.py201 except Exception as e:CODE
LOWtesting/test_ltx_dataloader.py208 except Exception:CODE
LOWtesting/test_ltx_dataloader.py219 except Exception:CODE
LOWtesting/test_ltx_dataloader.py224 except Exception:CODE
LOWtesting/generate_weight_mappings.py299 except Exception as e:CODE
MEDIUMtesting/generate_weight_mappings.py300 print(f"Error on key {ldm_key}")CODE
MEDIUMscripts/convert_diffusers_to_comfy_transformer_only.py56 print("Error: Cannot use both --do_8_bit and --do_8bit_scaled at the same time.")CODE
MEDIUMscripts/convert_diffusers_to_comfy_transformer_only.py63 print(f"Error: Missing transformer folder: {diffusers_path}")CODE
MEDIUMscripts/convert_diffusers_to_comfy_transformer_only.py70 print(f"Error: Missing transformer index json: {original_json_path}")CODE
MEDIUMscripts/convert_diffusers_to_comfy_transformer_only.py286 print(f"Error: Missing transformer safetensors file: {file}")CODE
LOWscripts/add_mask_dataset.py84 except Exception:CODE
LOWscripts/add_mask_dataset.py102 except Exception:CODE
LOWscripts/add_mask_dataset.py128 except Exception:CODE
MEDIUMscripts/add_mask_dataset.py196 print(f"Error: {img_dir} is not a directory")CODE
MEDIUMscripts/add_mask_dataset.py211 print(f"Error: no images found in {img_dir}")CODE
MEDIUMscripts/update_sponsors.py91 print(f"Error fetching Patreon data: {e}")CODE
MEDIUMscripts/update_sponsors.py109 print("Error: Neither GITHUB_USERNAME nor GITHUB_ORG is set")CODE
MEDIUMscripts/update_sponsors.py211 print(f"Error fetching GitHub sponsors data: {e}")STRING
MEDIUMscripts/update_sponsors.py287 print(f"Error: Missing required environment variables: {', '.join(missing_vars)}")CODE
LOWscripts/repair_dataset_folder.py39 except Exception as e:CODE
MEDIUMscripts/repair_dataset_folder.py40 print(f"Error opening {img_path}: {e}")CODE
LOWscripts/repair_dataset_folder.py51 except Exception as e:CODE
MEDIUMscripts/repair_dataset_folder.py52 print(f"Error rotating {img_path}: {e}")CODE
94 more matches not shown…
Slop Phrases64 hits · 190 pts
SeverityFileLineSnippetContext
LOWflux_train_ui.py358 "Include sample prompts to test out your trained model. Don't forget to include your trigger word/sentenSTRING
MEDIUMconfig/examples/generate.example.yaml22 # here ate the flags you can use for prompts. Always start withCOMMENT
MEDIUMconfig/examples/train_lora_flex_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex_24gb.yaml81 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex_24gb.yaml98# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_flux_kontext_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_kontext_24gb.yaml74 # and then you can use this model.COMMENT
MEDIUMconfig/examples/train_lora_flux_kontext_24gb.yaml85 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_kontext_24gb.yaml103# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_sd35_large_24gb.yaml15 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_sd35_large_24gb.yaml77 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_sd35_large_24gb.yaml94# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUM…fig/examples/train_lora_qwen_image_edit_2509_32gb.yaml102# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_flex.yaml15 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_flex.yaml87 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_flex.yaml104# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_chroma_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_chroma_24gb.yaml84 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_chroma_24gb.yaml101# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_hidream_48.yaml22 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_hidream_48.yaml92 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_hidream_48.yaml109# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_wan21_14b_24gb.yaml18 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_14b_24gb.yaml90 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_14b_24gb.yaml98# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_omnigen2_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_omnigen2_24gb.yaml74 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_omnigen2_24gb.yaml91# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_lumina.yaml15 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_lumina.yaml76 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_lumina.yaml93# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_wan22_14b_24gb.yaml91 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan22_14b_24gb.yaml108# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_wan21_1b_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_1b_24gb.yaml79 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_1b_24gb.yaml87# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_flex_redux.yaml48 # for normal redux, we are just recreating the same image, so you can use the same folder path aboveCOMMENT
MEDIUMconfig/examples/train_flex_redux.yaml54 # this is what I used for the 24GB card, but feel free to adjustCOMMENT
MEDIUMconfig/examples/train_flex_redux.yaml109# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_flux_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_24gb.yaml76 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_24gb.yaml93# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_edit_32gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_edit_32gb.yaml99# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_flux_schnell_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_schnell_24gb.yaml78 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_schnell_24gb.yaml95# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_lumina.yaml15 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_lumina.yaml79 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_lumina.yaml96# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml18 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml135 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml138 # you can use a single inpaint or single control image on your samples.COMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml162# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_24gb.yaml75 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_24gb.yaml92# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/modal/modal_train_lora_flux_24gb.yaml14 # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/modal/modal_train_lora_flux_24gb.yaml76 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/modal/modal_train_lora_flux_24gb.yaml93# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
4 more matches not shown…
AI Structural Patterns108 hits · 106 pts
SeverityFileLineSnippetContext
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py280CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py331CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py1363CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py861CODE
LOW…ensions_built_in/audio_models/ace_step/src/pipeline.py75CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py248CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py582CODE
LOWextensions_built_in/diffusion_models/chroma/pipeline.py148CODE
LOW…/diffusion_models/prx_pixel_t2i/src/transformer_prx.py709CODE
LOW…nsions_built_in/diffusion_models/flux2/src/pipeline.py282CODE
LOW…ensions_built_in/diffusion_models/f_light/src/model.py309CODE
LOW…ions_built_in/diffusion_models/f_light/src/pipeline.py160CODE
LOW…in/diffusion_models/qwen_image/qwen_image_pipelines.py28CODE
LOW…usion_models/omnigen2/src/pipelines/image_processor.py49CODE
LOW…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py341CODE
LOW…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py494CODE
LOW…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py638CODE
LOW…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py346CODE
LOW…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py462CODE
LOW…nigen2/src/models/transformers/transformer_omnigen2.py215CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py54CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py114CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py298CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py611CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py1012CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py1052CODE
LOW…diffusion_models/omnigen2/src/ops/triton/layer_norm.py756CODE
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py205CODE
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py509CODE
LOW…_built_in/diffusion_models/boogu_image/src/pipeline.py130CODE
LOW…ions_built_in/diffusion_models/wan22/wan22_pipeline.py46CODE
LOW…n/diffusion_models/zeta_chroma/zeta_chroma_pipeline.py60CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py341CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py569CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py773CODE
LOW…/src/pipelines/hidream_image/pipeline_hidream_image.py291CODE
LOW…/src/pipelines/hidream_image/pipeline_hidream_image.py516CODE
LOW…lt_in/diffusion_models/hidream/src/models/attention.py9CODE
LOW…m/src/models/transformers/transformer_hidream_image.py237CODE
LOW…in/diffusion_models/hidream/src/hidream_o1/pipeline.py290CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py950CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py1876CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py2158CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py2245CODE
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py2381CODE
LOW…sion_models/hidream/src/schedulers/flash_flow_match.py67CODE
LOW…sion_models/hidream/src/schedulers/fm_solvers_unipc.py77CODE
LOW…s_built_in/diffusion_models/ernie_image/transformer.py152CODE
LOW…s_built_in/diffusion_models/ernie_image/transformer.py158CODE
LOW…s_built_in/diffusion_models/ernie_image/transformer.py295CODE
LOWextensions_built_in/dataset_tools/tools/fuyu_utils.py55CODE
LOWextensions_built_in/flex2/pipeline.py28CODE
LOWjobs/process/models/vgg19_critic.py72CODE
LOWjobs/process/models/critic.py106CODE
LOWtoolkit/config_modules.py1071CODE
LOWtoolkit/stable_diffusion_model.py1865CODE
LOWtoolkit/stable_diffusion_model.py2323CODE
LOWtoolkit/lorm.py54CODE
LOWtoolkit/photomaker_pipeline.py219CODE
LOWtoolkit/lora_special.py51CODE
48 more matches not shown…
Over-Commented Block74 hits · 74 pts
SeverityFileLineSnippetContext
LOWconfig/examples/generate.example.yaml21COMMENT
LOWconfig/examples/train_lora_flux_kontext_24gb.yaml21 dtype: float16 # precision to saveCOMMENT
LOWconfig/examples/train_lora_hidream_48.yaml1# HiDream training is still highly experimental. The settings here will take ~35.2GB of vram to train.COMMENT
LOWconfig/examples/train_lora_wan21_14b_24gb.yaml1# IMPORTANT: The Wan2.1 14B model is huge. This config should work on 24GB GPUs. It cannotCOMMENT
LOWconfig/examples/train_slider.example.yml1---COMMENT
LOWconfig/examples/train_slider.example.yml41 # for sliders we are adjusting representation of the concept (unet),COMMENT
LOWconfig/examples/train_slider.example.yml81 save_every: 50 # save every this many stepsCOMMENT
LOWconfig/examples/train_slider.example.yml141 # slider training config, best for lastCOMMENT
LOWconfig/examples/train_slider.example.yml161 # for example, if we are adjusting the representation of a person, we would use "person"COMMENT
LOWconfig/examples/train_slider.example.yml181 # max 76 tokens for nowCOMMENT
LOWconfig/examples/train_slider.example.yml201 # regardless if they are smiling or not, however, the closer the concept is to the target_classCOMMENT
LOWconfig/examples/train_slider.example.yml221# It is saved in the model so be aware of that. The software will include thisCOMMENT
LOWconfig/examples/train_lora_flex2_24gb.yaml41 # this will automatically generate the controls for you before training. The current script is not COMMENT
LOW…ns_built_in/concept_replacer/config/train.example.yaml81# The below is an example, but you can put your grocery list in it if you want.COMMENT
LOWextensions_built_in/diffusion_models/krea2/krea2.py201 # through the Qwen3-VL encoder alongside the prompt (edit-plus style, soCOMMENT
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py521COMMENT
LOW…sions_built_in/diffusion_models/chroma/src/__init__.py1# This is taken and slightly modified from https://github.com/lodestone-rock/flow/tree/master/src/models/chromaCOMMENT
LOW…/diffusion_models/prx_pixel_t2i/src/transformer_prx.py1# PRXTransformer2DModel -- vendored, self-contained copy of the Photoroom PRXCOMMENT
LOW…usion_models/omnigen2/src/pipelines/image_processor.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOW…in/diffusion_models/omnigen2/src/utils/import_utils.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOW…_in/diffusion_models/omnigen2/src/models/embeddings.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOW…dels/omnigen2/src/models/transformers/block_lumina2.py1COMMENT
LOW…src/schedulers/scheduling_flow_match_euler_discrete.py1# Copyright 2024 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOW…igen2/src/schedulers/scheduling_dpmsolver_multistep.py1# Copyright 2024 TSAIL Team and The HuggingFace Team. All rights reserved.COMMENT
LOW…ns_built_in/diffusion_models/hidream/src/models/moe.py81 # scores_for_seq_aux = scores_for_aux.view(bsz, seq_len, -1)COMMENT
LOW…ns_built_in/diffusion_models/hidream/src/models/moe.py121 x = x.view(-1, x.shape[-1])COMMENT
LOW…models/hidream/src/hidream_o1/qwen3_vl_transformers.py1# Copyright 2025 The Qwen Team and The HuggingFace Inc. team. All rights reserved.COMMENT
LOW…sion_models/hidream/src/schedulers/flash_flow_match.py1# Copyright 2024 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOW…ilt_in/diffusion_models/example_model/example_model.py81 # Class names of modules whose Linear layers get LoRA'd. Matched againstCOMMENT
LOW…ns_built_in/diffusion_models/example_model/__init__.py1# This is a documentation-only TEMPLATE model. Start with README.md in thisCOMMENT
LOW…s_built_in/diffusion_models/ernie_image/transformer.py1# Copyright 2025 Baidu ERNIE-Image Team and The HuggingFace Team. All rights reserved.COMMENT
LOWextensions_built_in/dataset_tools/tools/fuyu_utils.py61 # # autoregressively generate textCOMMENT
LOWextensions_built_in/dataset_tools/tools/sync_tools.py201# input_path = img_pathCOMMENT
LOWextensions_built_in/dataset_tools/tools/sync_tools.py221# img = cv2.imread(img_path)COMMENT
LOWextensions_built_in/dataset_tools/tools/sync_tools.py241# os.makedirs(os.path.dirname(img_path), exist_ok=True)COMMENT
LOWextensions_built_in/dataset_tools/tools/sync_tools.py261 # # update eq captionsCOMMENT
LOW…_built_in/advanced_generator/config/train.example.yaml81# The below is an example, but you can put your grocery list in it if you want.COMMENT
LOW…tensions_built_in/sd_trainer/config/train.example.yaml81# The below is an example, but you can put your grocery list in it if you want.COMMENT
LOW…ltimate_slider_trainer/UltimateSliderTrainerProcess.py361 # with torch.set_grad_enabled(self.train_config.train_text_encoder):COMMENT
LOWextensions/example/ExampleMergeModels.py41 # checking requirements. This is called before the run() functionCOMMENT
LOWtesting/test_bucket_dataloader.py61dataset_config = DatasetConfig(COMMENT
LOWtesting/test_bucket_dataloader.py101COMMENT
LOWscripts/convert_diffusers_to_comfy_transformer_only.py1#######################################################COMMENT
LOWscripts/convert_diffusers_to_comfy.py1#######################################################COMMENT
LOWjobs/process/TrainVAEProcess.py861 COMMENT
LOWjobs/process/TrainSliderProcess.py461 current_timestep,COMMENT
LOWjobs/process/TrainSliderProcess.py481 # prompt_pair.positive_target, # negative promptCOMMENT
LOWtoolkit/config_modules.py1281 # --h Specify the height of the generated image.COMMENT
LOWtoolkit/inversion_utils.py241 return noisy_sample, zs, xtsCOMMENT
LOWtoolkit/inversion_utils.py261# model.unet.sample_size,COMMENT
LOWtoolkit/inversion_utils.py281# noisy_sample = xts[idx][None]COMMENT
LOWtoolkit/inversion_utils.py301# pred_original_sample = (noisy_sample - (1 - alpha_bar[t]) ** 0.5 * noise_pred) / alpha_bar[t] ** 0.5COMMENT
LOWtoolkit/dataloader_mixins.py1281 # image must be square. If it is not, we will resize/squish it so it is, that way we don't crop out dataCOMMENT
LOWtoolkit/ip_adapter.py201COMMENT
LOWtoolkit/custom_adapter.py281 else:COMMENT
LOWtoolkit/lycoris_special.py121 "Upsample2D",COMMENT
LOWtoolkit/guidance.py121 # [baseline_conditional_noisy_latents, baseline_unconditional_noisy_latents],COMMENT
LOWtoolkit/pipelines.py441 # denoising_end=denoising_end,COMMENT
LOWtoolkit/util/convrot_quant.py1141COMMENT
LOWtoolkit/util/convrot_quant.py1201# near-gaussian so amax (~4 sigma) leaves the optimal-MSE step (~1.2 / 0.6COMMENT
14 more matches not shown…
Self-Referential Comments18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUM…ensions_built_in/diffusion_models/chroma/src/layers.py229 # Create a 2D meshgrid of coordinates.COMMENT
MEDIUM…ensions_built_in/diffusion_models/chroma/src/layers.py237 # Create a 1D tensor of frequency values from 0 to max_freqs-1.COMMENT
MEDIUMextensions_built_in/sd_trainer/DiffusionTrainer.py35 # Create a thread pool for database operationsCOMMENT
MEDIUMextensions_built_in/sd_trainer/DiffusionTrainer.py96 # Create a task and track itCOMMENT
MEDIUMextensions_built_in/sd_trainer/UITrainer.py29 # Create a thread pool for database operationsCOMMENT
MEDIUMextensions_built_in/sd_trainer/UITrainer.py88 # Create a task and track itCOMMENT
MEDIUMextensions_built_in/captioner/BaseCaptioner.py71 # Create a thread pool for database operationsCOMMENT
MEDIUMextensions_built_in/captioner/BaseCaptioner.py270 # Create a task and track itCOMMENT
MEDIUMtesting/shrink_pixart_sm.py43# Create a new state dict for the reduced modelCOMMENT
MEDIUMtesting/shrink_pixart_sm3.py35# Create a new state dict for the reduced modelCOMMENT
MEDIUMtesting/shrink_pixart_sm2.py45# Create a new state dict for the reduced modelCOMMENT
MEDIUMscripts/convert_diffusers_to_comfy_transformer_only.py361 # Define the float8 rangeCOMMENT
MEDIUMscripts/convert_diffusers_to_comfy.py355 # Define the float8 rangeCOMMENT
MEDIUMtoolkit/style.py34 # Define the separate loss functionCOMMENT
MEDIUMtoolkit/dataloader_mixins.py88 # Define the normalization transformCOMMENT
MEDIUMtoolkit/dataloader_mixins.py1033 # Create a background with the specified transparent colorCOMMENT
MEDIUMtoolkit/util/mask.py69 # Create a low-frequency noise field first (for smooth organic shapes)COMMENT
MEDIUMtoolkit/util/shuffle.py38 # Create a slice object to shuffle along the specified axisCOMMENT
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGH…igen2/src/pipelines/omnigen2/pipeline_omnigen2_chat.py286 Get prompt embeddings from the Qwen2 text encoder. Args: prompt: The prompt or list of proSTRING
HIGH…s/omnigen2/src/pipelines/omnigen2/pipeline_omnigen2.py274 Get prompt embeddings from the Qwen2 text encoder. Args: prompt: The prompt or list of proSTRING
HIGH…elines/hidream_image/pipeline_hidream_image_editing.py809 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHextensions_built_in/flex2/pipeline.py52 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/train_pipelines.py45 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/pipelines.py327 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/pipelines.py867 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/pipelines.py1475 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
AI Slop Vocabulary16 hits · 28 pts
SeverityFileLineSnippetContext
LOWconfig/examples/train_slider.example.yml18 # just use one for nowCOMMENT
MEDIUMconfig/examples/train_slider.example.yml188 # this will make the LoRA more robust. You probably want this on unless prompt orderCOMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml121 # if you are not training with it. Controls are a little more robust and can be left out,COMMENT
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py87 image, # will contain a dict that can be dumped ditectly into encode_video, just add output_path to it.CODE
MEDIUM…uilt_in/diffusion_models/prx_pixel_t2i/src/pipeline.py53 # called by the sampler harness (inside a try/except, so optional)COMMENT
LOW…m/src/models/transformers/transformer_hidream_image.py322 # the implementation on hidream during train was wrong, just use the inference one.COMMENT
MEDIUM…uilt_in/diffusion_models/example_model/src/pipeline.py79 # called by the sampler harness (inside a try/except, so optional);COMMENT
LOWjobs/process/BaseExtractProcess.py60 # we will just add process it to the end of the filename if there is more than one processCOMMENT
LOWtoolkit/stable_diffusion_model.py1694 # todo, should we just use the Text encoder for the refiner? Fine tuned versions will differCOMMENT
LOWtoolkit/stable_diffusion_model.py1914 # if we only have 1 timestep, we can just use the same timestep for allCOMMENT
LOWtoolkit/stable_diffusion_model.py2009 # just use the first second text encoderCOMMENT
LOWtoolkit/stable_diffusion_model.py2024 # just use the first second text encoderCOMMENT
LOWtoolkit/control_generator.py122 # just pass the PIL image straight through.COMMENT
LOWtoolkit/models/base_model.py842 # if we only have 1 timestep, we can just use the same timestep for allCOMMENT
LOWtoolkit/models/te_adapter.py399 # just use aura pileSTRING
LOWtoolkit/optimizers/optimizer_utils.py197 # If no dtype specified, just pass through to parentCOMMENT
Redundant / Tautological Comments18 hits · 27 pts
SeverityFileLineSnippetContext
LOWrun_modal.py81# Check if we have DEBUG_TOOLKIT in envCOMMENT
LOWrun_modal.py83 # Set torch to trace modeCOMMENT
LOW…ions_built_in/diffusion_models/f_light/src/pipeline.py224 # Check if guidance is neededCOMMENT
LOW…elines/hidream_image/pipeline_hidream_image_editing.py1096 # Check if we need to switch from editing stage to refining stageSTRING
LOWscripts/update_sponsors.py274 # Check if required environment variables are setCOMMENT
LOWtoolkit/timer.py38 # Check if this timer's buffer exceeds max_buffer and remove the oldest if it doesCOMMENT
LOWtoolkit/extension.py42 # Check if the value is a listCOMMENT
LOWtoolkit/extension.py44 # Iterate over the list and add the classes to the main listCOMMENT
LOWtoolkit/dequantize.py65 # Check if the parameter existsCOMMENT
LOWtoolkit/train_tools.py226 if not chunk.eq(chunk[0, 0]).all(): # Check if all elements in the chunk are the same as the first elementCODE
LOWtoolkit/data_transfer_object/data_loader.py105 # Check if video opened successfullyCOMMENT
LOWtoolkit/util/get_model.py35 # Check if the value is a listCOMMENT
LOWtoolkit/util/get_model.py37 # Iterate over the list and add the classes to the main listCOMMENT
LOWtoolkit/optimizers/automagic.py185 # Check if exp_avg_sq_row and exp_avg_sq_col exist for factored caseCOMMENT
LOWtoolkit/optimizers/automagic.py193 # Check if exp_avg_sq exists for non-factored caseCOMMENT
LOWtoolkit/optimizers/automagic.py323 # Check if lr_mask exists in the state before trying to access itCOMMENT
LOWtoolkit/optimizers/automagic.py337 # Check if state_dict has the expected structureCOMMENT
LOWtoolkit/optimizers/automagic.py339 # Check if at least one state entry has an lr_mask, which is specific to AutomagicCOMMENT
Verbosity Indicators10 hits · 20 pts
SeverityFileLineSnippetContext
LOWui/src/hooks/useJobLossLog.tsx42 // Step 1: get key list (we can do this by calling endpoint once; it returns keys)COMMENT
LOWui/src/hooks/useJobLossLog.tsx53 // Step 2: fetch each loss key incrementally (since_step per key if polling)COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py345 # Step 1: modulation for both streams.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py362 # Step 2: joint attention on [instruct + img].COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py389 # Step 3: image self-attention.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py397 # Step 4: residual updates.COMMENT
LOWtoolkit/basic.py45 # Step 1: Calculate mean and variance of content featuresCOMMENT
LOWtoolkit/basic.py49 # Step 2: Calculate mean and variance of style featuresCOMMENT
LOWtoolkit/basic.py53 # Step 3: Normalize content featuresCOMMENT
LOWtoolkit/basic.py57 # Step 4: Scale and shift normalized content with style's statisticsCOMMENT
Structural Annotation Overuse10 hits · 20 pts
SeverityFileLineSnippetContext
LOWui/src/hooks/useJobLossLog.tsx42 // Step 1: get key list (we can do this by calling endpoint once; it returns keys)COMMENT
LOWui/src/hooks/useJobLossLog.tsx53 // Step 2: fetch each loss key incrementally (since_step per key if polling)COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py345 # Step 1: modulation for both streams.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py362 # Step 2: joint attention on [instruct + img].COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py389 # Step 3: image self-attention.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py397 # Step 4: residual updates.COMMENT
LOWtoolkit/basic.py45 # Step 1: Calculate mean and variance of content featuresCOMMENT
LOWtoolkit/basic.py49 # Step 2: Calculate mean and variance of style featuresCOMMENT
LOWtoolkit/basic.py53 # Step 3: Normalize content featuresCOMMENT
LOWtoolkit/basic.py57 # Step 4: Scale and shift normalized content with style's statisticsCOMMENT
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWextensions_built_in/diffusion_models/krea2/__init__.py3__all__ = ["Krea2Model"]CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py418 def set_attention_backend(self, backend: str) -> None:CODE
LOW…ns_built_in/diffusion_models/prx_pixel_t2i/__init__.py3__all__ = ["PRXPixelT2IModel"]CODE
LOW…ions_built_in/diffusion_models/f_light/src/__init__.py5__all__ = ["FLitePipeline", "FLitePipelineOutput", "APGConfig", "DiT"]CODE
LOW…ions_built_in/diffusion_models/f_light/src/pipeline.py19logger = logging.getLogger(__name__)CODE
LOW…on_models/omnigen2/src/models/transformers/__init__.py3__all__ = ["OmniGen2Transformer2DModel"]CODE
LOW…ions_built_in/diffusion_models/boogu_image/__init__.py4__all__ = ["BooguImageModel", "BooguImageEditModel"]CODE
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py690 def set_attention_backend(self, backend: str) -> None:CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py34logger = logging.getLogger(__name__)CODE
LOW…ns_built_in/diffusion_models/example_model/__init__.py12__all__ = ["ExampleModel"]CODE
LOWtoolkit/optimizers/automagic2.py103 def _update_param(self, p: torch.Tensor, group: dict) -> None:CODE
LOWtoolkit/optimizers/automagic3.py396 def _update_param(self, p: torch.Tensor, group: dict) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtoolkit/ip_adapter.py1152 yield from self.image_encoder.vision_model.embeddings.position_embedding.parameters(recurse)CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHconfig/examples/train_slider.example.yml166 # you can leave it blank to affect everything. In this example, we are adjustingCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHui_scripts/upsample_ideogram4_caption.py295 '({"index": i, "caption": {...}|null}) instead of a single final list.'CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtoolkit/unloader.py24CODE