AI Slop Code RIsk Monitor

ostris/ai-toolkit

The ultimate training toolkit for finetuning diffusion models

17.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ostris/ai-toolkit, a Python project with 12,265 GitHub stars. SynthScan examined 223,411 lines of code across 769 source files, recording 2548 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 17.4 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.4
Adjusted Signal
17.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
12.3K
Stars
Python
Language
223.4K
Lines of Code
769
Files
2.5K
Pattern Hits
2026-10-12
Scan Date
0.16
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 26.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1161 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.7/100 · LOW

Are imports declared and package/API names verified? 728 finding(s).

Agent Over-Engineering Ratio 41.8/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 1272 finding(s).

PR Review Velocity Impact 59.6/100 · HIGH

Which changes need focused human review? 2548 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 124MEDIUM 436LOW 1987

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2548 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators299 hits · 940 pts
SeverityFileLineSnippetContext
MEDIUMrun_mac.zsh11# ── Banner ─────────────────────────────────────────────────────────COMMENT
MEDIUMrun_mac.zsh25# ── 1. Ensure uv (prebuilt static binary, kept inside the repo) ─────COMMENT
MEDIUMrun_mac.zsh54# ── 3. Sync the environment and start the UI ────────────────────────COMMENT
MEDIUMrun_linux.sh12# ── Banner ─────────────────────────────────────────────────────────COMMENT
MEDIUMrun_linux.sh26# ── 1. Ensure uv (prebuilt static binary, kept inside the repo) ─────COMMENT
MEDIUMrun_linux.sh55# ── 3. Sync the environment and start the UI ────────────────────────COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py31# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py33# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py78# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py80# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py436# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py438# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py526# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py528# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py989# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py991# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1190# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1192# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1238# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1240# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1358# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1360# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1482# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/ace_step/src/model.py1484# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py249 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py251 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/audio_models/yue2/yue2_model.py339 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/audio_models/yue2/yue2_model.py341 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py407 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py409 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py587 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py590 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py706 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/audio_models/yue2/yue2_model.py708 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/audio_models/yue2/yue2_model.py782 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/audio_models/yue2/yue2_model.py784 # ------------------------------------------------------------------COMMENT
MEDIUM…s_built_in/audio_models/yue2/src/sheetsage_generate.py139 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py179 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py181 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py320 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py323 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py404 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py406 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py521 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py523 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py563 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py565 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py640 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py642 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py704 # ------------------------------------------------------------------COMMENT
MEDIUM…built_in/diffusion_models/qwen_image_2/qwen_image_2.py706 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/diffusion_models/krea2/krea2.py702 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/diffusion_models/krea2/krea2.py704 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/diffusion_models/krea2/krea2.py706 # ------------------------------------------------------------------COMMENT
MEDIUM⚡extensions_built_in/diffusion_models/krea2/krea2.py708 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py208 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py210 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py407 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py409 # ------------------------------------------------------------------COMMENT
MEDIUMextensions_built_in/diffusion_models/krea2/krea2.py470 # ------------------------------------------------------------------COMMENT
239 more matches not shown…
Unused Imports724 hits · 686 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.py15CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py15CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py22CODE
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/audio_models/yue2/__init__.py1CODE
LOWextensions_built_in/audio_models/yue2/src/tokenizer.py12CODE
LOWextensions_built_in/audio_models/yue2/src/pipeline.py24CODE
LOW…ns_built_in/audio_models/yue2/src/shims/pretty_midi.py10CODE
LOW…built_in/audio_models/yue2/src/shims/mir_eval_chord.py28CODE
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
LOW…ons_built_in/diffusion_models/qwen_image_2/__init__.py1CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py68CODE
LOW…built_in/diffusion_models/qwen_image_2/src/pipeline.py18CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py33CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py50CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py52CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py52CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py62CODE
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.py18CODE
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.py26CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py6CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py16CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py16CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py17CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py18CODE
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.py20CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py26CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py9CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py9CODE
LOW…nsions_built_in/diffusion_models/ideogram4/__init__.py1CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py5CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py24CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py27CODE
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
LOWextensions_built_in/diffusion_models/ltx2/__init__.py1CODE
LOWextensions_built_in/diffusion_models/ltx2/__init__.py1CODE
LOWextensions_built_in/diffusion_models/ltx2/__init__.py1CODE
664 more matches not shown…
Hyper-Verbose Identifiers477 hits · 488 pts
SeverityFileLineSnippetContext
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py225 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py959 def enable_gradient_checkpointing(self):CODE
LOWextensions_built_in/audio_models/yue2/yue2_model.py318 def get_text_embedding_space_version(self):CODE
LOW⚡extensions_built_in/audio_models/yue2/yue2_model.py330 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW⚡extensions_built_in/audio_models/yue2/yue2_model.py785 def convert_lora_weights_before_save(self, state_dict):CODE
LOW⚡extensions_built_in/audio_models/yue2/yue2_model.py795 def convert_lora_weights_before_load(self, state_dict):CODE
LOWextensions_built_in/audio_models/yue2/src/model.py334 def get_transformer_block_names(cls):CODE
LOWextensions_built_in/audio_models/yue2/src/model.py338 def get_quantization_exclude_modules(cls):CODE
LOWextensions_built_in/audio_models/yue2/src/model.py349 def enable_gradient_checkpointing(self):CODE
LOWextensions_built_in/audio_models/yue2/src/model.py353 def disable_gradient_checkpointing(self):CODE
LOWextensions_built_in/audio_models/yue2/src/model.py405def _nar_lora_from_safetensors(path: str) -> dict:CODE
LOW…ns_built_in/audio_models/yue2/src/sheetsage_decoder.py126 def gradient_checkpointing_disable(self):CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py423 def text_embedding_uses_target_size(self) -> bool:CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py427 def get_text_embedding_space_version(self) -> str:CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py441 def _normalize_control_images(self, control_images, batch_size: int) -> List[List]:CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py721 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py724 def get_quantization_exclude_modules(self):CODE
LOW…t_in/diffusion_models/qwen_image_2/src/text_encoder.py39 def convert_state_dict_on_load(cls, state_dict):CODE
LOW…t_in/diffusion_models/qwen_image_2/src/text_encoder.py52 def convert_state_dict_on_save(cls, state_dict):CODE
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py929 def get_transformer_block_names(cls):STRING
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py933 def get_quantization_exclude_modules(cls):STRING
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py952 def convert_state_dict_on_load(cls, state_dict):STRING
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py1202 def convert_state_dict_on_load(cls, state_dict):STRING
LOWextensions_built_in/diffusion_models/krea2/krea2.py354 def get_quantization_exclude_modules(self):CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py536 def _batch_ref_latents_from_batch(CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py728 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py419 def get_offload_ignore_modules(self):CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py493 def enable_gradient_checkpointing(self):CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py496 def disable_gradient_checkpointing(self):CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py68 def get_transformer_block_names(self):CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py45 def get_transformer_block_names(self):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py58def modify_mask_to_attend_padding(mask, max_seq_length, num_extra_padding=8):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py97 def aitk_config_from_state_dict(cls, state_dict):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py122 def get_transformer_block_names(cls):CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py209 def enable_gradient_checkpointing(self, enable: bool = True):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py72def modify_mask_to_attend_padding(mask, max_seq_length, num_extra_padding=8):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py111 def aitk_config_from_state_dict(cls, state_dict):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py136 def get_transformer_block_names(cls):CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py257 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.py116def _load_component_state_dict(base: str, subfolder: str, basename: str) -> dict:CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py202 def text_embedding_space_version(self):CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py576 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py364 def get_transformer_block_names(cls):CODE
LOW…built_in/diffusion_models/ideogram4/src/transformer.py367 def get_offload_ignore_modules(self):CODE
LOW⚡…built_in/diffusion_models/ideogram4/src/transformer.py425 def enable_gradient_checkpointing(self):CODE
LOW⚡…built_in/diffusion_models/ideogram4/src/transformer.py428 def disable_gradient_checkpointing(self):CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py133def update_state_dict_inplace(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py206def split_transformer_and_connector_state_dict(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py919def get_model_state_dict_from_combined_ckpt(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py1068def convert_lora_original_to_diffusers(CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py1102def convert_lora_diffusers_to_original(CODE
LOW⚡extensions_built_in/diffusion_models/ltx2/ltx2.py1147 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
LOW⚡extensions_built_in/diffusion_models/ltx2/ltx2.py1152 def convert_lora_weights_before_save(self, state_dict):CODE
LOW⚡extensions_built_in/diffusion_models/ltx2/ltx2.py1156 def convert_lora_weights_before_load(self, state_dict):CODE
LOW…ilt_in/diffusion_models/prx_pixel_t2i/prx_pixel_t2i.py277 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.py315 def get_transformer_block_names(self) -> Optional[List[str]]:CODE
417 more matches not shown…
Empty Error Handlers56 hits · 280 pts
SeverityFileLineSnippetContext
HIGH…sions_built_in/audio_models/yue2/src/shims/__init__.py14except ImportError:CODE
HIGH…ensions_built_in/diffusion_models/omnigen2/__init__.py217except Exception as e:CODE
HIGH…ons_built_in/diffusion_models/minimax_h3/minimax_h3.py1386except Exception:CODE
HIGH…_in/diffusion_models/minimax_h3/src/ref_video_cache.py271except Exception:CODE
HIGH…elines/hidream_image/pipeline_hidream_image_editing.py1091except Exception as e:CODE
HIGH…elines/hidream_image/pipeline_hidream_image_editing.py1101except Exception as e:CODE
HIGH…t_in/diffusion_models/ming_image/src/bailing_moe_v2.py444except RuntimeError:CODE
HIGHextensions_built_in/dataset_tools/tools/image_tools.py35except Exception as e:CODE
HIGHextensions_built_in/inference_engine/engine.py249except Exception:CODE
HIGHextensions_built_in/inference_engine/engine.py648except ValueError:CODE
HIGHextensions_built_in/inference_engine/InferenceEngine.py144except FileNotFoundError:CODE
HIGHextensions_built_in/inference_engine/InferenceEngine.py161except Exception:CODE
HIGHextensions_built_in/inference_engine/InferenceEngine.py90except Exception:CODE
HIGHextensions_built_in/inference_engine/InferenceEngine.py149except Exception:CODE
HIGHextensions_built_in/sd_trainer/SDTrainer.py1051except:CODE
HIGHextensions_built_in/sd_trainer/SDTrainer.py446except:CODE
HIGHextensions_built_in/sd_trainer/DiffusionTrainer.py310except Exception as e:CODE
HIGHextensions_built_in/sd_trainer/UITrainer.py212except Exception as e:CODE
HIGHextensions_built_in/captioner/Qwen3OmniCaptioner.py273except RuntimeError:CODE
HIGHextensions_built_in/captioner/Qwen3OmniCaptioner.py722except Exception:CODE
HIGHextensions_built_in/captioner/BaseCaptioner.py510except Exception as e:CODE
HIGHextensions_built_in/captioner/Qwen25OmniCaptioner.py223except Exception:CODE
HIGHtesting/stage_profiler.py58except Exception:CODE
HIGHtesting/test_ltx_dataloader.py219except Exception:CODE
HIGHtesting/test_ltx_dataloader.py224except Exception:CODE
HIGHmanager/env.py653except (OSError, subprocess.TimeoutExpired):CODE
HIGHmanager/spec.py283except (TypeError, ValueError):CODE
HIGHmanager/doctor.py159except OSError:CODE
HIGHmanager/doctor.py38except RuntimeError:CODE
HIGHtoolkit/ui_job_status.py125except Exception:CODE
HIGHtoolkit/stable_diffusion_model.py2403except Exception as e:CODE
HIGHtoolkit/stable_diffusion_model.py1313except:CODE
HIGHtoolkit/stable_diffusion_model.py2241except Exception as e:CODE
HIGHtoolkit/kohya_model_util.py1399except:CODE
HIGHtoolkit/cuda_malloc.py82except:CODE
HIGHtoolkit/lora_special.py625except:CODE
HIGHtoolkit/accelerator.py18except Exception as e:CODE
HIGHtoolkit/train_tools.py637except Exception as e:CODE
HIGHtoolkit/models/base_model.py506except:CODE
HIGHtoolkit/models/base_model.py1028except Exception as e:CODE
HIGHtoolkit/models/base_model.py1103except Exception as e:CODE
HIGHtoolkit/models/v2/_mixin.py573except OSError:CODE
HIGHtoolkit/models/v2/pool.py38except Exception:CODE
HIGHtoolkit/models/v2/pool.py188except Exception:CODE
HIGHtoolkit/memory_management/manager.py475except Exception:CODE
HIGHtoolkit/memory_management/manager.py157except Exception:CODE
HIGHtoolkit/memory_management/manager.py327except Exception:CODE
HIGHtoolkit/memory_management/manager.py72except (TypeError, RuntimeError):CODE
HIGHtoolkit/memory_management/manager.py366except Exception:CODE
HIGHtoolkit/memory_management/manager.py467except Exception:CODE
HIGHtoolkit/memory_management/manager.py380except Exception:CODE
HIGHtoolkit/memory_management/manager_modules.py170except Exception:CODE
HIGHtoolkit/memory_management/manager_modules.py193except Exception:CODE
HIGHtoolkit/memory_management/manager_modules.py247except RuntimeError:CODE
HIGHtoolkit/memory_management/manager_modules.py226except Exception:CODE
HIGHtoolkit/memory_management/manager_modules.py776except RuntimeError:CODE
Cross-File Repetition56 hits · 280 pts
SeverityFileLineSnippetContext
HIGH…nsions_built_in/diffusion_models/krea2/src/pipeline.py0lightweight sampler used by ai-toolkit's preview generation.STRING
HIGH…ns_built_in/diffusion_models/ideogram4/src/pipeline.py0lightweight sampler used by ai-toolkit's preview generation.STRING
HIGH…ons_built_in/diffusion_models/mageflow/src/pipeline.py0lightweight sampler used by ai-toolkit's preview generation.STRING
HIGH…_built_in/diffusion_models/boogu_image/src/pipeline.py0lightweight sampler used by ai-toolkit's preview generation.STRING
HIGH…sions_built_in/diffusion_models/iris3b/src/pipeline.py0lightweight 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 Nesting306 hits · 278 pts
SeverityFileLineSnippetContext
LOWflux_train_ui.py25CODE
LOWui_scripts/upsample_ideogram4_caption.py132CODE
LOWui_scripts/merge_loras.py36CODE
LOWextensions_built_in/audio_models/yue2/yue2_model.py630CODE
LOWextensions_built_in/audio_models/yue2/src/model.py358CODE
LOWextensions_built_in/audio_models/yue2/src/tokenizer.py79CODE
LOW…s_built_in/audio_models/yue2/src/sheetsage_generate.py36CODE
LOW…ns_built_in/audio_models/yue2/src/shims/pretty_midi.py35CODE
LOW…built_in/audio_models/yue2/src/shims/mir_eval_chord.py69CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py284CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py323CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py630CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py1641CODE
LOWextensions_built_in/diffusion_models/chroma/pipeline.py148CODE
LOW…sions_built_in/diffusion_models/chroma/chroma_model.py101CODE
LOW…lt_in/diffusion_models/chroma/chroma_radiance_model.py78CODE
LOW…tensions_built_in/diffusion_models/chroma/src/model.py97CODE
LOW…sions_built_in/diffusion_models/chroma/src/radiance.py111CODE
LOW…ensions_built_in/diffusion_models/chroma/src/layers.py92CODE
LOW…ns_built_in/diffusion_models/ideogram4/src/pipeline.py312CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py919CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py974CODE
LOW…_in/diffusion_models/ltx2/convert_ltx2_to_diffusers.py1020CODE
LOWextensions_built_in/diffusion_models/ltx2/ltx2.py821CODE
LOW…ensions_built_in/diffusion_models/flux2/flux2_model.py286CODE
LOWextensions_built_in/diffusion_models/anima/anima.py203CODE
LOWextensions_built_in/diffusion_models/iris3b/src/dit.py604CODE
LOW…in/diffusion_models/qwen_image/qwen_image_edit_plus.py251CODE
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.py964CODE
LOW…ons_built_in/diffusion_models/minimax_h3/minimax_h3.py538CODE
LOW…ons_built_in/diffusion_models/minimax_h3/minimax_h3.py772CODE
LOW…ilt_in/diffusion_models/minimax_h3/src/text_encoder.py117CODE
LOW…s_built_in/diffusion_models/minimax_h3/src/pipeline.py65CODE
LOW…nsions_built_in/diffusion_models/minimax_h3/src/vae.py715CODE
LOW…built_in/diffusion_models/z_image/z_image_l2p_model.py291CODE
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.py466CODE
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
LOW…ilt_in/diffusion_models/ming_image/src/text_encoder.py219CODE
LOW…ilt_in/diffusion_models/ming_image/src/text_encoder.py296CODE
LOW…ilt_in/diffusion_models/ming_image/src/text_encoder.py367CODE
246 more matches not shown…
Excessive Try-Catch Wrapping224 hits · 275 pts
SeverityFileLineSnippetContext
LOW⚡run.py127 except Exception as e:CODE
LOW⚡run.py132 except Exception as e2:CODE
LOW⚡run.py140 except Exception as e2:CODE
LOWrun_modal.py135 except Exception as e:CODE
MEDIUMrun_modal.py136 print(f"Error running job: {e}")CODE
LOWextensions_built_in/audio_models/yue2/src/model.py433 except Exception:CODE
LOWextensions_built_in/audio_models/yue2/src/pipeline.py201 except Exception as e: # capture unsupported for these ops/kernels: eager pathCODE
LOW…built_in/diffusion_models/qwen_image_2/qwen_image_2.py279 except Exception as e:CODE
LOWextensions_built_in/diffusion_models/krea2/krea2.py292 except Exception as e:CODE
LOW…sions_built_in/diffusion_models/ideogram4/ideogram4.py302 except Exception as e:CODE
LOW…ensions_built_in/diffusion_models/omnigen2/__init__.py217 except Exception as e:CODE
LOW…ons_built_in/diffusion_models/minimax_h3/minimax_h3.py317 except Exception as e:CODE
LOW…ons_built_in/diffusion_models/minimax_h3/minimax_h3.py1386 except Exception:CODE
LOW…_in/diffusion_models/minimax_h3/src/ref_video_cache.py271 except Exception:CODE
LOW…ilt_in/diffusion_models/minimax_h3/src/text_encoder.py50 except Exception:CODE
MEDIUM…ilt_in/diffusion_models/minimax_h3/src/text_encoder.py44def video_has_audio(path) -> bool:CODE
LOW…nsions_built_in/diffusion_models/minimax_h3/src/vsa.py53 except Exception:CODE
LOWextensions_built_in/diffusion_models/z_image/z_image.py95 except Exception as e:CODE
LOW…_built_in/diffusion_models/hidream/hidream_o1_model.py179 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
LOW…ons_built_in/diffusion_models/ming_image/ming_image.py224 except Exception as e:CODE
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/inference_engine/engine.py214 except Exception:CODE
LOWextensions_built_in/inference_engine/engine.py249 except Exception:CODE
LOWextensions_built_in/inference_engine/engine.py272 except Exception as e:CODE
LOWextensions_built_in/inference_engine/engine.py688 except Exception as e:CODE
LOWextensions_built_in/inference_engine/engine.py735 except Exception as e:CODE
LOWextensions_built_in/inference_engine/InferenceEngine.py90 except Exception:CODE
LOWextensions_built_in/inference_engine/InferenceEngine.py149 except Exception:CODE
LOWextensions_built_in/inference_engine/InferenceEngine.py161 except Exception:CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py150 except Exception:CODE
LOWextensions_built_in/sd_trainer/SDTrainer.py1016 except Exception as e:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py84 except Exception:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py310 except Exception as e:CODE
LOWextensions_built_in/sd_trainer/DiffusionTrainer.py334 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/Qwen3OmniCaptioner.py722 except Exception:CODE
LOWextensions_built_in/captioner/Qwen3OmniCaptioner.py881 except Exception as e:CODE
LOWextensions_built_in/captioner/Qwen3OmniCaptioner.py914 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/Qwen3OmniCaptioner.py915 print(f"Error preprocessing {path}: {e}")CODE
LOWextensions_built_in/captioner/Qwen3OmniCaptioner.py963 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/Qwen3OmniCaptioner.py964 print(f"Error processing {file_path}: {e}")CODE
LOWextensions_built_in/captioner/Qwen3VLCaptioner.py156 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/Qwen3VLCaptioner.py157 print(f"Error processing {file_path}: {e}")CODE
LOW⚡extensions_built_in/captioner/AceStepCaptioner.py631 except Exception as e:CODE
MEDIUM⚡extensions_built_in/captioner/AceStepCaptioner.py632 print(f"Error preprocessing {path}: {e}")CODE
LOW⚡extensions_built_in/captioner/AceStepCaptioner.py637 except Exception as e:CODE
MEDIUM⚡extensions_built_in/captioner/AceStepCaptioner.py638 print(f"Error processing {path}: {e}")CODE
LOWextensions_built_in/captioner/AceStepCaptioner.py649 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/AceStepCaptioner.py650 print(f"Error processing {file_path}: {e}")CODE
LOWextensions_built_in/captioner/BaseCaptioner.py136 except Exception as e:CODE
MEDIUMextensions_built_in/captioner/BaseCaptioner.py137 print(f"Error captioning file {file_path}: {e}")CODE
LOWextensions_built_in/captioner/BaseCaptioner.py258 except Exception as e:CODE
LOWextensions_built_in/captioner/BaseCaptioner.py329 except Exception:CODE
LOWextensions_built_in/captioner/BaseCaptioner.py496 except Exception as db_err:CODE
164 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.yaml82 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex_24gb.yaml99# 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.yaml86 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_kontext_24gb.yaml104# 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.yaml78 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_sd35_large_24gb.yaml95# 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.yaml103# 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.yaml88 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_flex.yaml105# 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.yaml85 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_chroma_24gb.yaml102# 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.yaml93 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_hidream_48.yaml110# 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.yaml91 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_14b_24gb.yaml99# 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.yaml75 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_omnigen2_24gb.yaml92# 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.yaml77 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_lumina.yaml94# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
MEDIUMconfig/examples/train_lora_wan22_14b_24gb.yaml92 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan22_14b_24gb.yaml109# 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.yaml80 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_wan21_1b_24gb.yaml88# 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.yaml110# 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.yaml77 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_24gb.yaml94# 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.yaml100# 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.yaml79 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flux_schnell_24gb.yaml96# 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.yaml80 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_full_fine_tune_lumina.yaml97# 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.yaml136 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml139 # you can use a single inpaint or single control image on your samples.COMMENT
MEDIUMconfig/examples/train_lora_flex2_24gb.yaml163# 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.yaml76 # you can add [trigger] to the prompts here and it will be replaced with the trigger wordCOMMENT
MEDIUMconfig/examples/train_lora_qwen_image_24gb.yaml93# 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.yaml77 # 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.yaml94# you can add any additional meta info here. [name] is replaced with config name at topCOMMENT
4 more matches not shown…
AI Structural Patterns136 hits · 132 pts
SeverityFileLineSnippetContext
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py269CODE
LOW…ns_built_in/audio_models/ace_step/ace_step_15_model.py320CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py1378CODE
LOWextensions_built_in/audio_models/ace_step/src/model.py891CODE
LOW…ensions_built_in/audio_models/ace_step/src/pipeline.py75CODE
LOWextensions_built_in/audio_models/yue2/src/pipeline.py232CODE
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py716CODE
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py975CODE
LOW…built_in/diffusion_models/qwen_image_2/src/pipeline.py350CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py630CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py929CODE
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py1218CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py269CODE
LOWextensions_built_in/diffusion_models/krea2/src/mmdit.py611CODE
LOWextensions_built_in/diffusion_models/chroma/pipeline.py148CODE
LOW…/diffusion_models/prx_pixel_t2i/src/transformer_prx.py717CODE
LOW…nsions_built_in/diffusion_models/flux2/src/pipeline.py286CODE
LOW…ensions_built_in/diffusion_models/f_light/src/model.py317CODE
LOW…ions_built_in/diffusion_models/f_light/src/pipeline.py160CODE
LOW…sions_built_in/diffusion_models/iris3b/src/pipeline.py81CODE
LOWextensions_built_in/diffusion_models/iris3b/src/dit.py639CODE
LOWextensions_built_in/diffusion_models/iris3b/src/dit.py704CODE
LOW…in/diffusion_models/qwen_image/qwen_image_pipelines.py28CODE
LOW…_built_in/diffusion_models/mageflow/src/transformer.py260CODE
LOW…tensions_built_in/diffusion_models/mageflow/src/vae.py437CODE
LOW…tensions_built_in/diffusion_models/mageflow/src/vae.py499CODE
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.py225CODE
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.py518CODE
LOW…_built_in/diffusion_models/boogu_image/src/pipeline.py130CODE
LOW…s_built_in/diffusion_models/minimax_h3/src/pipeline.py65CODE
LOW…nsions_built_in/diffusion_models/minimax_h3/src/vae.py457CODE
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.py245CODE
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
76 more matches not shown…
Over-Commented Block93 hits · 92 pts
SeverityFileLineSnippetContext
LOWspark_requirements.txt1# NVIDIA RTX Spark — native Windows-on-ARM (win_arm64) requirement set.COMMENT
LOWui/src/utils/terminalEmulator.ts1// Minimal terminal emulator for rendering job logs the way a real terminalCOMMENT
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# You can put any information you want here, and it will be saved in the model.COMMENT
LOW…lt_in/diffusion_models/qwen_image_2/src/transformer.py1# Copyright 2026 Qwen-Image Team, The HuggingFace Team. All rights reserved.COMMENT
LOW…ions_built_in/diffusion_models/qwen_image_2/src/vae.py1# Copyright 2026 The Qwen Team and The HuggingFace Team. All rights reserved.COMMENT
LOWextensions_built_in/diffusion_models/krea2/krea2.py181 # image sequence at t=0 (ComfyUI Kontext "index_timestep_zero"). Runs inCOMMENT
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…minimax_h3/src/vsa_kernels/block_sparse_attn_triton.py21# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────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…uilt_in/diffusion_models/ming_image/src/transformer.py1# Copyright 2025 Alibaba Z-Image Team 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# You can put any information you want here, and it will be saved in the model.COMMENT
LOWextensions_built_in/sd_trainer/SDTrainer.py2321 print_acc("loss is nan")COMMENT
LOW…tensions_built_in/sd_trainer/config/train.example.yaml81# You can put any information you want here, and it will be saved in the model.COMMENT
LOWextensions_built_in/captioner/Qwen3OmniCaptioner.py321 top_k = top_k_index.shape[-1]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/test_quantizations.py41import torch # noqa: E402COMMENT
LOWscripts/convert_diffusers_to_comfy.py1#######################################################COMMENT
LOWjobs/process/TrainVAEProcess.py861 COMMENT
LOWjobs/process/BaseSDTrainProcess.py1821 torch.backends.cuda.enable_mem_efficient_sdp(True)COMMENT
LOWjobs/process/TrainSliderProcess.py461 current_timestep,COMMENT
LOWjobs/process/TrainSliderProcess.py481 # prompt_pair.positive_target, # negative promptCOMMENT
LOWtoolkit/config_modules.py1061 # threads that decode/resize the images of one bucketed batch concurrently inside aCOMMENT
LOWtoolkit/config_modules.py1441 # --d Specify the seed for the generated image.COMMENT
LOWtoolkit/data_loader.py781 # boot new worker processes every epoch, which can take longer than the epochCOMMENT
LOWtoolkit/inversion_utils.py241 return noisy_sample, zs, xtsCOMMENT
33 more matches not shown…
Self-Referential Comments19 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUM…ions_built_in/diffusion_models/qwen_image_2/src/vae.py543 # Create the componentsSTRING
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.py83 # Create a thread pool for database operationsCOMMENT
MEDIUMextensions_built_in/captioner/BaseCaptioner.py341 # 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.py92 # Define the normalization transformCOMMENT
MEDIUMtoolkit/dataloader_mixins.py1253 # 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.py50 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/pipelines.py590 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
HIGHtoolkit/pipelines.py1198 Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[stSTRING
AI Slop Vocabulary17 hits · 32 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.py93 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.py330 # 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.py1797 # todo, should we just use the Text encoder for the refiner? Fine tuned versions will differCOMMENT
LOWtoolkit/stable_diffusion_model.py2018 # if we only have 1 timestep, we can just use the same timestep for allCOMMENT
LOWtoolkit/stable_diffusion_model.py2113 # just use the first second text encoderCOMMENT
LOWtoolkit/stable_diffusion_model.py2128 # just use the first second text encoderCOMMENT
LOWtoolkit/control_generator.py122 # just pass the PIL image straight through.COMMENT
LOWtoolkit/models/base_model.py954 # 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
MEDIUMtoolkit/optimizers/automagicEXPERIMENT.py394 # unchanged keeps every property that made v3 robust. A window of HCOMMENT
Redundant / Tautological Comments18 hits · 27 pts
SeverityFileLineSnippetContext
LOWrun_modal.py80# Check if we have DEBUG_TOOLKIT in envCOMMENT
LOWrun_modal.py82 # 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
LOW⚡toolkit/extension.py42 # Check if the value is a listCOMMENT
LOW⚡toolkit/extension.py44 # Iterate over the list and add the classes to the main listCOMMENT
LOWtoolkit/dequantize.py69 # 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.py136 # 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
Modern Structural Boilerplate23 hits · 24 pts
SeverityFileLineSnippetContext
LOW…ons_built_in/diffusion_models/qwen_image_2/__init__.py3__all__ = ["QwenImage2Model"]CODE
LOWextensions_built_in/diffusion_models/krea2/__init__.py3__all__ = ["Krea2Model"]CODE
LOW⚡…built_in/diffusion_models/ideogram4/src/transformer.py431 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
LOWextensions_built_in/diffusion_models/iris3b/__init__.py3__all__ = ["Iris3BModel"]CODE
LOW…ensions_built_in/diffusion_models/mageflow/src/attn.py73__all__ = ["flash_attn_varlen_func"]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.py699 def set_attention_backend(self, backend: str) -> None:CODE
LOW…elines/hidream_image/pipeline_hidream_image_editing.py34logger = logging.getLogger(__name__)CODE
LOW…sions_built_in/diffusion_models/ming_image/__init__.py3__all__ = ["MingImageModel"]CODE
LOW…ns_built_in/diffusion_models/example_model/__init__.py12__all__ = ["ExampleModel"]CODE
LOWtoolkit/network_mixins.py182 def _set_runtime_scale(self: Module, value) -> None:CODE
LOWtoolkit/kohya_lora.py81 def _set_runtime_scale(self, value) -> None:CODE
LOWtoolkit/optimizers/automagic2.py103 def _update_param(self, p: torch.Tensor, group: dict) -> None:CODE
LOWtoolkit/optimizers/automagic3.py413 def _update_param(self, p: torch.Tensor, group: dict) -> None:CODE
LOWtoolkit/audio/moss_music/configuration.py135__all__ = ["MossMusicEncoderConfig", "MossMusicConfig"]CODE
LOWtoolkit/audio/moss_music/__init__.py27__all__ = [CODE
LOWtoolkit/audio/moss_music/processing.py250__all__ = ["MelConfig", "MossMusicProcessor"]CODE
LOWtoolkit/audio/moss_music/modeling.py564__all__ = [CODE
LOWtoolkit/audio/melbandroformer/__init__.py4__all__ = [CODE
Verbosity Indicators10 hits · 20 pts
SeverityFileLineSnippetContext
LOWui/src/hooks/useJobLossLog.tsx43 // Step 1: get key list (we can do this by calling endpoint once; it returns keys)COMMENT
LOWui/src/hooks/useJobLossLog.tsx54 // Step 2: fetch each loss key incrementally (since_step per key if polling)COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py347 # Step 1: modulation for both streams.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py364 # Step 2: joint attention on [instruct + img].COMMENT
LOW⚡…ilt_in/diffusion_models/boogu_image/src/transformer.py391 # Step 3: image self-attention.COMMENT
LOW⚡…ilt_in/diffusion_models/boogu_image/src/transformer.py399 # Step 4: residual updates.COMMENT
LOW⚡toolkit/basic.py50 # Step 1: Calculate mean and variance of content featuresCOMMENT
LOW⚡toolkit/basic.py54 # Step 2: Calculate mean and variance of style featuresCOMMENT
LOW⚡toolkit/basic.py58 # Step 3: Normalize content featuresCOMMENT
LOW⚡toolkit/basic.py62 # Step 4: Scale and shift normalized content with style's statisticsCOMMENT
Structural Annotation Overuse10 hits · 20 pts
SeverityFileLineSnippetContext
LOWui/src/hooks/useJobLossLog.tsx43 // Step 1: get key list (we can do this by calling endpoint once; it returns keys)COMMENT
LOWui/src/hooks/useJobLossLog.tsx54 // Step 2: fetch each loss key incrementally (since_step per key if polling)COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py347 # Step 1: modulation for both streams.COMMENT
LOW…ilt_in/diffusion_models/boogu_image/src/transformer.py364 # Step 2: joint attention on [instruct + img].COMMENT
LOW⚡…ilt_in/diffusion_models/boogu_image/src/transformer.py391 # Step 3: image self-attention.COMMENT
LOW⚡…ilt_in/diffusion_models/boogu_image/src/transformer.py399 # Step 4: residual updates.COMMENT
LOW⚡toolkit/basic.py50 # Step 1: Calculate mean and variance of content featuresCOMMENT
LOW⚡toolkit/basic.py54 # Step 2: Calculate mean and variance of style featuresCOMMENT
LOW⚡toolkit/basic.py58 # Step 3: Normalize content featuresCOMMENT
LOW⚡toolkit/basic.py62 # Step 4: Scale and shift normalized content with style's statisticsCOMMENT
Cross-Language Confusion3 hits · 12 pts
SeverityFileLineSnippetContext
HIGHui_scripts/upsample_ideogram4_caption.py295 '({"index": i, "caption": {...}|null}) instead of a single final list.'CODE
HIGHextensions_built_in/audio_models/yue2/yue2_model.py507 """Next-token CE over ``ids`` (and KL(base || lora) when ``ar_kl_weight`` > 0), computed inSTRING
HIGHmanager/env.py633 'cmd /s /c "call "%s" >nul && set"' % vcvars,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
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMextensions_built_in/inference_engine/PLANNING.md126 engine.py # Engine: request queue, holder cache, pool orchestrationCODE
MEDIUMtoolkit/models/lokr.py351 # org_forward here does raw CUDA stream/event orchestration andCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtoolkit/unloader.py22CODE