AI Slop Code RIsk Monitor

axolotl-ai-cloud/axolotl

Go ahead and axolotl questions

22.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for axolotl-ai-cloud/axolotl, a Python project with 12,554 GitHub stars. SynthScan examined 368,570 lines of code across 1843 source files, recording 6413 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 22.2 (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.

22.2
Adjusted Signal
22.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
12.6K
Stars
Python
Language
368.6K
Lines of Code
1.8K
Files
6.4K
Pattern Hits
2026-10-12
Scan Date
0.09
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 51.0/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 9.6/100 · LOW

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

Agent Over-Engineering Ratio 59.3/100 · HIGH

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

PR Review Velocity Impact 67.2/100 · HIGH

Which changes need focused human review? 6413 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 6HIGH 167MEDIUM 459LOW 5781

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 6413 distinct pattern matches across 25 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.

Hyper-Verbose Identifiers4418 hits · 4384 pts
SeverityFileLineSnippetContext
LOWtests/test_bailing_hybrid_modeling.py93 def test_layer_types_alternate_kda_and_mla(self, config, model):CODE
LOWtests/test_bailing_hybrid_modeling.py107 def test_published_checkpoint_loads_unchanged(self, config, model, tmp_path):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py120 def test_save_restores_published_layout(self, config, model, tmp_path):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py126 def test_layer_types_ignore_a_stale_serialized_value(self, config):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py136 def test_layer_types_survive_a_round_trip(self, config, tmp_path):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py143 def test_multi_token_prediction_weights_are_not_reported_missing(self):CODE
LOWtests/test_bailing_hybrid_modeling.py172 def test_matches_the_lower_bound_activation(self, attention):CODE
LOWtests/test_bailing_hybrid_modeling.py186 def test_zero_pre_activation_is_half_the_bound(self, attention):CODE
LOWtests/test_bailing_hybrid_modeling.py200 def test_stays_within_the_bound(self, attention):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py212 def test_splits_on_every_restart(self):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py217 def test_unpacked_batch_needs_no_varlen(self):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py223 def test_chunk_starting_mid_document(self):CODE
LOW⚡tests/test_bailing_hybrid_modeling.py229 def test_batched_packing_splits_rows_and_restarts(self):CODE
LOWtests/test_bailing_hybrid_modeling.py243 def test_both_attention_branches_receive_position_ids(self, model):CODE
LOWtests/test_bailing_hybrid_modeling.py275 def test_packed_documents_match_separate_forwards(self, model):CODE
LOWtests/test_bailing_hybrid_modeling.py286 def test_second_document_is_unaffected_by_the_first(self, model):CODE
LOWtests/test_bailing_hybrid_modeling.py311 def test_packed_batch_splits_documents(self, model):CODE
LOWtests/test_bailing_hybrid_modeling.py336 def test_segment_id_mask_still_splits_documents(self, model):CODE
LOWtests/test_processing_strategy_dispatch.py41def test_model_type_is_preferred_over_chat_template(monkeypatch):CODE
LOWtests/test_processing_strategy_dispatch.py69def test_absent_model_type_falls_back_to_chat_template(monkeypatch):CODE
LOWtests/test_processing_strategy_dispatch.py93def test_no_registry_key_collides_with_a_chat_template_name():CODE
LOWtests/test_native_diffusion_model_support.py97def test_native_descriptors_publish_immutable_specs_and_generic_peft_wrapper():CODE
LOWtests/test_native_diffusion_model_support.py124def test_native_lora_validation_rejects_unsafe_modes_and_unscoped_targets():CODE
LOWtests/test_native_diffusion_model_support.py154def test_diffusion_gemma_self_conditioning_module_is_trainable_and_saved(tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py195def test_tied_text_lora_shares_factors_and_rejects_unequal_loaded_duplicates():CODE
LOWtests/test_native_diffusion_model_support.py263def test_packed_diffusion_gemma_subclass_keeps_encoder_cache_in_one_forward():CODE
LOWtests/test_native_diffusion_model_support.py303def test_packed_diffusion_gemma_subclass_unrolls_inside_ddp_forward():CODE
LOWtests/test_native_diffusion_model_support.py336def test_packed_diffusion_gemma_bypasses_native_decoder_mask_creator(monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py345 def mask_creator_must_not_run(*args, **kwargs):CODE
LOWtests/test_native_diffusion_model_support.py382def test_tied_lora_full_native_save_reload_merge_and_export(tmp_path, monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py442def test_tied_lora_rejects_partially_targeted_actual_alias_group():CODE
LOWtests/test_native_diffusion_model_support.py463def test_dream_factory_pins_code_and_weights(source, revision, monkeypatch, tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py520def test_dream_factory_from_config_removes_loader_only_kwargs(monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py554def test_dream_factory_builds_tiny_cached_audited_source():CODE
LOWtests/test_native_diffusion_model_support.py659def test_dream_factory_from_pretrained_resets_nonpersistent_rope_buffers(tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py715def test_native_diffusion_gemma_merge_dispatches_to_loaded_peft_path(monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py733def test_native_diffusion_gemma_rejects_explicit_efficient_merge():CODE
LOWtests/test_native_diffusion_model_support.py747def test_trainable_token_adapter_routes_to_efficient_merge(monkeypatch, tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py822def test_merged_export_preserves_valid_decision_manifest(tmp_path, monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py872def test_native_generation_dispatches_and_preserves_legacy_seam():CODE
LOWtests/test_native_diffusion_model_support.py919def test_native_nemotron_generation_dispatches_configurable_steps():CODE
LOWtests/test_native_diffusion_model_support.py931 def generate_with_denoising_steps(self, prompt, **kwargs):CODE
LOWtests/test_native_diffusion_model_support.py964def test_native_generation_runs_tiny_diffusion_gemma_model_output():CODE
LOWtests/test_native_diffusion_model_support.py985def test_native_diffusion_gemma_infill_preserves_pinned_canvas_tokens(steps):CODE
LOWtests/test_native_diffusion_model_support.py1029def test_native_generation_runs_tiny_dream_tensor_output():CODE
LOWtests/test_native_diffusion_model_support.py1087def test_native_cli_uses_completion_by_default_and_routes_native_infill(monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py1160def test_native_cli_commands_preserve_completion_and_reject_mask_infill():CODE
LOWtests/test_native_diffusion_model_support.py1178def test_native_generation_callback_samples_sft_completion_suffix():CODE
LOWtests/test_native_diffusion_model_support.py1225def test_nemotron_factory_accepts_flex_attention():CODE
LOWtests/test_native_diffusion_model_support.py1270def test_nemotron_configurable_steps_preserve_source_default_and_allow_large_k():CODE
LOWtests/test_native_diffusion_model_support.py1348def test_nemotron_tiny_source_mask_loss_and_generic_peft_contract(tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py1512def test_nemotron_trainable_token_rows_survive_loaded_peft_merge(tmp_path):CODE
LOWtests/test_native_diffusion_model_support.py1595def test_dream_generation_config_resolves_remote_utils_through_peft(monkeypatch):CODE
LOWtests/test_native_diffusion_model_support.py1635def test_axolotl_subclass_built_first_keeps_grouped_mm_experts():CODE
LOWtests/test_native_diffusion_model_support.py1656def test_diffusion_gemma_lora_targets_may_be_listed_per_path():CODE
LOWtests/test_glm_dsa_cp_validation.py21def test_config_validation_recovers_inherited_defaults():CODE
LOWtests/test_glm_dsa_cp_validation.py40def test_config_validation_recovers_known_none_defaults():CODE
LOWtests/test_glm_dsa_cp_validation.py56def test_config_validation_retry_accepts_field_names():CODE
LOWtests/test_glm_dsa_cp_validation.py77 def test_dsa_cp_skips_flash_and_ring_requirement(self, monkeypatch):CODE
LOWtests/test_glm_dsa_cp_validation.py90 def test_cp_without_dsa_uses_builtin_plugin(self, monkeypatch):CODE
4358 more matches not shown…
Decorative Section Separators383 hits · 1283 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_ebft_kernels.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py164# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py166# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_ebft_kernels.py239# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/integrations/kernels/test_gemma4_moe.py175# ============================================================================COMMENT
MEDIUM⚡tests/integrations/kernels/test_gemma4_moe.py177# ============================================================================COMMENT
MEDIUM⚡tests/integrations/kernels/test_gemma4_moe.py446# ============================================================================COMMENT
MEDIUM⚡tests/integrations/kernels/test_gemma4_moe.py448# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py24# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py26# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py120# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py122# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py500# ============================================================================COMMENT
MEDIUMtests/integrations/kernels/test_gemma4_moe.py502# ============================================================================COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py45# ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py121# ─── Model shape configs ────────────────────────────────────────────────────COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py139# ─── Forward tests ──────────────────────────────────────────────────────────COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py186# ─── Backward dX tests ──────────────────────────────────────────────────────COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py220# ─── Backward LoRA gradient tests ───────────────────────────────────────────COMMENT
MEDIUM…egrations/kernels/scattermoe_lora/test_lora_kernels.py291# ─── Full autograd tests ────────────────────────────────────────────────────COMMENT
MEDIUM…/scattermoe_lora/test_scattermoe_lora_int64_indices.py63# ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/scattermoe_lora/test_scattermoe_lora_int64_indices.py79# ─── Parity tests at non-overflow shapes (bitwise identity) ──────────────────COMMENT
MEDIUM…/scattermoe_lora/test_scattermoe_lora_int64_indices.py300# ─── Overflow correctness at the bench shape ─────────────────────────────────COMMENT
MEDIUM…/scattermoe_lora/test_scattermoe_lora_int64_indices.py463# ─── Smaller-shape overflow (runs on L40S / 24 GiB GPUs) ─────────────────────COMMENT
MEDIUM…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py190# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py192# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py295# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py297# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/kernels/scattermoe_lora/test_mxfp4_expert_weights.py187# ─── Strategy A — bitwise identity vs bf16 baseline ───────────────────────────COMMENT
MEDIUM…s/kernels/scattermoe_lora/test_mxfp4_expert_weights.py292# ─── Strategy A — backward through fused dX/gather paths ──────────────────────COMMENT
MEDIUM…s/kernels/scattermoe_lora/test_mxfp4_expert_weights.py410# ─── Strategy B — fused MXFP4 Triton kernel ──────────────────────────────────COMMENT
MEDIUM…ons/kernels/scattermoe_lora/test_autotune_telemetry.py16# ---------------------------------------------------------------------------COMMENT
MEDIUM…ons/kernels/scattermoe_lora/test_autotune_telemetry.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…ons/kernels/scattermoe_lora/test_autotune_telemetry.py85# =========================================================================COMMENT
MEDIUM…ons/kernels/scattermoe_lora/test_autotune_telemetry.py87# =========================================================================COMMENT
MEDIUM⚡…ons/kernels/scattermoe_lora/test_autotune_telemetry.py211# =========================================================================COMMENT
MEDIUM⚡…ons/kernels/scattermoe_lora/test_autotune_telemetry.py213# =========================================================================COMMENT
MEDIUM⚡…ons/kernels/scattermoe_lora/test_autotune_telemetry.py366# =========================================================================COMMENT
MEDIUM⚡…ons/kernels/scattermoe_lora/test_autotune_telemetry.py368# =========================================================================COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py156# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py158# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py201# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM…kernels/scattermoe_lora/test_nvfp4_weight_converter.py254# ---------------------------------------------------------------------------COMMENT
MEDIUM…kernels/scattermoe_lora/test_nvfp4_weight_converter.py256# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py272# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kernels/scattermoe_lora/test_nvfp4_weight_converter.py274# ---------------------------------------------------------------------------COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py72# ===========================================================================COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py74# ===========================================================================COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py159# ===========================================================================COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py161# ===========================================================================COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py351# ===========================================================================COMMENT
MEDIUM…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py353# ===========================================================================COMMENT
MEDIUM⚡…ions/kernels/scattermoe_lora/test_grouped_fp4_train.py218# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ions/kernels/scattermoe_lora/test_grouped_fp4_train.py221# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ions/kernels/scattermoe_lora/test_grouped_fp4_train.py229# ===========================================================================COMMENT
323 more matches not shown…
Empty Error Handlers102 hits · 510 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py225except LocalEntryNotFoundError:CODE
HIGHtests/core/test_async_grpo.py236except ValueError:CODE
HIGHtests/core/test_builders.py404except Exception:CODE
HIGHtests/utils/lora/test_merge_lora.py2338except RuntimeError:CODE
HIGHtests/integrations/test_swanlab.py1333except ValueError:CODE
HIGHtests/telemetry/test_errors.py406except ValueError:CODE
HIGHtests/e2e/utils.py55except Exception: # pylint: disable=broad-exceptCODE
HIGHtests/e2e/multigpu/solo/test_grpo.py140except FileNotFoundError:CODE
HIGHtests/e2e/integrations/test_hooks.py30except FileNotFoundError:CODE
HIGHtests/e2e/integrations/test_hooks.py186except FileNotFoundError:CODE
HIGHtests/monkeypatch/test_kernelize_fixes.py183except (TypeError, ValueError, AttributeError):CODE
HIGHtests/monkeypatch/test_qwen3_fused_attn_robustness.py18except AttributeError:CODE
HIGHtests/monkeypatch/test_nf4_loading.py1936except BaseException: # pylint: disable=broad-exceptCODE
HIGHtests/monkeypatch/test_qwen3_fused_attn.py17except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_fused_attn.py198except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_fused_attn.py232except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_fused_attn.py211except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_fused_attn_defensive.py19except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_5_fused_attn.py17except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_5_fused_attn.py168except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_5_fused_attn.py329except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_5_fused_attn.py182except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_5_fused_attn.py340except AttributeError:CODE
HIGHtests/monkeypatch/test_qwen3_vl_fused_attn.py16except AttributeError:CODE
HIGHtests/monkeypatch/test_gemma4_fused_attn.py105except AttributeError:CODE
HIGHtests/monkeypatch/test_gemma4_fused_attn.py145except AttributeError:CODE
HIGHtests/monkeypatch/test_gemma4_fused_attn.py117except AttributeError:CODE
HIGHtests/monkeypatch/test_gemma4_fused_attn.py169except AttributeError:CODE
HIGHscripts/analyze_profile.py1388except Exception:CODE
HIGHsrc/axolotl/train.py517except (AttributeError, UnicodeDecodeError, OfflineModeIsEnabled):CODE
HIGHsrc/axolotl/train.py419except FileNotFoundError:CODE
HIGHsrc/axolotl/core/builders/causal.py564except (AttributeError, KeyError, TypeError):CODE
HIGHsrc/axolotl/core/trainers/base.py839except (ValueError, TypeError, FileNotFoundError):CODE
HIGHsrc/axolotl/core/trainers/ebft/strided.py51except ImportError:CODE
HIGHsrc/axolotl/core/trainers/grpo/fast_async_trainer.py337except Exception:CODE
HIGHsrc/axolotl/core/trainers/grpo/fast_async_trainer.py341except Exception:CODE
HIGHsrc/axolotl/core/trainers/grpo/fast_async_trainer.py445except Exception:CODE
HIGHsrc/axolotl/core/trainers/diffusion_lm/tokens.py23except Exception:CODE
HIGHsrc/axolotl/core/trainers/diffusion_lm/tokens.py106except Exception:CODE
HIGHsrc/axolotl/core/trainers/diffusion_lm/tokens.py100except Exception:CODE
HIGHsrc/axolotl/core/trainers/diffusion_lm/trainer.py144except Exception:CODE
HIGHsrc/axolotl/utils/tee.py162except Exception:CODE
HIGHsrc/axolotl/utils/tee.py41except Exception:CODE
HIGHsrc/axolotl/utils/tee.py70except Exception:CODE
HIGHsrc/axolotl/utils/quantization.py37except (ImportError, RuntimeError):CODE
HIGHsrc/axolotl/utils/quantization.py46except (ImportError, RuntimeError):CODE
HIGHsrc/axolotl/utils/quantization.py53except (ImportError, RuntimeError):CODE
HIGHsrc/axolotl/utils/quantization.py62except (ImportError, RuntimeError):CODE
HIGHsrc/axolotl/utils/quantization.py231except ImportError:CODE
HIGHsrc/axolotl/utils/callbacks/generation.py83except (ImportError, Exception):CODE
HIGHsrc/axolotl/utils/callbacks/swanlab.py245except ImportError:CODE
HIGHsrc/axolotl/utils/data/shared.py191except (FileNotFoundError, ConnectionError):CODE
HIGHsrc/axolotl/utils/data/lock.py70except FileNotFoundError:CODE
HIGHsrc/axolotl/cli/config.py81except ValueError:CODE
HIGHsrc/axolotl/cli/config.py85except ValueError:CODE
HIGHsrc/axolotl/cli/chat.py1235except ImportError:CODE
HIGHsrc/axolotl/cli/utils/lora_merge.py363except ImportError:CODE
HIGHsrc/axolotl/integrations/nemo_gym/server.py98except (requests.exceptions.ConnectionError, requests.exceptions.Timeout):CODE
HIGHsrc/axolotl/integrations/nemo_gym/plugin.py542except Exception:CODE
HIGHsrc/axolotl/integrations/nemo_gym/plugin.py244except (ValueError, KeyError, TypeError):CODE
42 more matches not shown…
Unused Imports481 hits · 463 pts
SeverityFileLineSnippetContext
LOWtests/test_native_diffusion_model_support.py3CODE
LOWtests/test_diffusion_model_support.py3CODE
LOWtests/test_fp32_norms.py3CODE
LOWtests/test_vectorized_scanner.py21CODE
LOWtests/test_train_seed_initialization.py3CODE
LOWtests/test_process_labels_fusion.py9CODE
LOWtests/test_mm_collator_warnings.py3CODE
LOWtests/test_no_legacy_attn_reads.py8CODE
LOWtests/native_source_fixtures.py3CODE
LOWtests/core/trainers/diffusion_lm/test_weighting.py3CODE
LOWtests/core/trainers/diffusion_lm/test_encoder_canvas.py3CODE
LOWtests/utils/test_cuda13.py3CODE
LOWtests/utils/test_quantization_init_guard.py81CODE
LOWtests/integrations/test_context_parallel_glm_dsa_cp.py19CODE
LOWtests/integrations/test_diffusion_config.py3CODE
LOWtests/integrations/kernels/test_gemma4_moe.py453CODE
LOW…rnels/scattermoe_lora/test_scattermoe_lora_m_bucket.py22CODE
LOWtests/integrations/kernels/scattermoe_lora/conftest.py19CODE
LOW…/scattermoe_lora/test_scattermoe_lora_int64_indices.py33CODE
LOW…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py25CODE
LOW…ns/kernels/scattermoe_lora/test_nvfp4_fsdp_sharding.py27CODE
LOW…s/kernels/scattermoe_lora/test_nvfp4_layout_offline.py17CODE
LOW…ons/kernels/scattermoe_lora/test_grouped_fp4_guards.py14CODE
LOW…grations/kernels/scattermoe_lora/bench_int64_kernel.py26CODE
LOW…kernels/scattermoe_lora/test_nvfp4_weight_converter.py22CODE
LOW…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py30CODE
LOW…ions/kernels/scattermoe_lora/test_grouped_fp4_train.py23CODE
LOW…termoe_lora/test_parallel_experts_large_batch_repro.py32CODE
LOW…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py15CODE
LOW…/scattermoe_lora/test_gates_backward_autocast_dtype.py13CODE
LOW…tions/kernels/scattermoe_lora/test_grouped_fp4_perf.py23CODE
LOW…els/scattermoe_lora/test_grouped_fp4_weight_scale_2.py24CODE
LOW…s/integrations/kernels/dsv4/test_dsv4_attention_ops.py36CODE
LOW…ntegrations/diffusion_decision/test_decision_unroll.py3CODE
LOWtests/integrations/diffusion_decision/test_images.py3CODE
LOW…egrations/diffusion_decision/test_training_collator.py1CODE
LOW…tions/diffusion_decision/test_decision_grad_through.py3CODE
LOW…integrations/diffusion_decision/test_slot_collation.py3CODE
LOW…/integrations/diffusion_decision/test_slot_sampling.py3CODE
LOW…ations/diffusion_decision/test_nemotron_free_varlen.py3CODE
LOWtests/integrations/diffusion_decision/test_trainer.py3CODE
LOWtests/integrations/diffusion_decision/helpers.py1CODE
LOW…grations/diffusion_decision/test_fixed_slot_runtime.py3CODE
LOW…/integrations/diffusion_decision/test_dataset_slots.py3CODE
LOW…rations/diffusion_decision/test_jsonl_normalization.py1CODE
LOWtests/integrations/liger/test_plugin.py374CODE
LOWtests/e2e/multigpu/_cpu_ram_efficient_load_probe.py10CODE
LOWtests/e2e/multigpu/test_fsdp2_fp32_norms.py11CODE
LOWtests/e2e/multigpu/_fp32_norms_dtype_capture.py9CODE
LOWtests/e2e/multigpu/solo/_sonicmoe_nvfp4_fsdp2_worker.py3CODE
LOWtests/monkeypatch/test_float8_fsdp_sharding.py20CODE
LOWtests/monkeypatch/test_torchao_ddp.py3CODE
LOWtests/monkeypatch/test_fsdp2_state_dict_naming.py20CODE
LOWtests/prompt_strategies/test_chat_templates_mistral.py9CODE
LOWcicd/deps_hash.py11CODE
LOWcicd/select_e2e_tests.py26CODE
LOWscripts/diffusion_lm/build_public_decision_mix.py8CODE
LOWscripts/diffusion_lm/build_public_image_decision_mix.py8CODE
LOWsrc/axolotl/train.py3CODE
LOWsrc/axolotl/train.py47CODE
421 more matches not shown…
Deep Nesting319 hits · 298 pts
SeverityFileLineSnippetContext
LOW.runpod/src/utils.py40CODE
LOW.runpod/src/utils.py59CODE
LOWtests/test_bailing_hybrid_modeling.py63CODE
LOWtests/test_vectorized_scanner.py364CODE
LOWtests/test_vectorized_scanner.py548CODE
LOWtests/test_process_labels_fusion.py232CODE
LOWtests/test_weighted_loss.py15CODE
LOWtests/core/test_async_grpo.py300CODE
LOWtests/core/trainers/diffusion_lm/test_full_sequence.py163CODE
LOWtests/utils/callbacks/test_dynamic_checkpoint.py178CODE
LOWtests/utils/callbacks/test_dynamic_checkpoint.py215CODE
LOWtests/utils/callbacks/test_dynamic_checkpoint.py255CODE
LOWtests/utils/callbacks/test_dynamic_checkpoint.py301CODE
LOWtests/utils/lora/_lora_tying_distributed.py150CODE
LOWtests/utils/lora/test_merge_lora.py2568CODE
LOW…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py331CODE
LOW…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py55CODE
LOWtests/integrations/diffusion_decision/test_trainer.py1748CODE
LOW…ts/integrations/diffusion_decision/test_permutation.py45CODE
LOW…s/integrations/context_parallel/_fla_mamba_cp_probe.py13CODE
LOW…ations/expert_parallel/_ep_checkpoint_resume_worker.py184CODE
LOWtests/e2e/multigpu/_ringmaster_parity.py20CODE
LOWtests/e2e/multigpu/_fla_cp_parity.py80CODE
LOW…u/solo/_native_nvfp4_deepspeed_lora_merge_lifecycle.py237CODE
LOW…ultigpu/solo/_native_nvfp4_fsdp2_lora_parity_worker.py258CODE
LOW…/solo/_native_nvfp4_fsdp2_merge_aware_resume_worker.py315CODE
LOW…tigpu/solo/_torchao_lora_deepspeed_zero3_checkpoint.py62CODE
LOW…lo/test_native_nvfp4_deepspeed_lora_merge_lifecycle.py22CODE
LOW…s/e2e/multigpu/solo/_native_nvfp4_tp_hf_load_worker.py17CODE
LOWtests/e2e/multigpu/solo/test_grpo.py25CODE
LOW…2e/multigpu/solo/_torchao_lora_deepspeed_checkpoint.py52CODE
LOWtests/monkeypatch/test_lora_kernels_nemotron_h.py29CODE
LOWtests/monkeypatch/test_gemma4_unified_fused_attn.py25CODE
LOWtests/monkeypatch/test_nf4_loading.py426CODE
LOWtests/monkeypatch/test_nf4_loading.py1160CODE
LOWtests/monkeypatch/_fsdp2_full_checkpoint.py385CODE
LOWtests/monkeypatch/_fsdp2_full_checkpoint.py734CODE
LOW…monkeypatch/test_peft_checkpoint_wrapper_state_dict.py15CODE
LOWtests/monkeypatch/_fsdp2_bnb_checkpoint.py349CODE
LOWtests/monkeypatch/_fsdp2_bnb_checkpoint.py433CODE
LOWtests/monkeypatch/test_fla_mamba.py431CODE
LOWtests/monkeypatch/_lora_fp32_deepspeed.py30CODE
LOWtests/monkeypatch/test_parallelism_mesh_order.py74CODE
LOWtests/prompt_strategies/test_chat_templates_advanced.py728CODE
LOWtests/prompt_strategies/test_chat_templates_advanced.py1409CODE
LOWdocs/scripts/generate_examples_docs.py94CODE
LOWdocs/scripts/generate_examples_docs.py215CODE
LOWdocs/scripts/generate_examples_docs.py286CODE
LOWdocs/scripts/generate_examples_docs.py107CODE
LOWdocs/scripts/generate_config_docs.py50CODE
LOWdocs/scripts/generate_config_docs.py126CODE
LOWdocs/scripts/generate_config_docs.py263CODE
LOWdocs/scripts/generate_config_docs.py438CODE
LOWdocs/scripts/generate_config_docs.py591CODE
LOWcicd/select_e2e_tests.py196CODE
LOWcicd/select_e2e_tests.py261CODE
LOWcicd/select_e2e_tests.py304CODE
LOWcicd/select_e2e_tests.py762CODE
LOWcicd/select_e2e_tests.py816CODE
LOWscripts/analyze_profile.py338CODE
259 more matches not shown…
Excessive Try-Catch Wrapping216 hits · 236 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_attn_implementation.py38def _xformers_available():CODE
LOWtests/test_attn_implementation.py56 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/core/test_builders.py404 except Exception:CODE
LOWtests/utils/lora/test_merge_lora.py2277 except Exception: # pragma: no coverCODE
LOWtests/utils/lora/test_merge_lora.py2287 except Exception as ex: # pragma: no cover - torchao API / device gapsCODE
LOWtests/utils/lora/test_merge_lora.py2383 except Exception: # pragma: no coverCODE
LOWtests/utils/lora/test_merge_lora.py2393 except Exception as ex: # pragma: no coverCODE
LOWtests/utils/lora/test_merge_lora.py3329 except Exception: # pragma: no coverCODE
LOWtests/utils/lora/test_merge_lora.py3342 except Exception as ex: # pragma: no coverCODE
MEDIUMtests/integrations/kernels/test_gemma4_moe.py451def _can_import_sonicmoe():CODE
LOW⚡tests/integrations/kernels/test_gemma4_moe.py456 except Exception:CODE
LOW…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py65 except Exception:CODE
MEDIUM…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py56def gpu_name() -> str:CODE
LOW…grations/kernels/scattermoe_lora/bench_int64_kernel.py59 except Exception:CODE
MEDIUM…grations/kernels/scattermoe_lora/bench_int64_kernel.py51def gpu_name() -> str:CODE
LOW…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py61 except Exception:CODE
LOW…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py371 except Exception:CODE
LOW…els/scattermoe_lora/test_grouped_fp4_weight_scale_2.py52 except Exception:CODE
LOW…sts/integrations/expert_parallel/test_torch_backend.py101 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…sts/integrations/expert_parallel/test_torch_backend.py104 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…sts/integrations/expert_parallel/test_torch_backend.py1241 except Exception: # pylint: disable=broad-exceptCODE
LOW…sts/integrations/expert_parallel/test_torch_backend.py1312 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/integrations/expert_parallel/test_nvfp4_wrap.py134 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMtests/integrations/expert_parallel/test_nvfp4_wrap.py65def _nvfp4_worker(rank, world_size, port, q, device="cpu"):CODE
LOWtests/e2e/utils.py55 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/e2e/utils.py66 except Exception: # pylint: disable=broad-exceptCODE
LOW…sts/e2e/kernels/test_lora_mlp_geglu_moe_correctness.py22except Exception: # pragma: no coverCODE
MEDIUMtests/e2e/kernels/test_scattermoe_lora_kernels.py42def wrapper(*args, **kwargs):CODE
LOW⚡tests/e2e/kernels/test_scattermoe_lora_kernels.py45 except Exception as exc: # pylint: disable=broad-exceptCODE
LOW…e/multigpu/solo/_native_nvfp4_tp_lora_parity_worker.py130 except Exception as exc:CODE
LOW…e/multigpu/solo/_native_nvfp4_tp_lora_parity_worker.py139 except Exception as exc:CODE
LOW…e/multigpu/solo/_native_nvfp4_tp_lora_parity_worker.py310 except Exception as error:CODE
LOWtests/monkeypatch/_fsdp2_full_checkpoint.py560 except Exception as exc:CODE
LOWtests/monkeypatch/test_sdpa_varlen.py173 except Exception: # pylint: disable=broad-exceptCODE
LOWdocs/scripts/generate_config_docs.py503 except Exception:CODE
LOWdocs/scripts/generate_config_docs.py607 except Exception as e:CODE
LOWcicd/select_e2e_tests.py953 except Exception: # pylint: disable=broad-exceptCODE
LOWexamples/orpheus/README.md79 except Exception as e:CODE
LOWexamples/orpheus/README.md240 except Exception as e:CODE
LOWscripts/analyze_profile.py1388 except Exception:CODE
LOWscripts/check_installed_axolotl.py35 except Exception as exc: # noqa: BLE001CODE
LOWscripts/check_installed_axolotl.py75 except Exception as exc: # noqa: BLE001CODE
LOWsrc/axolotl/train.py91 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWsrc/axolotl/kernels/quantize.py176 except Exception:CODE
LOWsrc/axolotl/kernels/autotune_telemetry.py38 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWsrc/axolotl/kernels/op_registry.py50 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOWsrc/axolotl/core/trainers/base.py962 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWsrc/axolotl/core/trainers/base.py995 except Exception as exc: # pylint: disable=broad-exceptCODE
LOW…c/axolotl/core/trainers/mixins/distributed_parallel.py215 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWsrc/axolotl/core/trainers/ebft/trainer.py501 except Exception as e:CODE
LOW⚡src/axolotl/core/trainers/grpo/fast_async_trainer.py208 except Exception:CODE
LOW⚡src/axolotl/core/trainers/grpo/fast_async_trainer.py337 except Exception:CODE
LOW⚡src/axolotl/core/trainers/grpo/fast_async_trainer.py341 except Exception:CODE
LOWsrc/axolotl/core/trainers/grpo/fast_async_trainer.py445 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py23 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py40 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py45 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py63 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py100 except Exception:CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/tokens.py106 except Exception:CODE
156 more matches not shown…
Magic Placeholder Names23 hits · 161 pts
SeverityFileLineSnippetContext
HIGH⚡examples/swanlab/dpo-swanlab-full-featured.yml13# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/dpo-swanlab-full-featured.yml145# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/dpo-swanlab-full-featured.yml147# swanlab_api_key: your-api-keyCOMMENT
HIGHexamples/swanlab/lora-swanlab-profiling.yml12# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/lora-swanlab-profiling.yml92# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/lora-swanlab-profiling.yml94# swanlab_api_key: your-api-keyCOMMENT
HIGHexamples/swanlab/README.md22export SWANLAB_API_KEY=your-api-keyCODE
HIGHexamples/swanlab/README.md43export SWANLAB_API_KEY=your-api-keyCODE
HIGHexamples/swanlab/README.md66export SWANLAB_API_KEY=your-api-keyCODE
HIGHexamples/swanlab/README.md149export SWANLAB_API_KEY=your-api-keyCODE
HIGHexamples/swanlab/README.md156swanlab_api_key: your-api-keyCODE
HIGHexamples/swanlab/custom_trainer_profiling.py247 export SWANLAB_API_KEY=your-api-keySTRING
HIGHexamples/swanlab/dpo-swanlab-completions.yml12# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/dpo-swanlab-completions.yml104# export SWANLAB_API_KEY=your-api-keyCOMMENT
HIGH⚡examples/swanlab/dpo-swanlab-completions.yml106# swanlab_api_key: your-api-keyCOMMENT
HIGHsrc/axolotl/integrations/swanlab/plugins.py88 " export SWANLAB_API_KEY=your-api-key\n"CODE
HIGHsrc/axolotl/integrations/swanlab/plugins.py89 " 2. Add 'swanlab_api_key: your-api-key' to config (less secure)\n"CODE
HIGHsrc/axolotl/integrations/swanlab/README.md46swanlab_api_key: YOUR_API_KEY # Optional: can also use env var SWANLAB_API_KEYCODE
HIGHsrc/axolotl/integrations/swanlab/README.md53export SWANLAB_API_KEY=your-api-key-hereCODE
HIGHsrc/axolotl/integrations/swanlab/README.md8411. Set environment variable: `export SWANLAB_API_KEY=your-api-key`CODE
HIGHsrc/axolotl/integrations/swanlab/README.md8422. Add to config (less secure): `swanlab_api_key: your-api-key`CODE
HIGHsrc/axolotl/integrations/swanlab/README.md938export SWANLAB_API_KEY=your-api-key-hereCODE
HIGHsrc/axolotl/integrations/swanlab/README.md949swanlab_api_key: your-api-key-hereCODE
Over-Commented Block117 hits · 108 pts
SeverityFileLineSnippetContext
LOW.runpod/requirements.txt1# Required Python packages get listed here, one per line.COMMENT
LOW.runpod/src/config/config.yaml1# # This is the huggingface model that contains *.pt, *.safetensors, or *.bin filesCOMMENT
LOW.runpod/src/config/config.yaml21# tokenizer_use_fast:COMMENT
LOW.runpod/src/config/config.yaml41COMMENT
LOW.runpod/src/config/config.yaml61# float16: trueCOMMENT
LOW.runpod/src/config/config.yaml81# - path: repoCOMMENT
LOW.runpod/src/config/config.yaml101COMMENT
LOW.runpod/src/config/config.yaml121# dataset_shard_num:COMMENT
LOW.runpod/src/config/config.yaml141# sample_packing_eff_est:COMMENT
LOW.runpod/src/config/config.yaml161# # - gate_projCOMMENT
LOW.runpod/src/config/config.yaml181# # Must use either 'lora' or 'qlora' adapter, and does not support fsdp or deepspeedCOMMENT
LOW.runpod/src/config/config.yaml201# # Training hyperparametersCOMMENT
LOW.runpod/src/config/config.yaml221# max_steps:COMMENT
LOW.runpod/src/config/config.yaml241# lr_scheduler: # 'one_cycle' | empty for cosineCOMMENT
LOW.runpod/src/config/config.yaml261# # - adafactorCOMMENT
LOW.runpod/src/config/config.yaml281COMMENT
LOW.runpod/src/config/config.yaml301# # xpos RoPE see https://github.com/kaiokendev/cutoff-len-is-context-len/blob/main/util/xpos_rope_llama_monkey_patch.pyCOMMENT
LOW.runpod/src/config/config.yaml321# # Add extra tokens.COMMENT
LOWtests/conftest.py361def download_argilla_ultrafeedback_binarized_preferences_cleaned_kto_dataset():COMMENT
LOWtests/conftest.py381# @pytest.fixture(scope="session")COMMENT
LOWtests/integrations/test_swanlab.py1# Copyright 2024 Axolotl AI. All rights reserved.COMMENT
LOWtests/integrations/test_mixlora.py1# Copyright 2025 Axolotl AI. All rights reserved.COMMENT
LOW…s/kernels/scattermoe_lora/test_mxfp4_expert_weights.py61# Per-shape Strategy-B tolerances. Forward outputs accumulate K dot-productsCOMMENT
LOW…rnels/scattermoe_lora/test_grouped_fp4_dequant_path.py341 dn.float().pow(2).mean().backward()COMMENT
LOWtests/e2e/multigpu/solo/__init__.py1# Tests under this directory should get run "solo" on their own as theyCOMMENT
LOWexamples/gemma4/26b-a4b-moe-bnb-lora.yaml1# Gemma-4-26B-A4B MoE QLoRA on a bf16 checkpoint quantized to bnb-4bit at load — the throughput-COMMENT
LOWexamples/ebft/qwen35-4b-ebft-structured-async.yaml1# EBFT Structured Mode: Qwen3.5-4B (hybrid linear attention)COMMENT
LOWexamples/ebft/qwen35-4b-ebft-structured.yaml1# EBFT Structured Mode: Qwen3.5-4B (hybrid linear attention)COMMENT
LOWexamples/ebft/llama-1b-ebft-opencode.yaml1# EBFT: Energy-Based Fine-Tuning with Llama-3.2-1B on OpenCodeInstructCOMMENT
LOWexamples/cloud/nebius.yaml21# HF_TOKEN: mbsec-YOUR_SECRET_IDCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml1# SwanLab Full-Featured DPO Training ExampleCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml141# Workspace for team collaboration (shared experiments)COMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml161swanlab_completion_log_interval: 100 # Log every 100 stepsCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml181# export SWANLAB_LARK_WEBHOOK_URL=https://open.feishu.cn/...COMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml201# - Identify bottlenecks in training loopCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml221COMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml241# Expected Training BehaviorCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml261# INFO: Only rank 0 will initialize SwanLabCOMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml281# ============================================================================COMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml301# If SwanLab initialization fails:COMMENT
LOWexamples/swanlab/dpo-swanlab-full-featured.yml321# 1. Verify use_swanlab is trueCOMMENT
LOWexamples/swanlab/lora-swanlab-profiling.yml1# SwanLab LoRA Training Example with Performance ProfilingCOMMENT
LOWexamples/swanlab/lora-swanlab-profiling.yml101# ============================================================================COMMENT
LOWexamples/swanlab/lora-swanlab-profiling.yml121COMMENT
LOWexamples/swanlab/lora-swanlab-profiling.yml141# Then compare profiling metrics in SwanLab dashboard to see performance impactCOMMENT
LOWexamples/swanlab/lora-swanlab-profiling.yml161#COMMENT
LOWexamples/swanlab/dpo-swanlab-completions.yml1# SwanLab DPO Training Example with Completion LoggingCOMMENT
LOWexamples/swanlab/dpo-swanlab-completions.yml101COMMENT
LOWexamples/swanlab/dpo-swanlab-completions.yml121# View the table in SwanLab dashboard under "rlhf_completions"COMMENT
LOWexamples/swanlab/dpo-swanlab-completions.yml141# Get real-time training notifications in your team chatCOMMENT
LOWexamples/swanlab/dpo-swanlab-completions.yml161COMMENT
LOWscripts/airgap/build_bundle.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/axolotl/train.py441 else:COMMENT
LOWsrc/axolotl/kernels/lora.py1161 # d_magnitude = sum_t(grad * combined) * (1 / weight_norm)COMMENT
LOWsrc/axolotl/core/training_args_base.py201 chat_template: Optional[str] = field(COMMENT
LOWsrc/axolotl/core/builders/base.py1# Copyright 2024 Axolotl AI. All rights reserved.COMMENT
LOWsrc/axolotl/core/trainers/grpo/async_trainer.py1361 if is_bg and self.use_vllm:COMMENT
LOWsrc/axolotl/core/trainers/grpo/async_trainer.py1381 # ``if not async_prefetch: return``, so we MUST wire the stockCOMMENT
LOWsrc/axolotl/core/trainers/grpo/fast_async_trainer.py1# Copyright 2020-2026 Axolotl AI. All rights reserved.COMMENT
LOWsrc/axolotl/core/trainers/prm/prm_trainer.py1# Copyright 2020-2026 The HuggingFace Team. All rights reserved.COMMENT
57 more matches not shown…
Redundant / Tautological Comments67 hits · 106 pts
SeverityFileLineSnippetContext
LOW.axolotl-complete.bash18 # Check if previous word is in our listCOMMENT
LOWtests/e2e/kernels/test_scattermoe_lora_kernels.py809 # Set weights to match test dataCOMMENT
LOWtests/e2e/patched/test_peft_embeddings.py63 # Check if the embeddings are upcast correctlyCOMMENT
LOWtests/prompt_strategies/test_chat_templates_advanced.py644 # Check if system message is not present in input_idsCOMMENT
LOWtests/prompt_strategies/test_chat_templates_advanced.py715 # Check if responses are labeled correctly based on roleCOMMENT
LOWdocs/scripts/generate_examples_docs.py123 # Check if target is outside examples_dirCOMMENT
LOWdocs/scripts/generate_examples_docs.py153 # Check if this exact path is in allowlistCOMMENT
LOWdocs/scripts/generate_examples_docs.py243 # Check if this is a parent page that has sub-pagesCOMMENT
LOWdocs/scripts/generate_config_docs.py180 # Check if this type itself is a Pydantic modelCOMMENT
LOWdocs/scripts/generate_config_docs.py395 # Check if this starts a new group (blank line before or significant gap)COMMENT
LOWdocs/scripts/generate_config_docs.py674 # Check if this field has nested modelsCOMMENT
LOWexamples/neutrino/8b-ternary-qat-sft-fsdp2.yml61 # Set this to true if you have less than 80GB per GPU.COMMENT
LOWexamples/neutrino/8b-ternary-qat-cpt-fsdp2.yml68 # Set this to true if you have less than 80GB per GPU.COMMENT
LOWexamples/glm_moe_dsa/glm-5.2-nvfp4-lora.yaml17# Set expert_parallel_size to the total GPU count (256 must divide it evenly), dp_shard_size 1.COMMENT
LOWscripts/cloud-entrypoint.sh29 # Check if the word looks like the start of a keyCOMMENT
LOWscripts/cloud-entrypoint.sh72# Check if JUPYTER_PASSWORD is set and not emptyCOMMENT
LOWscripts/cloud-entrypoint.sh74 # Set JUPYTER_TOKEN to the value of JUPYTER_PASSWORDCOMMENT
LOWscripts/analyze_profile.py1110 # Check if this small block is surrounded by inactiveCOMMENT
LOWscripts/cloud-entrypoint-term.sh25 # Check if the word looks like the start of a keyCOMMENT
LOWscripts/cloud-entrypoint-term.sh63# Check if JUPYTER_PASSWORD is set and not emptyCOMMENT
LOWscripts/cloud-entrypoint-term.sh65 # Set JUPYTER_TOKEN to the value of JUPYTER_PASSWORDCOMMENT
LOWsrc/axolotl/train.py603 # Check if the `token_ids_to_fix` kwarg exists in the fix_untrained_tokens argsCOMMENT
LOWsrc/axolotl/core/trainers/ebft/strided.py408 # Check if we can share weights (PEFT model on single GPU)COMMENT
LOWsrc/axolotl/core/trainers/grpo/async_trainer.py1322 # Check if model has FP8 weightsCOMMENT
LOWsrc/axolotl/utils/tee.py157 # Close the file handle if openCOMMENT
LOWsrc/axolotl/utils/freeze.py39 # Check if any path component matches a vision/audio prefixCOMMENT
LOWsrc/axolotl/utils/trainer.py226 # Check if single example or batched by looking at the first elementCOMMENT
LOWsrc/axolotl/utils/trainer.py272 # Check if single example or batchCOMMENT
LOWsrc/axolotl/utils/callbacks/swanlab.py48 # Check if SwanLab run is initializedCOMMENT
LOWsrc/axolotl/utils/callbacks/swanlab.py163 # Check if SwanLab is initializedCOMMENT
LOWsrc/axolotl/utils/callbacks/lisa.py59 # Check if it's time to switch active layers, including at step 0COMMENT
LOW⚡src/axolotl/utils/schemas/datasets.py227 # Set chat_template to tokenizer_default if not setCOMMENT
LOWsrc/axolotl/utils/samplers/multipack.py237 # Assign bins to ranks - each rank gets every n-th binCOMMENT
LOWsrc/axolotl/utils/data/shared.py182 # Check if it's a HuggingFace datasetCOMMENT
LOWsrc/axolotl/utils/data/shared.py185 # Check if it's a cloud storage path and get appropriate filesystemCOMMENT
LOWsrc/axolotl/utils/data/streaming.py209 # Set this to 1 so downstream data_loader doesn't try to increase the batch sizeCOMMENT
LOWsrc/axolotl/utils/mistral/mistral_tokenizer.py68 # Check if MistralRequestValidator has a _mode attribute.COMMENT
LOWsrc/axolotl/cli/config.py114 # Check if the config is a valid HTTPS URL to a .yml or .yaml fileCOMMENT
LOWsrc/axolotl/cli/checks.py42 # Verify if token is validCOMMENT
LOWsrc/axolotl/cli/utils/fetch.py35 # Check if file exists and needs updatingCOMMENT
LOW⚡src/axolotl/cli/utils/train.py27 # Check if rdzv_endpoint is presentCOMMENT
LOW⚡src/axolotl/cli/utils/train.py31 # Check if rdzv_backend is already providedCOMMENT
LOW⚡src/axolotl/cli/utils/train.py36 # Check if rdzv_id is already providedCOMMENT
LOWsrc/axolotl/integrations/nemo_gym/server.py93 # Check if already runningCOMMENT
LOWsrc/axolotl/integrations/cut_cross_entropy/__init__.py63 # Check if cut_cross_entropy is installedCOMMENT
LOWsrc/axolotl/integrations/cut_cross_entropy/__init__.py76 # Check if Axolotl's cce fork is installedCOMMENT
LOWsrc/axolotl/integrations/swanlab/plugins.py50 # Check if SwanLab is enabledCOMMENT
LOWsrc/axolotl/integrations/swanlab/plugins.py446 # Check if Lark webhook URL is configuredCOMMENT
LOW⚡src/axolotl/integrations/swanlab/plugins.py503 # Check if completion logging is enabledCOMMENT
LOW⚡src/axolotl/integrations/swanlab/plugins.py509 # Check if trainer is an RLHF trainerCOMMENT
LOWsrc/axolotl/integrations/swanlab/profiling.py40 # Check if SwanLab is enabled and initializedCOMMENT
LOWsrc/axolotl/integrations/swanlab/profiling.py184 # Check if should log based on configCOMMENT
LOWsrc/axolotl/integrations/swanlab/profiling.py186 # Check if SwanLab is enabledCOMMENT
LOWsrc/axolotl/telemetry/callbacks.py131 # Check if we should report metricsCOMMENT
LOWsrc/axolotl/loaders/utils.py76 # Check if image_size is not set and load image size from model config if availableCOMMENT
LOWsrc/axolotl/monkeypatch/deepspeed_utils.py33 # Check if already patchedCOMMENT
LOWsrc/axolotl/monkeypatch/lora_kernels.py271 # Check if already patchedSTRING
LOWsrc/axolotl/monkeypatch/attention/xformers.py45 # Check if we have sliding window attentionCOMMENT
LOW⚡…/axolotl/monkeypatch/transformers/trainer_loss_calc.py49 # Check if already patchedCOMMENT
LOW⚡…/axolotl/monkeypatch/transformers/trainer_loss_calc.py54 # Check if the patterns existCOMMENT
7 more matches not shown…
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGH…tigpu/solo/_torchao_lora_deepspeed_zero3_checkpoint.py0two-rank native torchao nvfp4 + ordinary lora deepspeed smoke.STRING
HIGH…2e/multigpu/solo/_torchao_lora_deepspeed_checkpoint.py0two-rank native torchao nvfp4 + ordinary lora deepspeed smoke.STRING
HIGHtests/e2e/multigpu/solo/_torchao_lora_deepspeed.py0two-rank native torchao nvfp4 + ordinary lora deepspeed smoke.STRING
HIGHsrc/axolotl/cli/preprocess.py0parses `axolotl` config, cli args, and calls `do_evaluate`. args: config: path to `axolotl` config yaml file. kwargs: adSTRING
HIGHsrc/axolotl/cli/merge_sharded_fsdp_weights.py0parses `axolotl` config, cli args, and calls `do_evaluate`. args: config: path to `axolotl` config yaml file. kwargs: adSTRING
HIGHsrc/axolotl/cli/train.py0parses `axolotl` config, cli args, and calls `do_evaluate`. args: config: path to `axolotl` config yaml file. kwargs: adSTRING
HIGHsrc/axolotl/cli/evaluate.py0parses `axolotl` config, cli args, and calls `do_evaluate`. args: config: path to `axolotl` config yaml file. kwargs: adSTRING
HIGHsrc/axolotl/integrations/liger/models/qwen3_5.py0args: labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked STRING
HIGHsrc/axolotl/integrations/liger/models/qwen3_5_moe.py0args: labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked STRING
HIGHsrc/axolotl/integrations/liger/models/base.py0args: labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked STRING
HIGHsrc/axolotl/monkeypatch/models/qwen3/fused_attn.py0unwrap peft ``modulestosavewrapper`` so the kernel reads the active adapter's weight.STRING
HIGH…c/axolotl/monkeypatch/models/qwen3_5_moe/fused_attn.py0unwrap peft ``modulestosavewrapper`` so the kernel reads the active adapter's weight.STRING
HIGHsrc/axolotl/monkeypatch/models/qwen3_5/fused_attn.py0unwrap peft ``modulestosavewrapper`` so the kernel reads the active adapter's weight.STRING
HIGHsrc/axolotl/monkeypatch/models/qwen3_moe/fused_attn.py0unwrap peft ``modulestosavewrapper`` so the kernel reads the active adapter's weight.STRING
HIGHsrc/axolotl/prompt_strategies/bradley_terry/llama3.py0chatml transforms for datasets with system, input, chosen, rejected ex. https://huggingface.co/datasets/argilla/distilabSTRING
HIGHsrc/axolotl/prompt_strategies/dpo/chatml.py0chatml transforms for datasets with system, input, chosen, rejected ex. https://huggingface.co/datasets/argilla/distilabSTRING
HIGHsrc/axolotl/prompt_strategies/dpo/llama3.py0chatml transforms for datasets with system, input, chosen, rejected ex. https://huggingface.co/datasets/argilla/distilabSTRING
Self-Referential Comments27 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py694 # Create a temporary directoryCOMMENT
MEDIUM⚡tests/test_packed_pretraining.py38 # Create a list of 2000 random texts rather than just using it within theCOMMENT
MEDIUM⚡tests/test_packed_pretraining.py42 # Create an IterableDatasetCOMMENT
MEDIUMtests/integrations/diffusion/test_plugin.py43 # Create a minimal trainer instance just for testing methodsCOMMENT
MEDIUMtests/e2e/utils.py25 # Create a temporary directoryCOMMENT
MEDIUMtests/e2e/kernels/test_lora.py44 # Create main state with nested stateCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py684 # Create a new dataset with modified role namesCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py758 # Create a new dataset with the train and train_detail fieldsCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py1214 # Create a situation where eot_tokens contains eos_tokenCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py1299 # Create a non-existent token that definitely won't be in the templateCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py1350 # Create a custom chat template that uses our EOT tokenCOMMENT
MEDIUMtests/prompt_strategies/test_chat_templates_advanced.py1425 # Create a list to test different train_on_eot settingsCOMMENT
MEDIUMdocs/scripts/generate_examples_docs.py83 # Create a unique asset path based on source directory nameCOMMENT
MEDIUMscripts/cloud-entrypoint.sh21 # Create the authorized_keys file if it doesn't existCOMMENT
MEDIUMscripts/cloud-entrypoint-term.sh17 # Create the authorized_keys file if it doesn't existCOMMENT
MEDIUMsrc/axolotl/train.py205 # Define the context managers to useCOMMENT
MEDIUMsrc/axolotl/core/trainers/grpo/trainer.py251 # Create the dataloaderCOMMENT
MEDIUMsrc/axolotl/core/trainers/prm/prm_trainer.py352 # Create the labelSTRING
MEDIUMsrc/axolotl/utils/tokenization.py90 # Create a delimiter based on text_only flagCOMMENT
MEDIUMsrc/axolotl/utils/schemas/utils.py31 data = data.copy() # Create a copy to avoid modifying the originalCODE
MEDIUMsrc/axolotl/utils/samplers/multipack.py100 # Create a new bin if needed and if we haven't reached the limitCOMMENT
MEDIUMsrc/axolotl/cli/delinearize_llama4.py117 # Create a new state dict for the converted modelCOMMENT
MEDIUMsrc/axolotl/integrations/mixlora/model.py124 # Create a one-hot mask for selected experts and average over tokensCOMMENT
MEDIUMsrc/axolotl/loaders/tokenizer.py52 # Create the tokenizer directory in output_dir if it doesn't existCOMMENT
MEDIUMsrc/axolotl/monkeypatch/attention/flex_attn.py35 # Create a new instance if one doesn't already existCOMMENT
MEDIUM…onkeypatch/models/mistral3/mistral_common_tokenizer.py22 # Define the replacementCOMMENT
MEDIUMsrc/axolotl/prompt_strategies/chat_template.py393 # Create a new list to store tokens that should be keptCOMMENT
Modern Structural Boilerplate71 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/core/trainers/diffusion_lm/test_encoder_canvas.py503def _set_attention_backend(model, backend: str) -> None:CODE
LOWsrc/axolotl/core/builders/__init__.py6__all__ = ["HFCausalTrainerBuilder", "HFRLTrainerBuilder"]CODE
LOWsrc/axolotl/core/trainers/__init__.py10__all__ = [CODE
LOWsrc/axolotl/core/trainers/grpo/async_trainer.py694 def set_trainer(self, trainer) -> None:CODE
LOWsrc/axolotl/core/trainers/grpo/sampler.py166 def set_epoch(self, epoch: int) -> None:CODE
LOWsrc/axolotl/core/trainers/prm/__init__.py5__all__ = ["PRMConfig"]CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/__init__.py11__all__ = ["get_diffusion_config"]CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/callbacks.py15logger = logging.getLogger(__name__)CODE
LOW…xolotl/core/trainers/diffusion_lm/backends/__init__.py5__all__ = ["FullSequenceBackend"]CODE
LOWsrc/axolotl/utils/optimizers/adamc.py16__all__ = ["AdamC"]CODE
LOWsrc/axolotl/utils/optimizers/adopt.py36__all__ = ["ADOPT", "adopt"]CODE
LOWsrc/axolotl/utils/chat_templates/__init__.py14__all__ = [CODE
LOWsrc/axolotl/utils/data/__init__.py14__all__ = [CODE
LOWsrc/axolotl/utils/mistral/__init__.py6__all__ = ["HFMistralTokenizer", "Mistral3Processor"]CODE
LOWsrc/axolotl/utils/generation/__init__.py5__all__ = ["generate_samples", "format_generation_for_logging"]CODE
LOWsrc/axolotl/utils/collators/__init__.py11__all__ = [CODE
LOWsrc/axolotl/cli/utils/__init__.py15__all__ = [CODE
LOWsrc/axolotl/cli/utils/lora_merge.py1807def _update_config_vocab_size(output_path: Path, vocab_size: int) -> None:CODE
LOWsrc/axolotl/cli/cloud/modal_.py5__all__ = ["ModalCloud", "run_cmd"]CODE
LOWsrc/axolotl/cli/cloud/baseten/__init__.py5__all__ = ["BasetenCloud"]CODE
LOWsrc/axolotl/integrations/nemo_gym/__init__.py20__all__ = [CODE
LOWsrc/axolotl/integrations/kernels/__init__.py4__all__ = [CODE
LOW…/integrations/kernels/libs/scattermoe_lora/__init__.py17__all__ = [CODE
LOW⚡…tegrations/kernels/libs/scattermoe_lora/chunked_bnb.py26def set_chunk_size_override(n) -> None:CODE
LOW⚡…tegrations/kernels/libs/scattermoe_lora/chunked_bnb.py30def set_layer_gc_active(flag) -> None:CODE
LOW⚡…tegrations/kernels/libs/scattermoe_lora/chunked_bnb.py34def set_bnb_fast(flag) -> None:CODE
LOW…grations/kernels/libs/scattermoe_lora/grouped_train.py36def set_grouped_backend_override(backend) -> None:CODE
LOW…tions/kernels/libs/scattermoe_lora/kernels/__init__.py12__all__ = ["ops", "lora_ops"]CODE
LOWsrc/axolotl/integrations/kernels/libs/dsv4/__init__.py11__all__ = [CODE
LOW…/axolotl/integrations/kernels/libs/glm_dsa/__init__.py15__all__ = [CODE
LOW…olotl/integrations/kernels/libs/sonicmoe/nvfp4_lora.py45def set_merge_aware_enabled(enabled: bool) -> None:CODE
LOW…axolotl/integrations/kernels/libs/sonicmoe/__init__.py26__all__ = [CODE
LOW…/axolotl/integrations/kernels/libs/sonicmoe/experts.py451__all__ = [CODE
LOWsrc/axolotl/integrations/kd/kernels/__init__.py7__all__ = ["LigerFusedLinearKLTopKLogprobLoss"]CODE
LOWsrc/axolotl/integrations/diffusion_decision/__init__.py10__all__ = [CODE
LOW…xolotl/integrations/diffusion_decision/slot_runtime.py29def _set_value(value: Any, name: str, item: Any) -> None:CODE
LOWsrc/axolotl/integrations/diffusion_decision/template.py53__all__ = [CODE
LOWsrc/axolotl/integrations/diffusion_decision/trainer.py1429 def set_epoch(self, epoch: int) -> None:CODE
LOWsrc/axolotl/integrations/diffusion_decision/trainer.py1481 def set_epoch(self, epoch: int) -> None:CODE
LOW…l/integrations/diffusion_decision/adapters/__init__.py44__all__ = [CODE
LOWsrc/axolotl/integrations/diffusion/generation.py11__all__ = [CODE
LOWsrc/axolotl/integrations/diffusion/__init__.py10__all__ = [CODE
LOWsrc/axolotl/integrations/diffusion/utils.py9__all__ = [CODE
LOWsrc/axolotl/integrations/diffusion/callbacks.py6__all__ = ["DiffusionGenerationCallback", "generate_samples"]CODE
LOWsrc/axolotl/integrations/diffusion/args.py17__all__ = ["DiffusionArgs", "DiffusionConfig"]CODE
LOWsrc/axolotl/integrations/diffusion/trainer.py8__all__ = ["AxolotlDiffusionTrainer", "DiffusionTrainer"]CODE
LOWsrc/axolotl/integrations/mixlora/__init__.py27__all__ = ["MixLoraPlugin"]CODE
LOWsrc/axolotl/integrations/densemixer/__init__.py5__all__ = ["DenseMixerPlugin"]CODE
LOWsrc/axolotl/integrations/hatchery/__init__.py15__all__ = ["HatcheryArgs", "HatcheryConfig", "HatcheryPlugin"]CODE
LOWsrc/axolotl/integrations/swanlab/__init__.py6__all__ = ["SwanLabConfig", "SwanLabPlugin"]CODE
LOWsrc/axolotl/integrations/liger/__init__.py25__all__ = [CODE
LOWsrc/axolotl/integrations/context_parallel/__init__.py17__all__ = [CODE
LOWsrc/axolotl/integrations/llm_compressor/__init__.py5__all__ = ["LLMCompressorPlugin"]CODE
LOWsrc/axolotl/integrations/mora/__init__.py6__all__ = ["MoraArgs", "MoraConfig", "MoraPlugin", "MoraType"]CODE
LOWsrc/axolotl/integrations/expert_parallel/experts_fn.py37def set_token_capacity(cap: int | None) -> None:CODE
LOWsrc/axolotl/integrations/expert_parallel/experts_fn.py46def set_dispatch_chunks(chunks: int) -> None:CODE
LOWsrc/axolotl/integrations/expert_parallel/experts_fn.py91def set_valid_token_mask(mask: torch.Tensor | None) -> None:CODE
LOWsrc/axolotl/integrations/expert_parallel/experts_fn.py108def set_backend(backend: str | None) -> None:CODE
LOWsrc/axolotl/integrations/expert_parallel/experts_fn.py119def set_local_implementation(name: str) -> None:CODE
LOWsrc/axolotl/integrations/expert_parallel/__init__.py25__all__ = [CODE
11 more matches not shown…
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHsrc/axolotl/core/trainers/grpo/__init__.py302 Returns the reward function from the given fully qualified name, or the path to the reward function model. STRING
HIGHsrc/axolotl/utils/quantization.py71 This function is used to build a post-training quantization config. Args: weight_dtype: The dtype to uSTRING
HIGHsrc/axolotl/utils/schemas/utils.py9 Handle backwards compatibility between legacy message field mapping and new property mapping system. PreviouslSTRING
HIGHsrc/axolotl/utils/chat_templates/base.py31 Finds the correct chat_template based on the user's choice, jinja_template, and tokenizer. Args: user_STRING
HIGHsrc/axolotl/utils/data/rl.py130Filter out samples that exceed maximum sequence length. Args: sample: Dataset sample to check. rl: STRING
HIGHsrc/axolotl/utils/data/rl.py187Check sequence length and raise ValueError if exceeded. Used as a filter function for ``excess_length_strategy: raiSTRING
HIGHsrc/axolotl/cli/config.py97 First, determines if the passed config is a valid HTTPS URL. Then, attempts to query for it and parse its conteSTRING
HIGHsrc/axolotl/cli/config.py163 Helper method for choosing a `axolotl` config YAML file (considering only files ending with `.yml` or `.yaml`).STRING
HIGHsrc/axolotl/cli/agent_docs/__init__.py84Return the content of an agent doc by topic name. Args: topic: One of the keys in TOPICS, or "overview" (deSTRING
HIGHsrc/axolotl/integrations/base.py375Loads a plugin based on the given plugin name. The plugin name should be in the format "module_name.class_name". ThSTRING
HIGHsrc/axolotl/integrations/expert_parallel/shard.py164Slice expert weights along dim 0 per the EP rank. Args: model: A built (but not yet FSDP-wrapped) HuggingFaSTRING
HIGHsrc/axolotl/loaders/utils.py151Loads and configures a model configuration from HuggingFace or local sources. This function determines the appropriSTRING
HIGHsrc/axolotl/monkeypatch/lora_kernels.py156 Get the appropriate attention class by inspecting the model config. Uses dynamic import to support any model arSTRING
HIGHsrc/axolotl/monkeypatch/lora_kernels.py475 Applies optimized Triton kernel patches to a PEFT model. Patches a PEFT model with optimized implementations fSTRING
Hallucination Indicators6 hits · 70 pts
SeverityFileLineSnippetContext
CRITICAL⚡src/axolotl/integrations/kernels/autotune_callback.py49 props = triton.runtime.driver.active.utils.get_device_properties(idx)CODE
CRITICAL⚡…tions/kernels/libs/scattermoe_lora/kernels/lora_ops.py192 props = triton.runtime.driver.active.utils.get_device_properties(CODE
CRITICALsrc/axolotl/integrations/kernels/libs/dsv4/attention.py50 return triton.runtime.driver.active.utils.get_device_properties(dev)[CODE
CRITICAL…axolotl/integrations/kernels/libs/glm_dsa/_autotune.py21 props = triton.runtime.driver.active.utils.get_device_properties(dev)CODE
CRITICALsrc/axolotl/monkeypatch/attention/xformers.py72 xformers.ops.fmha.attn_bias.BlockDiagonalCausalMask.from_seqlens(CODE
CRITICALsrc/axolotl/monkeypatch/attention/xformers.py94 attn_bias = xformers.ops.fmha.attn_bias.BlockDiagonalCausalMask.from_seqlens(CODE
AI Structural Patterns65 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ions/kernels/scattermoe_lora/test_mxfp4_integration.py225CODE
LOWtests/integrations/diffusion_decision/helpers.py126CODE
LOWtests/integrations/diffusion_decision/helpers.py155CODE
LOWtests/integrations/diffusion_decision/helpers.py257CODE
LOWtests/e2e/kernels/test_scattermoe_lora_kernels.py182CODE
LOWtests/e2e/kernels/test_scattermoe_lora_kernels.py1573CODE
LOWsrc/axolotl/processing_strategies.py1729CODE
LOWsrc/axolotl/processing_strategies.py78CODE
LOWsrc/axolotl/processing_strategies.py772CODE
LOWsrc/axolotl/processing_strategies.py819CODE
LOWsrc/axolotl/processing_strategies.py895CODE
LOWsrc/axolotl/processing_strategies.py1179CODE
LOWsrc/axolotl/processing_strategies.py1232CODE
LOWsrc/axolotl/processing_strategies.py1265CODE
LOWsrc/axolotl/processing_strategies.py1351CODE
LOWsrc/axolotl/processing_strategies.py1404CODE
LOWsrc/axolotl/kernels/lora.py854CODE
LOWsrc/axolotl/kernels/lora.py915CODE
LOWsrc/axolotl/kernels/lora.py1914CODE
LOWsrc/axolotl/core/trainers/grpo/async_trainer.py2914CODE
LOWsrc/axolotl/core/trainers/grpo/trainer.py92CODE
LOWsrc/axolotl/core/trainers/prm/prm_trainer.py154CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/generation.py18CODE
LOWsrc/axolotl/core/trainers/diffusion_lm/generation.py347CODE
LOW…/core/trainers/diffusion_lm/backends/encoder_canvas.py282CODE
LOWsrc/axolotl/utils/optimizers/qgalore.py61CODE
LOWsrc/axolotl/utils/optimizers/sinkgd_triton.py381CODE
LOWsrc/axolotl/utils/optimizers/adopt.py40CODE
LOWsrc/axolotl/utils/optimizers/sinkgd.py249CODE
LOWsrc/axolotl/utils/samplers/multipack.py257CODE
LOWsrc/axolotl/utils/mistral/mistral_tokenizer.py190CODE
LOWsrc/axolotl/cli/chat.py851CODE
LOWsrc/axolotl/cli/utils/lora_merge.py1966CODE
LOWsrc/axolotl/cli/utils/lora_merge.py2318CODE
LOWsrc/axolotl/cli/utils/lora_merge.py2563CODE
LOW…s/kernels/libs/scattermoe_lora/parallel_linear_lora.py569CODE
LOW…l/integrations/kernels/libs/scattermoe_lora/experts.py567CODE
LOW…l/integrations/kernels/libs/scattermoe_lora/experts.py809CODE
LOW…els/libs/scattermoe_lora/cutlass_fp4/grouped_kernel.py1426CODE
LOWsrc/axolotl/integrations/lm_eval/cli.py31CODE
LOWsrc/axolotl/integrations/kd/chat_template.py34CODE
LOWsrc/axolotl/integrations/kd/kernels/liger.py120CODE
LOWsrc/axolotl/integrations/kd/kernels/liger.py180CODE
LOWsrc/axolotl/integrations/kd/kernels/liger.py429CODE
LOW…lotl/integrations/diffusion_decision/prepared_cache.py318CODE
LOWsrc/axolotl/integrations/diffusion_decision/slots.py39CODE
LOW…olotl/integrations/diffusion_decision/preprocessing.py35CODE
LOW…l/integrations/diffusion_decision/training_collator.py55CODE
LOWsrc/axolotl/integrations/mixlora/trainer.py60CODE
LOWsrc/axolotl/integrations/liger/models/jamba.py16CODE
LOWsrc/axolotl/integrations/liger/models/qwen3_5.py15CODE
LOWsrc/axolotl/integrations/liger/models/deepseekv2.py15CODE
LOWsrc/axolotl/integrations/liger/models/qwen3_5_moe.py14CODE
LOWsrc/axolotl/monkeypatch/stablelm_attn_hijack_flash.py247CODE
LOWsrc/axolotl/monkeypatch/attention/xformers.py19CODE
LOWsrc/axolotl/monkeypatch/models/qwen3_next/modeling.py384CODE
LOWsrc/axolotl/monkeypatch/models/voxtral/modeling.py18CODE
LOWsrc/axolotl/monkeypatch/models/falcon_h1/modeling.py301CODE
LOW…support/bailing_hybrid/configuration_bailing_moe_v3.py23CODE
LOW…odel_support/bailing_hybrid/modeling_bailing_moe_v3.py574CODE
5 more matches not shown…
AI Slop Vocabulary20 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml61 # lm eval harnessCOMMENT
MEDIUM⚡…ts/integrations/kernels/scattermoe_lora/bench_mxfp4.py296# Timing harnessCOMMENT
MEDIUM⚡…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py181# 2. Memory bound across skew (THE skew guard) — a robust op's peak must NOT scale with routingCOMMENT
MEDIUM⚡…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py183# BALANCED peak (scale-robust, no magic absolute). A capacity-padded impl (cap=max) blows up atCOMMENT
MEDIUM⚡…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py212 # robust: skew peak within 1.5x of balanced. capacity-padded all_to_one is many x -> fails.COMMENT
MEDIUM⚡…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py229 # cap this process to a fraction that comfortably fits the robust path but not an E*cap blowupCOMMENT
MEDIUM⚡…tions/kernels/scattermoe_lora/test_grouped_fp4_skew.py234 ) # robust needs ~12x routed + model; blowup needs ~Ex moreCODE
MEDIUMtests/monkeypatch/test_nf4_loading.py372 # ModelLoader.load() does this before prepare; this harness builds theCOMMENT
MEDIUMtests/monkeypatch/test_nf4_loading.py1092 # ModelLoader.load() does this before prepare; this harness builds theCOMMENT
MEDIUMexamples/archived/xgen-7b/xgen-7b-8k-qlora.yml31# "We find hyperparameters to be largely robust across datasets"COMMENT
MEDIUMexamples/archived/falcon/config-7b-qlora.yml33# "We find hyperparameters to be largely robust across datasets"COMMENT
MEDIUM.github/workflows/tests-nightly.yml5 # to this file or the cicd/ harness.COMMENT
LOWsrc/axolotl/cli/utils/sweeps.py61 # If no paired values, just use regular combinationsCOMMENT
MEDIUM…ions/kernels/libs/scattermoe_lora/nvfp4_moe_loading.py134# robust NVFP4 signal (uint8 qdata) — distinguishing NVFP4 from FP8 (which also carries aCOMMENT
MEDIUM…tions/kernels/libs/scattermoe_lora/kernels/lora_ops.py2562 (128, 32, 64, 8, 3), # robust fallback within the stock search spaceCODE
MEDIUM…/axolotl/integrations/kernels/libs/glm_dsa/dispatch.py1"""Length-aware dispatch for GLM-5.2 DSA attention — robust across short and long sequences.STRING
LOWsrc/axolotl/integrations/kd/collator.py211 # just pass straight to parent.COMMENT
LOWsrc/axolotl/prompt_strategies/chat_template.py677 # grid info, etc.); just set the fields we computed locally.COMMENT
LOWsrc/axolotl/prompt_strategies/ebft/ebft_strided_chat.py20 # For preview: just return the first user messageCOMMENT
MEDIUMsrc/axolotl/prompt_strategies/ebft/ebft_reasoning.py280 # directly in the input_ids (robust to tokenization alignment).COMMENT
Cross-Language Confusion10 hits · 45 pts
SeverityFileLineSnippetContext
HIGHtests/integrations/nebius/test_cloud.py567 SimpleNamespace(returncode=0, stdout='{"metadata": {}, "status": null}'),CODE
HIGHsrc/axolotl/core/trainers/grpo/async_trainer.py877 VLLMGeneration._init_vllm = _orig_init_vllm # type: ignore[possibly-undefined]CODE
HIGHsrc/axolotl/utils/schemas/config.py922 "flash_attn dependency. Left unset (null) it auto-enables when supported (torch >= "CODE
HIGHsrc/axolotl/cli/config_options.py2681 "With sample packing + attn_implementation=sdpa, route packed rows through torch.nn.attention.varlen.varlen_attnCODE
HIGHsrc/axolotl/integrations/nemo_gym/server.py69 ["bash", "-c", "source .venv/bin/activate && uv sync"],CODE
HIGHsrc/axolotl/integrations/kd/kernels/liger.py36 0.0 for Forward KL (P_teacher || P_student).STRING
HIGHsrc/axolotl/integrations/kd/kernels/liger.py37 1.0 for Reverse KL (P_student || P_teacher).STRING
HIGHsrc/axolotl/integrations/cut_cross_entropy/__init__.py40 '`pip uninstall -y cut-cross-entropy && pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotCODE
HIGHsrc/axolotl/integrations/nebius/runner.py128 'source /workspace/axolotl/scripts/cuda13_env.sh && exec "$@"',CODE
HIGHsrc/axolotl/integrations/modal/cloud.py181 f"RUN cd /workspace/axolotl && git fetch && git checkout {self.config.branch} && git pull",CODE
Modern AI Meta-Vocabulary10 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_processing_strategies.py61# Generic fake tokenizer/processor scaffoldCOMMENT
MEDIUMexamples/ebft/llama-1b-ebft-strided.yaml12 context_length: 8 # context window per blockCODE
MEDIUMexamples/ebft/llama-1b-ebft-strided-structured.yaml12 context_length: 8 # context window per blockCODE
MEDIUMexamples/ebft/README.md100 context_length: 8 # context window per block (paper default: 8)CODE
MEDIUMexamples/muse-glimmer/README.md134- [Meta AI Research announcement](https://research.meta.ai/blog/introducing-muse-glimmer-open-agentic-model)CODE
MEDIUMexamples/mistral-medium-3_5/README.md3[Mistral Medium 3.5](https://huggingface.co/mistralai/Mistral-Medium-3.5-128B) is a 128B parameter dense multimodal modeCODE
MEDIUMsrc/axolotl/core/trainers/ebft/strided.py153 # Rule 1: Generated token attends to its context window in the promptCOMMENT
MEDIUMsrc/axolotl/core/trainers/ebft/strided.py917 # Last token of the context window predicts the first rollout tokenCOMMENT
MEDIUMsrc/axolotl/integrations/nemo_gym/README.md79# Agent server (orchestrates multi-turn via /run)COMMENT
MEDIUM…ntegrations/nemo_gym/examples/nemo_gym_multi_turn.yaml4# using NeMo Gym's agentic environments. The model generates responses,COMMENT
Structural Annotation Overuse12 hits · 21 pts
SeverityFileLineSnippetContext
LOWtests/utils/callbacks/test_dynamic_checkpoint.py139 # Step 5 - shouldn't check (not divisible by 10)COMMENT
LOWtests/utils/callbacks/test_dynamic_checkpoint.py145 # Step 10 - should checkCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2475 # Step 1: Fuse — MergeModulelist (stack experts) per source patternCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2521 # Step 2: Build the fused key name and merge LoRACOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2547 # Step 3: Save in fused format (runtime format) so that the mergedCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2951 # Step 0: dequantize quantized weights so the LoRA delta folds into the TRUE weight (a raw readCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2968 # Step 1: Handle fused weight conversions (MoE experts) if applicableCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2996 # Step 2: Merge remaining (non-fused) tensors with LoRACOMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py363 # Step 1: Compute shared base FFN outputs (optimization from paper)COMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py367 # Step 2: Route tokens to expertsCOMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py371 # Step 3: Compute base FFN output (shared SwiGLU + down_proj)COMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py375 # Step 4: Compute expert LoRA deltas and aggregateCOMMENT
Verbosity Indicators10 hits · 18 pts
SeverityFileLineSnippetContext
LOWsrc/axolotl/cli/utils/lora_merge.py2475 # Step 1: Fuse — MergeModulelist (stack experts) per source patternCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2521 # Step 2: Build the fused key name and merge LoRACOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2547 # Step 3: Save in fused format (runtime format) so that the mergedCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2951 # Step 0: dequantize quantized weights so the LoRA delta folds into the TRUE weight (a raw readCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2968 # Step 1: Handle fused weight conversions (MoE experts) if applicableCOMMENT
LOWsrc/axolotl/cli/utils/lora_merge.py2996 # Step 2: Merge remaining (non-fused) tensors with LoRACOMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py363 # Step 1: Compute shared base FFN outputs (optimization from paper)COMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py367 # Step 2: Route tokens to expertsCOMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py371 # Step 3: Compute base FFN output (shared SwiGLU + down_proj)COMMENT
LOW⚡src/axolotl/integrations/mixlora/model.py375 # Step 4: Compute expert LoRA deltas and aggregateCOMMENT
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOW.runpod/src/config/config.yaml65# # HuggingFace dataset repo | s3://,gs:// path | "json" for local dataset, make sure to fill data_filesCOMMENT
LOWsrc/axolotl/utils/callbacks/profiler.py101 # make sure to record if we happen to have more steps than steps to profileCOMMENT
LOWsrc/axolotl/cli/utils/train.py187 # make sure to flush stdout and stderr before replacing the processCOMMENT
LOWsrc/axolotl/cli/utils/train.py213 # make sure to flush stdout and stderr before replacing the processCOMMENT
LOWsrc/axolotl/integrations/kd/collator_online_teacher.py531 # TODO make sure to figure out which input in sub_batch_features to update the batch in the originalCOMMENT
LOWsrc/axolotl/integrations/liger/models/jamba.py124 ) # make sure to reside in the same deviceCODE
MEDIUMsrc/axolotl/prompt_strategies/context_qa.py107 "Therefore, I'm unable to answer your question based on the given context.",CODE
MEDIUMsrc/axolotl/prompt_strategies/creative_acr.py33refusal: whether the Response refuses to answer the Question. Responses containing language similar to "As an AI languagCODE
MEDIUMsrc/axolotl/prompt_strategies/creative_acr.py90refusal: whether the Response refuses to answer the Question. Responses containing language similar to "As an AI languagCODE
Example Usage Blocks7 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/airgap/build_bundle.sh5# Usage:COMMENT
LOW…tl/integrations/nemo_gym/examples/nemo_gym_sudoku.yaml11# Usage:COMMENT
LOW…ntegrations/nemo_gym/examples/nemo_gym_multi_turn.yaml15# Usage:COMMENT
LOW…integrations/nemo_gym/examples/nemo_gym_multi_env.yaml12# Usage:COMMENT
LOWsrc/axolotl/integrations/hatchery/__init__.py17# Usage:COMMENT
LOW…axolotl/integrations/hatchery/examples/tinker_sft.yaml3# Usage:COMMENT
LOWsrc/axolotl/loaders/tokenizer.py289 # Usage:COMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/test_data.py44 "lorem ipsum dolor sit amet.",CODE
LOWtests/test_data.py44 "lorem ipsum dolor sit amet.",CODE
LOWtests/test_prompt_tokenizers.py75 "instruction": "hello cruel. lorem ipsum dolor sit amet.",CODE
LOWtests/test_prompt_tokenizers.py75 "instruction": "hello cruel. lorem ipsum dolor sit amet.",CODE
LOW⚡src/axolotl/utils/data/sft.py263 f.write("lorem ipsum dolor sit amet\n")CODE
LOW⚡src/axolotl/utils/data/sft.py263 f.write("lorem ipsum dolor sit amet\n")CODE
LOWsrc/axolotl/integrations/nemo_gym/README.md74 api_key: dummy_keyCODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md189- [API Reference](https://docs.axolotl.ai/docs/api/) - Auto-generated code documentationCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW⚡tests/scripts/test_select_e2e_tests.py234 {"tests/e2e/utils.py": "def helper():\n return 1\n"},STRING