AI Slop Code RIsk Monitor

MakazhanAlpamys/Soup

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

43.2 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for MakazhanAlpamys/Soup, a Python project with 8,547 GitHub stars. SynthScan examined 851,694 lines of code across 2232 source files, recording 25447 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 43.2 (High 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.

43.2
Adjusted Signal
43.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
8.5K
Stars
Python
Language
851.7K
Lines of Code
2.2K
Files
25.4K
Pattern Hits
2026-10-12
Scan Date
0.26
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 64.1/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 11.8/100 · LOW

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

Agent Over-Engineering Ratio 86.0/100 · CRITICAL

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

PR Review Velocity Impact 88.3/100 · CRITICAL

Which changes need focused human review? 25447 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 0HIGH 583MEDIUM 4126LOW 20738

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 25447 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.

Hyper-Verbose Identifiers17964 hits · 16307 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_v0403_part_c.py60 def test_kept_when_chosen_clearly_wins(self):CODE
LOW⚡tests/test_v0403_part_c.py67 def test_dropped_when_diff_below_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py74 def test_dropped_when_rejected_wins(self):CODE
LOW⚡tests/test_v0403_part_c.py80 def test_judge_exception_counts_as_error(self):CODE
LOW⚡tests/test_v0403_part_c.py88 def test_lower_threshold_keeps_borderline(self):CODE
LOW⚡tests/test_v0403_part_c.py96 def test_threshold_zero_keeps_ties(self):CODE
LOW⚡tests/test_v0403_part_c.py101 def test_rejects_non_numeric_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py106 def test_rejects_bool_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py111 def test_rejects_threshold_above_one(self):CODE
LOW⚡tests/test_v0403_part_c.py116 def test_rejects_threshold_below_zero(self):CODE
LOW⚡tests/test_v0403_part_c.py121 def test_rejects_nan_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py126 def test_too_many_pairs_rejected(self):CODE
LOW⚡tests/test_v0403_part_c.py132 def test_empty_pairs_returns_empty(self):CODE
LOW⚡tests/test_v0403_part_c.py138 def test_uses_judge_rubric_scale(self):CODE
LOW⚡tests/test_v0403_part_c.py144 def test_report_is_frozen_dataclass(self):CODE
LOW⚡tests/test_v0403_part_c.py154 def test_degenerate_scale_drops_all_at_positive_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py162 def test_degenerate_scale_keeps_all_at_zero_threshold(self):CODE
LOW⚡tests/test_v0403_part_c.py169 def test_lazy_materialisation_does_not_buffer_full_generator(self):CODE
LOW⚡tests/test_v0403_part_c.py292 def test_appends_multiple_lines(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_v0403_part_c.py300 def test_outside_cwd_rejected(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_v0403_part_c.py307 def test_null_byte_path_rejected(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_v0403_part_c.py317 def test_cap_below_min_rejected(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_v0403_part_c.py322 def test_cap_above_max_rejected(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_v0403_part_c.py332 def test_non_string_path_rejected(self):CODE
LOW⚡tests/test_v0403_part_c.py336 def test_rotation_when_cap_exceeded(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py198 def test_judge_flag_filters_pairs(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py244 def test_judge_provider_invalid_rejected_early(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py362 def test_secret_redaction_in_prompt(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py376 def test_secret_redaction_in_response(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py390 def test_secret_redaction_preserves_trailing_period(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py406 def test_secret_redaction_in_extra_dict(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py419 def test_secret_redaction_redacts_sk_keys(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py434 def test_rotation_refuses_symlink_backup(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py451 def test_unserialisable_entry_dropped_silently(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py486 def test_extra_does_not_override_core_fields(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py525 def test_serve_help_lists_trace_log(self):CODE
LOWtests/test_v0403_part_c.py534 def test_serve_help_lists_trace_log_cap_mb(self):CODE
LOWtests/test_v0403_part_c.py545 def test_create_app_accepts_trace_log_writer(self, tmp_path, monkeypatch):CODE
LOWtests/test_v0403_part_c.py569 def test_create_app_default_writer_is_none(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py78 def test_none_fires_the_head_at_the_last_layer_going_forward(self):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py83 def test_layer_zero_fires_the_head_at_layer_zero_going_forward_only(self):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py87 def test_a_middle_layer_fires_once_and_never_in_the_backward_walk(self):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py91 def test_the_backward_tail_embed_prefetch_is_unchanged_by_the_head_timing(self):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py96 def test_a_second_forward_after_prime_fires_again(self):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py128 def test_a_valid_assignment_is_accepted_and_read_back(self, good):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py289 def test_the_head_load_comes_at_the_configured_layer(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py295 def test_the_real_load_sequence_and_count_are_the_same_in_both_timings(CODE
LOW⚡tests/test_issue1174_head_prefetch_after_lookup.py348def test_the_head_refill_waits_for_the_embedding_lookup_still_queued():CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py110 def test_an_out_of_range_layer_is_refused(self, bad):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py117 def test_an_assignment_is_checked_like_the_constructor_and_leaves_the_value(self, bad):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py243 def test_the_comparison_is_not_noise(self, tmp_path, monkeypatch):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py250 def test_tied_has_no_large_pool_so_the_switch_does_nothing(self, tmp_path, monkeypatch):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py261 def test_an_untied_model_defaults_to_the_earliest_point(self, tmp_path, monkeypatch):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py270 def test_a_tied_model_has_nothing_to_move(self, tmp_path, monkeypatch):CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py306 def test_an_eval_forward_then_a_training_step(self, tmp_path, monkeypatch, head_layer):CODE
LOW⚡tests/test_issue1350_reward_synth_numeric_parser.py59def test_a_synthesized_verifier_pays_every_correct_completion(verifier, gold, completion):CODE
LOW⚡tests/test_issue1350_reward_synth_numeric_parser.py65def test_a_synthesized_verifier_still_refuses_a_wrong_answer(verifier, gold, completion):CODE
LOW⚡tests/test_issue1350_reward_synth_numeric_parser.py69def test_grouped_references_are_detected_as_numeric():CODE
LOW⚡tests/test_issue1350_reward_synth_numeric_parser.py85def test_the_issue_reference_set_is_accepted_whole(tmp_path, monkeypatch):CODE
LOW⚡tests/test_issue1350_reward_synth_numeric_parser.py93def test_a_refusing_calibration_names_every_rejected_reference():CODE
17904 more matches not shown…
Decorative Section Separators3995 hits · 14526 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_v0403_part_c.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v0403_part_c.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v0403_part_c.py267# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v0403_part_c.py269# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py136# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py138# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py281# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py283# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py336# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_issue1174_head_prefetch_after_lookup.py338# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_issue1174_head_prefetch_after_lookup.py33# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_issue1174_head_prefetch_after_lookup.py35# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_training_intelligence.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_training_intelligence.py82# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_training_intelligence.py318# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_training_intelligence.py320# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_training_intelligence.py5# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_training_intelligence.py7# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_training_intelligence.py190# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_training_intelligence.py192# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_cans.py69# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_cans.py71# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_cans.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_cans.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cans.py13# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cans.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cans.py202# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cans.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py76# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py138# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py140# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py209# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py211# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py361# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py363# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py416# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py418# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py463# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py465# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py541# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0660_part_a.py543# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v0660_part_a.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v0660_part_a.py37# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v07133.py34# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v07133.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py419# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py421# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py676# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py678# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py872# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py874# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py1215# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_v07133.py1217# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py21# ----------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py23# ----------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py86# ----------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py88# ----------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py247# ----------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_v0538.py249# ----------------------------------------------------------------------COMMENT
3935 more matches not shown…
Empty Error Handlers280 hits · 1400 pts
SeverityFileLineSnippetContext
HIGHtests/test_issue1449_trust_remote_code_dropped.py370except Exception:CODE
HIGHtests/test_issue1449_trust_remote_code_dropped.py398except Exception:CODE
HIGHtests/test_issue1449_trust_remote_code_dropped.py428except Exception:CODE
HIGHtests/test_issue1449_trust_remote_code_dropped.py458except Exception:CODE
HIGHtests/test_issue681_uld_id_compat.py185except Exception:CODE
HIGHtests/test_issue691_sft_packing.py38except Exception:CODE
HIGHtests/test_outbound_endpoint_ip_literals.py259except _RequestAttemptedError:CODE
HIGHtests/test_outbound_endpoint_ip_literals.py272except _RequestAttemptedError:CODE
HIGHtests/test_outbound_endpoint_ip_literals.py289except _RequestAttemptedError:CODE
HIGHtests/test_awq_gptq_export.py1075except ValueError:CODE
HIGHtests/test_v0580.py788except (OSError, ValueError):CODE
HIGHtests/test_vllm_serve.py128except (SystemExit, Exception):CODE
HIGHtests/test_v0537.py1113except ImportError:CODE
HIGHtests/test_issue1631_mxfp4_preflight.py101except typer.Exit:CODE
HIGHtests/test_issue1070_moe_target_modules.py595except Exception: # noqa: BLE001 -- setup carries on past the attachCODE
HIGHtests/test_v0531_139.py227except OSError:CODE
HIGHtests/test_v0531_139.py254except OSError:CODE
HIGHtests/test_v0450.py936except OSError:CODE
HIGHtests/test_part_d.py113except Exception: # tokenizer mock approximation may explode in decodeCODE
HIGHtests/test_issue865_langfuse_pull_bounds.py125except (BrokenPipeError, ConnectionResetError):CODE
HIGHtests/test_issue1652_preflight_prequantized.py260except typer.Exit:CODE
HIGHtests/test_v0660_followups.py301except OSError:CODE
HIGHtests/test_issue204_langfuse_pull.py358except (BrokenPipeError, ConnectionResetError):CODE
HIGHbenchmarks/bench_validator.py108except Exception:CODE
HIGHbenchmarks/harness/issue1702_arena_pack_gate.py376except torch.OutOfMemoryError:CODE
HIGHbenchmarks/harness/stream_probe.py718except (OSError, ValueError, subprocess.SubprocessError):CODE
HIGHbenchmarks/harness/issue361_nf4_throughput.py274except Exception:CODE
HIGHbenchmarks/harness/issue395_second_stack_vram.py155except Exception: # noqa: BLE001 - teardown must not mask the measurementCODE
HIGHsrc/soup_cli/cli.py901except Exception: # noqa: BLE001 — audit must never crash the CLICODE
HIGHsrc/soup_cli/cli.py968except Exception: # noqa: BLE001 — telemetry must never crash the CLICODE
HIGHsrc/soup_cli/cli.py1016except Exception:CODE
HIGHsrc/soup_cli/cli.py638except ImportError:CODE
HIGHsrc/soup_cli/cli.py649except ImportError:CODE
HIGHsrc/soup_cli/ui/app.py275except Exception:CODE
HIGHsrc/soup_cli/ui/app.py84except ValueError:CODE
HIGHsrc/soup_cli/ui/app.py606except (ValueError, TypeError):CODE
HIGHsrc/soup_cli/ui/app.py1231except (ValueError, IndexError, KeyError):CODE
HIGHsrc/soup_cli/autodistill/mlx_worker.py488except Exception:CODE
HIGHsrc/soup_cli/plugins/__init__.py166except OSError:CODE
HIGHsrc/soup_cli/plugins/__init__.py523except RuntimeError:CODE
HIGHsrc/soup_cli/utils/liger.py129except (ImportError, AttributeError):CODE
HIGHsrc/soup_cli/utils/liger.py77except (ImportError, AttributeError, NotImplementedError, KeyError, ValueError):CODE
HIGHsrc/soup_cli/utils/advise_history.py178except FileNotFoundError:CODE
HIGHsrc/soup_cli/utils/advise_history.py190except OSError:CODE
HIGHsrc/soup_cli/utils/advise_history.py257except OSError:CODE
HIGHsrc/soup_cli/utils/advise_history.py261except OSError:CODE
HIGHsrc/soup_cli/utils/advise_history.py238except OSError:CODE
HIGHsrc/soup_cli/utils/advise_history.py246except OSError:CODE
HIGHsrc/soup_cli/utils/ci_workflow.py244except OSError:CODE
HIGHsrc/soup_cli/utils/data_forge.py493except FileNotFoundError:CODE
HIGHsrc/soup_cli/utils/data_forge.py516except OSError:CODE
HIGHsrc/soup_cli/utils/ra_dit_run.py131except Exception: # noqa: BLE001 — best-effort cleanup.CODE
HIGHsrc/soup_cli/utils/ra_dit_run.py251except OSError:CODE
HIGHsrc/soup_cli/utils/mole_routing.py413except OSError:CODE
HIGHsrc/soup_cli/utils/data_doctor.py804except Exception: # noqa: BLE001 — fall through to per-id decodeCODE
HIGHsrc/soup_cli/utils/reward_hack_control.py1014except Exception: # noqa: BLE001CODE
HIGHsrc/soup_cli/utils/reward_hack_control.py777except FileNotFoundError:CODE
HIGHsrc/soup_cli/utils/reward_hack_control.py1019except Exception: # noqa: BLE001CODE
HIGHsrc/soup_cli/utils/reward_hack_control.py1074except Exception: # noqa: BLE001CODE
HIGHsrc/soup_cli/utils/reward_hack_control.py1009except Exception: # noqa: BLE001 — never crash trainingCODE
220 more matches not shown…
Unused Imports1379 hits · 1213 pts
SeverityFileLineSnippetContext
LOWtests/test_v0403_part_c.py3CODE
LOWtests/test_v0403_part_c.py519CODE
LOWtests/test_issue1174_head_prefetch_after_lookup.py22CODE
LOWtests/test_issue1350_reward_synth_numeric_parser.py8CODE
LOWtests/test_issue1247_grpo_beta_zero.py3CODE
LOWtests/test_issue819_plugin_discovery.py3CODE
LOWtests/test_issue821_toxicity_truthfulness.py3CODE
LOWtests/test_cans.py3CODE
LOWtests/test_peft_patches.py8CODE
LOWtests/test_v0660_part_a.py20CODE
LOWtests/test_issue1218_parquet_parity.py9CODE
LOWtests/test_v07133.py12CODE
LOWtests/test_v0538.py11CODE
LOWtests/test_refusal_multilingual.py11CODE
LOWtests/test_issue359_deepspeed_guard_coverage.py16CODE
LOWtests/test_batch_probe.py8CODE
LOWtests/test_terminal_output_hygiene.py35CODE
LOWtests/test_recipe_count_is_synced.py20CODE
LOWtests/test_issue1440_from_traces_reads_ingest_signal.py12CODE
LOWtests/test_issue549_bon_resume.py3CODE
LOWtests/test_issue1437_memorization_long_rows.py3CODE
LOWtests/test_issue1449_trust_remote_code_dropped.py14CODE
LOWtests/test_issue823_stale_feature_descriptions.py3CODE
LOWtests/test_issue580_autodistill_mlx_worker.py3CODE
LOWtests/test_v07117.py15CODE
LOWtests/test_ui_metrics.py91CODE
LOWtests/test_issue533_offline_hf_materialization.py3CODE
LOWtests/test_issue1731_fp8_needs_transformers_5_17.py15CODE
LOWtests/test_issue1445_early_destination_validation.py17CODE
LOWtests/test_sync_recipe_count.py16CODE
LOWtests/test_v0570_part_c.py3CODE
LOWtests/test_issue721_ppo_config_forwarding.py3CODE
LOWtests/test_issue1162_quest_base_identity.py3CODE
LOWtests/test_v0600_part_c.py10CODE
LOWtests/test_v07123.py21CODE
LOWtests/test_registry.py3CODE
LOWtests/test_windows_encoding.py11CODE
LOWtests/test_mcp_snapshot_run_directory.py11CODE
LOWtests/test_issue702_streaming_over_val_leak.py21CODE
LOWtests/test_issue1450_atomic_replace.py24CODE
LOWtests/test_v0650_part_b.py6CODE
LOWtests/test_issue1236_packing_loss_mask.py12CODE
LOWtests/test_issue805_optimizer_settings.py3CODE
LOWtests/test_issue836_bench_train_contract.py19CODE
LOWtests/test_issue835_fp8_gate.py18CODE
LOWtests/test_graddiff_acceptance.py1CODE
LOWtests/test_issue1433_expect_judge.py7CODE
LOWtests/test_part_a_wave1.py12CODE
LOWtests/test_serve_non_loopback_notice.py17CODE
LOWtests/test_issue599_telemetry_dns_ssrf.py12CODE
LOWtests/test_v0640_followups.py20CODE
LOWtests/test_issue1266_mole_gate_fp32_master.py35CODE
LOWtests/test_v0430_part_b.py2CODE
LOWtests/test_issue1195_ui_auth_non_ascii.py13CODE
LOWtests/test_issue1011_streamed_save_guard.py13CODE
LOWtests/test_code_review_medium_low.py3CODE
LOWtests/test_v0660_part_e.py25CODE
LOWtests/test_issue649_batch_probe_peak_gate.py13CODE
LOWtests/test_issue812_eval_against_results.py3CODE
LOWtests/test_issue1216_canary_formats.py9CODE
1319 more matches not shown…
Cross-Language Confusion168 hits · 912 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_cans.py80 eid = store.push(CODE
HIGH⚡tests/test_cans.py172 eid = store.push(CODE
HIGHtests/test_cans.py215 eid = store.push(CODE
HIGHtests/test_cans.py269 eid = store.push(name="recipe", tag="v1", base_model="llama",CODE
HIGHtests/test_issue549_bon_resume.py366 '{"index":1,"sft":{},"dpo":null}\n',CODE
HIGH⚡tests/test_issue1162_quest_base_identity.py302 '{"auto_map":{"AutoTokenizer":["custom.Tokenizer",null]}}', encoding="utf-8"CODE
HIGH⚡tests/test_registry.py215 e1 = store.push(name="model-a", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py217 e2 = store.push(name="model-a", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py232 store.push(name=f"m{i}", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py240 store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py242 store.push(name="m2", tag="v2", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py249 store.push(name="m1", tag="v1", base_model="llama-3.1-8b", task="sft",CODE
HIGH⚡tests/test_registry.py251 store.push(name="m2", tag="v1", base_model="qwen-3-8b", task="sft",CODE
HIGH⚡tests/test_registry.py259 store.push(name="medical-chat", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py261 store.push(name="legal-chat", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py269 store.push(name="Medical-Chat", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py276 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py284 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py290 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py296 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py320 store.push(name="m1", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py322 store.push(name="m2", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py333 store.push(name="m1", tag="v1", base_model="",CODE
HIGH⚡tests/test_registry.py340 store.push(name="m1", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py348 eid = store.push(CODE
HIGH⚡tests/test_registry.py360 store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py362 store.push(name="m2", tag="v1", base_model="b", task="dpo",CODE
HIGH⚡tests/test_registry.py372 store.push(name=f"m{i}", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py380 store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py399 parent = store.push(name="parent", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py401 child = store.push(name="child", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py437 eid = store.push(name="m1", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py451 store.push(name="m1", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py468 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py487 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py501 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py520 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py533 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py553 parent = store.push(name="base", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py555 child = store.push(name="fork", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py570 a = store.push(name="a", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py572 b = store.push(name="b", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py582 a = store.push(name="a", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py593 a = store.push(name="a", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py595 b = store.push(name="b", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py607 parent = store.push(name="p", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py618 child = store.push(name="c", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py860 eid = store.push(name="m1", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py875 eid = store.push(name="m1", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py911 eid = store.push(name="m1", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py953 parent = store.push(name="base", tag="v1", base_model="llama",CODE
HIGH⚡tests/test_registry.py955 child = store.push(name="base", tag="v2", base_model="llama",CODE
HIGH⚡tests/test_registry.py986 eid = store.push(name="m1", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py1005 store.push(name="clean", tag="v1", base_model="b", task="sft",CODE
HIGH⚡tests/test_registry.py1020 store.push(name="alpha", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py1022 store.push(name="beta", tag="v1", base_model="b",CODE
HIGH⚡tests/test_registry.py1034 store.push(name="m1", tag="v1", base_model="b",CODE
HIGHtests/test_registry.py193 entry_id = store.push(CODE
HIGHtests/test_registry.py809 eid = store.push(name="m1", tag="v1", base_model="llama",CODE
HIGHtests/test_registry.py830 store.push(name="medical-chat", tag="v1", base_model="llama",CODE
108 more matches not shown…
Cross-File Repetition109 hits · 545 pts
SeverityFileLineSnippetContext
HIGHtests/test_issue359_deepspeed_guard_coverage.py0strip trailing comments so prose about the call is not read as a call.STRING
HIGHtests/test_issue725_lorafa_wiring_coverage.py0strip trailing comments so prose about the call is not read as a call.STRING
HIGHtests/test_issue724_loraplus_wiring_coverage.py0strip trailing comments so prose about the call is not read as a call.STRING
HIGHtests/test_issue359_deepspeed_guard_coverage.py0without this, a moved source tree turns every check below into a vacuous pass over an empty file list.STRING
HIGHtests/test_issue725_lorafa_wiring_coverage.py0without this, a moved source tree turns every check below into a vacuous pass over an empty file list.STRING
HIGHtests/test_issue724_loraplus_wiring_coverage.py0without this, a moved source tree turns every check below into a vacuous pass over an empty file list.STRING
HIGHtests/test_device_map_distributed.py0without this, a moved source tree turns every check below into a vacuous pass over an empty file list.STRING
HIGHtests/test_serve_non_loopback_notice.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_issue814_reward_stress.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_autopilot.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_migrate.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_train_gpus_exit_code.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_issue808_staged_config_fields.py0ansi-stripped, whitespace-collapsed cli output, safe to substring-match.STRING
HIGHtests/test_issue1222_refuse_int8_qat.py0rich colours per character and wraps, so compare stripped + collapsed.STRING
HIGHtests/test_issue1240_refuse_longlora.py0rich colours per character and wraps, so compare stripped + collapsed.STRING
HIGHtests/test_issue1613_early_stripe_roots.py0rich colours per character and wraps, so compare stripped + collapsed.STRING
HIGHtests/test_issue1230_refuse_ebft.py0rich colours per character and wraps, so compare stripped + collapsed.STRING
HIGHtests/test_eval_platform.py0remove ansi escape codes from rich-formatted output.STRING
HIGHtests/test_speculative_decoding.py0remove ansi escape codes from rich-formatted output.STRING
HIGHtests/test_synth_data_pro.py0remove ansi escape codes from rich-formatted output.STRING
HIGHtests/test_inference_advanced.py0remove ansi escape codes from rich-formatted output.STRING
HIGHtests/test_issue724_loraplus_optimizer.py0a real config-shaped object (not a mock): missing attributes raise.STRING
HIGHtests/test_issue745_ppo_loraplus_scheduler.py0a real config-shaped object (not a mock): missing attributes raise.STRING
HIGHtests/test_issue725_lorafa_optimizer.py0a real config-shaped object (not a mock): missing attributes raise.STRING
HIGHtests/test_pretrain.py0test the runtimeerror guard when train() is called before setup().STRING
HIGHtests/test_kto.py0test the runtimeerror guard when train() is called before setup().STRING
HIGHtests/test_orpo.py0test the runtimeerror guard when train() is called before setup().STRING
HIGHtests/test_embedding.py0test the runtimeerror guard when train() is called before setup().STRING
HIGHtests/test_pretrain.py0calling train() before setup() should raise runtimeerror.STRING
HIGHtests/test_kto.py0calling train() before setup() should raise runtimeerror.STRING
HIGHtests/test_embedding.py0calling train() before setup() should raise runtimeerror.STRING
HIGHtests/test_pretrain.py0test the result dict returned by train() using a mocked trainer.STRING
HIGHtests/test_kto.py0test the result dict returned by train() using a mocked trainer.STRING
HIGHtests/test_orpo.py0test the result dict returned by train() using a mocked trainer.STRING
HIGHtests/test_embedding.py0test the result dict returned by train() using a mocked trainer.STRING
HIGHtests/test_pretrain.py0train() result dict must contain all expected keys.STRING
HIGHtests/test_kto.py0train() result dict must contain all expected keys.STRING
HIGHtests/test_embedding.py0train() result dict must contain all expected keys.STRING
HIGHtests/test_pretrain.py0initial_loss and final_loss should come from trainer log_history.STRING
HIGHtests/test_kto.py0initial_loss and final_loss should come from trainer log_history.STRING
HIGHtests/test_embedding.py0initial_loss and final_loss should come from trainer log_history.STRING
HIGHtests/test_pretrain.py0when log_history has no 'loss' entries, losses should be 0.STRING
HIGHtests/test_kto.py0when log_history has no 'loss' entries, losses should be 0.STRING
HIGHtests/test_embedding.py0when log_history has no 'loss' entries, losses should be 0.STRING
HIGHtests/test_pretrain.py0total_steps should match trainer.state.global_step.STRING
HIGHtests/test_kto.py0total_steps should match trainer.state.global_step.STRING
HIGHtests/test_embedding.py0total_steps should match trainer.state.global_step.STRING
HIGHtests/test_pretrain.py0output_dir in result should match wrapper._output_dir.STRING
HIGHtests/test_kto.py0output_dir in result should match wrapper._output_dir.STRING
HIGHtests/test_embedding.py0output_dir in result should match wrapper._output_dir.STRING
HIGHtests/test_pretrain.py0train() should call trainer.save_model with output_dir.STRING
HIGHtests/test_kto.py0train() should call trainer.save_model with output_dir.STRING
HIGHtests/test_embedding.py0train() should call trainer.save_model with output_dir.STRING
HIGHtests/test_pretrain.py0train() should call tokenizer.save_pretrained with output_dir.STRING
HIGHtests/test_kto.py0train() should call tokenizer.save_pretrained with output_dir.STRING
HIGHtests/test_embedding.py0train() should call tokenizer.save_pretrained with output_dir.STRING
HIGHtests/test_pretrain.py0train() should forward resume_from_checkpoint to trainer.train().STRING
HIGHtests/test_kto.py0train() should forward resume_from_checkpoint to trainer.train().STRING
HIGHtests/test_embedding.py0train() should forward resume_from_checkpoint to trainer.train().STRING
HIGHtests/test_pretrain.py0long durations (>=1h) should produce 'xh ym' format.STRING
49 more matches not shown…
Excessive Try-Catch Wrapping515 hits · 530 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_issue1449_trust_remote_code_dropped.py458 except Exception:CODE
LOWtests/test_issue1449_trust_remote_code_dropped.py370 except Exception:CODE
LOWtests/test_issue1449_trust_remote_code_dropped.py398 except Exception:CODE
LOWtests/test_issue1449_trust_remote_code_dropped.py428 except Exception:CODE
LOWtests/test_issue681_uld_id_compat.py185 except Exception:CODE
LOW⚡tests/test_v07204.py37 except Exception: # pragma: no cover - torch always present in CICODE
LOW⚡tests/conftest.py25 except Exception:CODE
LOW⚡tests/conftest.py29 except Exception: # noqa: BLE001 — broken CUDA install or driverCODE
LOWtests/conftest.py57 except Exception: # noqa: BLE001 — a broken CUDA install counts as no CUDACODE
LOWtests/conftest.py71 except Exception: # noqa: BLE001 — a broken torch install counts as no MPSCODE
LOW⚡tests/test_v05311.py1528 except Exception as exc: # noqa: BLE001 — a broken trl is not a failureCODE
LOWtests/test_v05311.py1239 except Exception as exc: # noqa: BLE001 — a broken trl is not a failureCODE
MEDIUMtests/test_issue775_path_containment_ratchet.py314def _validate(target, base):CODE
LOW⚡tests/test_issue775_path_containment_ratchet.py383 except Exception:CODE
LOWtests/test_issue1099_moe_lora_remaining_tasks.py215 except Exception as exc: # noqa: BLE001 — setup continues past the LoRA attachCODE
LOWtests/test_issue691_sft_packing.py38 except Exception:CODE
LOWtests/test_trl_preference_config_contract.py298 except Exception as exc: # noqa: BLE001 - reported, not swallowedCODE
MEDIUMtests/test_v0532.py256def _torch_or_skip():CODE
LOW⚡tests/test_v0532.py261 except Exception: # pragma: no cover - CI without torchCODE
LOWtests/test_errors.py293 except Exception as caught:CODE
LOWtests/test_why.py101 except Exception:CODE
LOWtests/test_issue968_bnb_nf4_path_divergence.py60 except Exception:CODE
MEDIUMtests/test_issue968_bnb_nf4_path_divergence.py55def _bnb_version() -> str:CODE
LOWtests/test_v0537.py1128 except Exception as e:CODE
LOWtests/test_issue1441_ppo_refuses_unfed_rl_flags.py221 except Exception as exc: # noqa: BLE001 — anything but the refusalCODE
LOWtests/test_issue1070_moe_target_modules.py595 except Exception: # noqa: BLE001 -- setup carries on past the attachCODE
LOWtests/test_v0712.py487 except Exception as exc: # noqa: BLE001CODE
LOWtests/test_part_d.py113 except Exception: # tokenizer mock approximation may explode in decodeCODE
LOW⚡tests/test_recipes.py87 except Exception as exc:CODE
LOWtests/test_issue1208_simpo_zero_token_completion.py305 except Exception as exc: # noqa: BLE001 — a broken trl is not a failureCODE
LOWtests/test_issue798_moe_flags_per_task.py191 except Exception as exc: # noqa: BLE001 — setup continues past the LoRA attachCODE
LOWtests/test_v0540.py971 except Exception as exc: # noqa: BLE001CODE
LOWtests/test_trl_version_compat.py244 except Exception as exc: # noqa: BLE001 - reported, not swallowedCODE
LOWtests/test_issue1361_auth_status_text_chain.py58 except Exception:CODE
LOW⚡tests/test_issue336_deepspeed_lora.py363 except Exception: # noqa: BLE001 - any other refusal still counts as strictCODE
LOWtests/test_issue839_fast_lora_single_projection.py400 except Exception as exc: # noqa: BLE001CODE
MEDIUMtests/test_issue839_fast_lora_single_projection.py397def run():CODE
LOWbenchmarks/bench_validator.py108 except Exception:CODE
LOWbenchmarks/harness/two_drive_stripe_gate.py245 except Exception as exc: # a diagnostic must never fail the armCODE
LOWbenchmarks/harness/two_drive_stripe_gate.py316 except Exception as exc: # a diagnostic must never fail the armCODE
LOW⚡benchmarks/harness/issue1702_arena_pack_gate.py252 except Exception as exc: # the stamp is context, never a reason to stop a seriesCODE
LOWbenchmarks/harness/issue1702_arena_pack_gate.py471 except Exception as exc:CODE
LOWbenchmarks/harness/issue1702_arena_pack_gate.py475 except Exception as exc:CODE
LOW⚡benchmarks/harness/issue1702_arena_pack_gate.py488 except Exception as exc:CODE
LOWbenchmarks/harness/bitexact.py56 except Exception:CODE
LOWbenchmarks/harness/bitexact.py656 except Exception as exc:CODE
MEDIUMbenchmarks/harness/bitexact.py51def cuda_available() -> bool:CODE
LOWbenchmarks/harness/graddiff.py404 except Exception as exc:CODE
LOWbenchmarks/harness/graddiff.py739 except Exception as exc:CODE
LOWbenchmarks/harness/fixture_window_cpu.py308 except Exception:CODE
LOWbenchmarks/harness/fixture_window_cpu.py335 except Exception:CODE
MEDIUMbenchmarks/harness/fixture_window_cpu.py326def _cpu_gemv_registered() -> bool | None:CODE
MEDIUMbenchmarks/harness/stream_probe.py62def cuda_available() -> bool:CODE
LOWbenchmarks/harness/stream_probe.py67 except Exception:CODE
LOWbenchmarks/harness/stream_probe.py830 except Exception as close_exc: # the OOM is the result; a failed close must not hide itCODE
LOWbenchmarks/harness/stream_probe.py1180 except Exception as exc: # re-raised unless it is an out-of-memory errorCODE
LOWbenchmarks/harness/stream_probe.py1201 except Exception as exc: # re-raised unless it is an out-of-memory errorCODE
LOWbenchmarks/harness/stream_probe.py1261 except Exception as exc: # re-raised unless it is an out-of-memory errorCODE
LOWbenchmarks/harness/synth_checkpoint.py104 except Exception: # the generator needs only torchCODE
LOWbenchmarks/harness/issue901_stream_step_probe.py193 except Exception as exc: # catching the OOM is the pointCODE
455 more matches not shown…
Deep Nesting400 hits · 348 pts
SeverityFileLineSnippetContext
LOWtests/test_v07133.py939CODE
LOWtests/test_v0538.py509CODE
LOWtests/test_terminal_output_hygiene.py69CODE
LOWtests/test_terminal_output_hygiene.py89CODE
LOWtests/test_issue823_stale_feature_descriptions.py131CODE
LOWtests/test_issue1266_mole_gate_fp32_master.py99CODE
LOWtests/test_issue1195_ui_auth_non_ascii.py160CODE
LOWtests/test_issue896_no_duplicate_terminal_sanitizer.py62CODE
LOWtests/test_readme_translation_sync.py193CODE
LOWtests/test_readme_translation_sync.py229CODE
LOWtests/test_readme_translation_sync.py247CODE
LOWtests/test_issue1124_sft_audio_stream_unsloth_fp8.py181CODE
LOWtests/test_issue1005_peft021_canonical_names.py199CODE
LOWtests/test_v07132.py160CODE
LOWtests/test_v07201.py87CODE
LOWtests/test_awq_gptq_export.py315CODE
LOWtests/test_awq_gptq_export.py393CODE
LOWtests/test_awq_gptq_export.py557CODE
LOWtests/test_awq_gptq_export.py705CODE
LOWtests/test_issue1547_outbound_http_sinks.py287CODE
LOWtests/test_issue1547_outbound_http_sinks.py319CODE
LOWtests/test_issue1547_outbound_http_sinks.py342CODE
LOWtests/test_issue1547_outbound_http_sinks.py493CODE
LOWtests/test_issue1547_outbound_http_sinks.py612CODE
LOWtests/test_issue616_net_guard_is_shared.py290CODE
LOWtests/test_build_dag.py21CODE
LOWtests/test_issue1219_classifier_data_loader.py94CODE
LOWtests/test_issue1219_classifier_data_loader.py112CODE
LOWtests/test_issue1480_machine_output_rich_json.py168CODE
LOWtests/test_issue755_backend_support_registry.py151CODE
LOWtests/test_issue755_backend_support_registry.py555CODE
LOWtests/test_issue724_loraplus_wiring_coverage.py156CODE
LOWtests/test_issue602_qwen4_ple_streaming.py69CODE
LOWtests/test_issue752_cli_commands_called_as_functions.py83CODE
LOWtests/test_issue1522_judge_down.py103CODE
LOWtests/test_issue802_callback_kwargs_in_trainers.py65CODE
LOWtests/test_issue802_callback_kwargs_in_trainers.py183CODE
LOWtests/test_issue1220_resume_prm_moe.py66CODE
LOWtests/test_issue1220_resume_prm_moe.py88CODE
LOWtests/test_issue1497_freeze_refused_outside_sft.py197CODE
LOWtests/test_issue844_notebook_pin_guard.py141CODE
LOWtests/test_issue674_postfit_evidence.py39CODE
LOWtests/test_commands_md_covers_registered_commands.py41CODE
LOWtests/test_onnx_tensorrt_export.py80CODE
LOWtests/test_issue1232_grpo_variant_kl.py140CODE
LOWtests/test_ci_full_matrix_on_approval.py248CODE
LOWtests/test_issue979_documented_cli_flags_exist.py60CODE
LOWtests/test_issue865_langfuse_pull_bounds.py90CODE
LOWtests/test_issue865_langfuse_pull_bounds.py99CODE
LOWtests/test_trainer_coverage_v035.py42CODE
LOWtests/test_trainer_coverage_v035.py226CODE
LOWtests/test_issue550_bon_offline.py446CODE
LOWtests/test_issue748_config_fields_reach_a_consumer.py134CODE
LOWtests/test_issue748_config_fields_reach_a_consumer.py231CODE
LOWtests/test_issue748_config_fields_reach_a_consumer.py898CODE
LOWtests/test_issue748_config_fields_reach_a_consumer.py938CODE
LOWtests/test_issue781_inference_bos.py641CODE
LOWtests/test_config_regex_limits.py235CODE
LOWtests/test_issue1465_documented_invocations_exist.py83CODE
LOWtests/test_issue1465_documented_invocations_exist.py136CODE
340 more matches not shown…
Modern Structural Boilerplate167 hits · 165 pts
SeverityFileLineSnippetContext
LOWtests/test_issue815_canary_runtime.py21 def set_adapter(self, name: str) -> None:CODE
LOW⚡tests/test_issue971_async_disk_source.py1040def _settle(source, timeout: float = 10.0) -> None:CODE
LOWbenchmarks/harness/two_drive_aspm_probe.py98def set_aspm_ac(index: int) -> None:CODE
LOWbenchmarks/harness/fsdp_sharding_probe.py61__all__ = [CODE
LOWbenchmarks/harness/head_prefetch_ab.py283 def set_arm(arm: Optional[int]) -> None:CODE
LOWsrc/soup_cli/ui/app.py22logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/ui/app.py305def set_auth_token(token: str) -> None:CODE
LOWsrc/soup_cli/autodistill/__init__.py27__all__ = [CODE
LOWsrc/soup_cli/config/unknown_keys.py49__all__ = [CODE
LOWsrc/soup_cli/config/staged_fields.py17__all__ = [CODE
LOWsrc/soup_cli/plugins/__init__.py41logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/plugins/__init__.py532__all__ = [CODE
LOWsrc/soup_cli/utils/tool_outputs.py138 def set_output(self, text: str) -> None:CODE
LOWsrc/soup_cli/utils/tool_outputs.py143 def set_error(self, text: str) -> None:CODE
LOWsrc/soup_cli/utils/prune_prompt.py440__all__ = [CODE
LOWsrc/soup_cli/utils/seeding.py39logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/ci_workflow.py250__all__ = ["render_soup_gate_workflow", "write_soup_gate_workflow"]CODE
LOWsrc/soup_cli/utils/data_forge.py793__all__ = [CODE
LOWsrc/soup_cli/utils/local_rl_scheduler.py301__all__ = [CODE
LOWsrc/soup_cli/utils/fast_lora_mlp.py24logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/fast_lora_mlp.py31__all__ = ["patch_fast_lora_mlp", "unpatch_fast_lora_mlp"]CODE
LOWsrc/soup_cli/utils/ra_dit_run.py46__all__ = [CODE
LOWsrc/soup_cli/utils/prompt_distill.py346__all__ = [CODE
LOWsrc/soup_cli/utils/data_doctor.py942__all__ = [CODE
LOWsrc/soup_cli/utils/reward_hack_control.py56logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/prompt_compile.py482__all__ = [CODE
LOWsrc/soup_cli/utils/tracing.py15logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/persona_hub.py268__all__ = [CODE
LOWsrc/soup_cli/utils/layer_shard.py50logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/mix_proxy.py43__all__ = [CODE
LOWsrc/soup_cli/utils/curriculum_dynamic.py35__all__ = [CODE
LOWsrc/soup_cli/utils/vllm.py10logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/magpie.py577__all__ = [CODE
LOWsrc/soup_cli/utils/data_pipeline.py1006__all__ = [CODE
LOWsrc/soup_cli/utils/embed.py18logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/apple_adapter.py56logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/apple_adapter.py564__all__ = [CODE
LOWsrc/soup_cli/utils/reward_hacking.py44logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/drift_alarm.py243__all__ = [CODE
LOWsrc/soup_cli/utils/anthropic_messages.py210__all__ = [CODE
LOWsrc/soup_cli/utils/deploy_autopilot.py384__all__ = [CODE
LOWsrc/soup_cli/utils/prm_reward.py490__all__ = [CODE
LOWsrc/soup_cli/utils/hardware_fit.py347__all__ = [CODE
LOWsrc/soup_cli/utils/fast_lora_qkv.py39__all__ = ["patch_fast_lora_qkv", "unpatch_fast_lora_qkv"]CODE
LOWsrc/soup_cli/utils/multipack_trainer.py34logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/server_tools.py169__all__ = [CODE
LOWsrc/soup_cli/utils/license_advisor.py321__all__ = [CODE
LOWsrc/soup_cli/utils/tunability.py620__all__ = [CODE
LOWsrc/soup_cli/utils/interference_live.py163__all__ = ["measure_interference_losses"]CODE
LOWsrc/soup_cli/utils/terraform_plan.py413__all__ = [CODE
LOWsrc/soup_cli/utils/grpo_long_context.py26logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/dpo_variants.py37__all__ = [CODE
LOWsrc/soup_cli/utils/final_answer.py81__all__ = [CODE
LOWsrc/soup_cli/utils/peft_wiring.py19logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/mii.py15logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/ingest_pull.py583__all__ = [CODE
LOWsrc/soup_cli/utils/ngram_spec.py65__all__ = [CODE
LOWsrc/soup_cli/utils/fsdp_consolidate.py30logger = logging.getLogger(__name__)CODE
LOWsrc/soup_cli/utils/completions.py294__all__ = [CODE
LOWsrc/soup_cli/utils/build_dag.py1025__all__ = [CODE
107 more matches not shown…
AI Slop Vocabulary56 hits · 154 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml136# Aider's normal CLI. Its Polyglot harness is source-only, so `soup eval aider`COMMENT
LOW⚡tests/test_registry.py1007 # SQL injection attempt — should simply return 0 hits, not crashCOMMENT
LOWtests/test_issue443_interleave_wiring.py446 # the real process cwd — must actually chdir, not just pass tmp_path.COMMENT
MEDIUMtests/test_issue814_reward_stress.py128 # pinned. (`accuracy` itself is now robust: tests/test_issue1226_reward_gold_parsing.py.)STRING
MEDIUMtests/test_issue814_reward_stress.py211 # robust families (0% acceptance). Under pooled aggregate denominator this wouldSTRING
MEDIUM⚡tests/test_issue683_mlx_response_masking.py529# live in `mlx_sft.py`, where the feature is connected. The fake-MLX harnessCOMMENT
MEDIUM⚡tests/test_issue683_mlx_response_masking.py609 # `CacheDataset` is identity in the fake harness, so the dataset thatCOMMENT
MEDIUM⚡tests/test_issue23_mlx_harness_bridge.py142 # ansi-ok: harness bridge formatted text, not CLI consoleCOMMENT
MEDIUM⚡tests/test_issue23_mlx_harness_bridge.py144 # ansi-ok: harness bridge formatted text, not CLI consoleCOMMENT
MEDIUM⚡tests/test_issue968_bnb_nf4_path_divergence.py78# harness — deliberately a copy of the neighbour's, not an import of it.COMMENT
LOWtests/test_doctor.py1010 # We mock mp.spawn to just set a value in the return_dict instead of actually running processes.COMMENT
MEDIUMtests/test_v0401_part_d.py1"""v0.40.1 Part D — CLI UX consistency tests (highest-leverage subset).STRING
MEDIUMtests/test_issue716_harness_step_guard.py1"""#716: the MLX benchmark harness refuses a run whose step counts it did not pin.STRING
LOW⚡tests/test_inference_advanced.py482 # Should not raise, just return None + logCOMMENT
MEDIUM⚡tests/test_v0713.py33# Rich's FORCE_COLOR splitting on CI (mirrors the v0.71.1 ANSI-robust fix:COMMENT
MEDIUMtests/test_issue1265_ab_nig.py1"""#1265 — `soup ab` decides with a variance-robust statistic and needs no burn-in.STRING
MEDIUMtests/test_issue1265_ab_nig.py1"""#1265 — `soup ab` decides with a variance-robust statistic and needs no burn-in.STRING
LOWtests/test_bugfixes.py946 # resume is None/falsy so it should just call train()COMMENT
MEDIUM⚡tests/test_issue1702_arena_pack_gate.py256 # Registered first, so the harness's process-wide switch is undone after the test.COMMENT
MEDIUMtests/test_v0404_part_a.py27# Strip ANSI so substring assertions are robust. Mirrors the helper inCOMMENT
MEDIUM⚡tests/test_trust_remote_code.py19# ANSI so substring assertions are robust. Mirrors the helper inCOMMENT
MEDIUMtests/test_issue23_mlx_val_loss_producer.py320 # a measured value to carry. (The default harness order is mlx-lm'sCOMMENT
MEDIUMtests/test_log_level.py23# substring assertions are robust across all CI matrix jobs.COMMENT
MEDIUM⚡tests/test_issue686_mlx_optimizer_schedule.py306# design is that one expression, and nothing reached it. Same fake-MLX harnessCOMMENT
MEDIUM⚡tests/test_issue686_mlx_optimizer_schedule.py313# The shared fake-MLX harness, imported rather than re-implemented -- the sameCOMMENT
MEDIUMtests/test_issue686_mlx_optimizer_schedule.py407# fake-MLX harness, so they run on Linux and Windows too.COMMENT
MEDIUMtests/test_issue379_variant2_gate.py1"""#379: publish the STEP 14 control-versus-repair measurement harness.STRING
MEDIUM⚡tests/test_v0718.py44# Tiny real-torch harness for activation capture (#215 / #217 / #219).COMMENT
MEDIUMtests/test_issue361_nf4_throughput.py37 # The harness imports its sibling ``source_provenance`` (#1387), as it doesCOMMENT
MEDIUMtests/test_issue361_nf4_throughput.py38 # when run as a script from benchmarks/harness.COMMENT
MEDIUM⚡tests/test_issue361_nf4_throughput.py412 headline predates the #331 repair and name this harness as the protocol,STRING
MEDIUMtests/test_v07203.py2734 # Omitted rather than defaulted, so the harness exercises the productionCOMMENT
MEDIUM⚡tests/test_v07141.py179 # zip short-circuits) — must be a hard error, never a silent 0/1=robust.COMMENT
MEDIUMtests/test_v07141.py347 # false "robust" exit 0.STRING
MEDIUMtests/test_issue1387_source_provenance.py1"""#1387: one ``source_sha()`` for every benchmark harness that records its tree.STRING
MEDIUMbenchmarks/harness/fixture_window_cpu.py235 # A broken control is a harness/Soup failure on every host; do not hide itCOMMENT
MEDIUMbenchmarks/harness/stream_probe.py82 # entries at the same physical drive is on the operator running this harness.COMMENT
MEDIUMbenchmarks/harness/issue361_nf4_throughput.py6reproduction) — was measured BEFORE the #331 repair. This harness re-runs thatSTRING
MEDIUMbenchmarks/harness/two_drive_sustained.py240 out["windows_unix"] = None # a harness without per-step start timesCODE
MEDIUM⚡benchmarks/harness/mlx_sft_smoke.py193 # This harness backs a published throughput record, so it pins the settingCOMMENT
MEDIUM⚡benchmarks/harness/mlx_sft_smoke.py198 # here, with the reason, because this harness backs a published throughputCOMMENT
MEDIUM⚡benchmarks/harness/mlx_sft_smoke.py200 # record depend on a value the harness never mentions, which is #716.COMMENT
MEDIUMbenchmarks/harness/bnb_repro.py263 # A successful reproduction here would mean the harness is notCOMMENT
MEDIUMbenchmarks/harness/bnb_repro.py282 # is removed or bypassed, the comparison becomes equal and the harnessCOMMENT
MEDIUM.github/workflows/ci.yml279 # benchmarks/harness/ carries real parsing logic — mlx_sft_smoke.pyCOMMENT
MEDIUMsrc/soup_cli/cli.py352# v0.63.0 Part D — mSPRT A/B harness.COMMENT
MEDIUMsrc/soup_cli/utils/data_clean.py103 # Strip prefix boilerplate (loop to catch chained preambles like "Certainly! As an AI...")COMMENT
MEDIUMsrc/soup_cli/utils/curriculum_dynamic.py263 # Median is robust to outliers; matches Axolotl curriculum policy.COMMENT
MEDIUMsrc/soup_cli/utils/capability_suite.py249 # Lazy-load the harness via importlib so the module has no heavyCOMMENT
MEDIUMsrc/soup_cli/utils/async_disk_source.py796 Still the reader's ONE call per layer read, the seam #974's harness brackets. SinceSTRING
MEDIUMsrc/soup_cli/utils/layer_stream_runtime.py1277 # point. It is a property, so a harness can flip it between steps andCOMMENT
MEDIUMsrc/soup_cli/utils/freeze.py117 # (quantization='none') normally prevents this, but stay robust.COMMENT
MEDIUMsrc/soup_cli/utils/preference_combine.py52#: attached without a config — an existing test harness, say — lands on theCOMMENT
MEDIUMsrc/soup_cli/commands/reward.py333 """Adversarially probe a reward verifier for gameability (exit 0 robust / 2 gameable)."""STRING
MEDIUMsrc/soup_cli/commands/doctor.py1195 # Per-iteration timing (10 samples). Median is more robust toCOMMENT
MEDIUMsrc/soup_cli/commands/doctor.py1163_NCCL_BENCHMARK_TIMED_ITERS = 10 # 10 timed runs; report the median (robust to outliers)CODE
Over-Commented Block174 hits · 146 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1# Pre-commit hooks for Soup CLI.COMMENT
LOW.pre-commit-config.yaml21# 2. run `ruff format src/soup_cli/ tests/` and commit the result alone,COMMENT
LOWpyproject.toml41 # Soup supports both the 5.x and 6.x surfaces through plotext_compat (#522).COMMENT
LOWpyproject.toml61 "torch>=2.6.0",COMMENT
LOWpyproject.toml81 # 0.27.0 - 0.27.2 yes NO yes yes yesCOMMENT
LOWpyproject.toml101 # DPO/GRPO modules from importing (#503). trl 0.29 vendors its own probe andCOMMENT
LOWpyproject.toml121 # Soup now declares what its trainers need instead of inheriting it. TheCOMMENT
LOWpyproject.toml181data-pro = ["langdetect>=1.0.9", "presidio-analyzer>=2.2.0"]COMMENT
LOWpyproject.toml201# lazy-imported (only src/soup_cli/mcp_server/server.py touches it), so the CLICOMMENT
LOWtests/test_v07200.py2581 assert attempts == [True, False]COMMENT
LOWtests/test_issue1449_trust_remote_code_dropped.py281 return SimpleNamespace(pad_token="x", eos_token="x")COMMENT
LOWtests/test_issue459_interleave_streaming_hub.py561 streaming=True,COMMENT
LOWtests/test_issue683_mlx_response_masking.py381COMMENT
LOWtests/test_issue755_backend_support_registry.py421COMMENT
LOWtests/test_rewind_hf.py241COMMENT
LOWtests/test_issue723_sequence_gspo.py121 # s_0 = exp(0.1) ~ 1.1051709COMMENT
LOWtests/test_issue844_notebook_pin_guard.py201 # huggingface_hub >= 1.32 keeps Xet blobs in a cache-wide store thatCOMMENT
LOWtests/test_issue1070_moe_target_modules.py401COMMENT
LOWtests/test_recipe_sizes.py1# Copyright 2026 Soup Authors.COMMENT
LOWtests/test_v0640_part_c.py721 monkeypatch.chdir(tmp_path)COMMENT
LOWtests/test_issue748_config_fields_reach_a_consumer.py321 # #807: a read inside a function nothing calls is not consumption, forCOMMENT
LOWtests/test_issue686_mlx_optimizer_schedule.py301COMMENT
LOWtests/test_v07202.py1221#: branch taken only when ``not self.training and not x.requires_grad`` -- itCOMMENT
LOWtests/test_v07202.py1241#: measured constant from one stack to another is the same mistake this projectCOMMENT
LOWtests/test_v07203.py41 dict(label="Qwen2.5-0.5B B2 S512", batch=2, seq=512, peak=2592245248, **_QWEN),COMMENT
LOWtests/test_v07203.py601 def test_rejects_a_non_finite_tflops(self):COMMENT
LOWtests/test_v07203.py2001#: which forced the tier by describing a box with a kilobyte of free RAM;COMMENT
LOWtests/test_cli_help_assertions_are_ansi_safe.py301# ---------------------------------------------------------------------------COMMENT
LOWdocs/training.md441# Wasserstein-distance distillation between two models that SHARE aCOMMENT
LOWdocs/training.md461# Config-only: there is no --minillm-* flag beyond --minillm-on-policy belowCOMMENT
LOWdocs/evaluation.md721# Custom eval tasks from JSONLCOMMENT
LOWexamples/configs/rlhf_step3_ppo.yaml1# RLHF Step 3: PPO TrainingCOMMENT
LOWexamples/configs/sft_basic.yaml1# SFT Basic ExampleCOMMENT
LOWexamples/configs/rlhf_step1_sft.yaml1# RLHF Step 1: Supervised Fine-Tuning (SFT)COMMENT
LOWexamples/configs/grpo_reasoning.yaml1# GRPO Reasoning ExampleCOMMENT
LOWexamples/configs/vision_llama.yaml1# TEMPLATE — NOT runnable as-is. Bring your own images and JSONL.COMMENT
LOWexamples/configs/rlhf_step2_reward.yaml1# RLHF Step 2: Train Reward ModelCOMMENT
LOWbenchmarks/harness/mlx_sft_smoke.py181base: {model}COMMENT
LOWbenchmarks/harness/mlx_sft_smoke.py201 epochs: {epochs}COMMENT
LOW.github/FUNDING.yml1# Sponsor button shown in the repo sidebar and on every issue / PR.COMMENT
LOW.github/workflows/merge-freshness.yml1# #1017 — re-evaluate a PR against live main without writing to the fork.COMMENT
LOW.github/workflows/recipe-repo-ids.yml1# Recipe repo-id resolution (#677).COMMENT
LOW.github/workflows/dependency-drift.yml1# Dependency drift (#323).COMMENT
LOW.github/workflows/recipe-attach.yml1# Recipe attach ratchet (#1116).COMMENT
LOW.github/workflows/recipe-attach.yml81 # and nothing from the test extras.COMMENT
LOW.github/workflows/issue-triage.yml1# Keep the triage labels of an issue consistent:COMMENT
LOW.github/workflows/recipe-validation.yml41# against a service rate of 4.6, i.e. the queue diverged rather than backed up.COMMENT
LOW.github/workflows/recipe-validation.yml61# that morning: 24 of 70 queued runs were full matrices for main commits (aboutCOMMENT
LOW.github/workflows/codspeed.yml1name: CodSpeedCOMMENT
LOW.github/workflows/codspeed.yml21# nothing to authenticate with.COMMENT
LOW.github/workflows/codspeed.yml41# variables > Actions > Variables). Remove or unset it to turn it off again.COMMENT
LOW.github/workflows/ci.yml1name: CICOMMENT
LOW.github/workflows/ci.yml21 - cron: '23 3 * * *'COMMENT
LOW.github/workflows/ci.yml41# tagged, and that now survives a later push instead of depending on a freeze.COMMENT
LOW.github/workflows/ci.yml61# group a RUNNING main run still finishes (cancel-in-progress stays PR-only), andCOMMENT
LOW.github/workflows/ci.yml81# matrix, before the platform intervenes at all.COMMENT
LOW.github/workflows/ci.yml101# job median max -> limitCOMMENT
LOW.github/workflows/ci.yml121COMMENT
LOW.github/workflows/ci.yml141 # request runCOMMENT
LOW.github/workflows/ci.yml161 # The pull request's current labels decide, not the event, so every run on aCOMMENT
114 more matches not shown…
Docstring Block Structure26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHsrc/soup_cli/utils/fsdp.py64Get FSDP config dict by preset name. Args: preset: One of 'full_shard', 'shard_grad', 'full_offload'. STRING
HIGHsrc/soup_cli/utils/fsdp.py104Mutate and return ``training_kwargs`` with FSDP + optional torch.compile. Centralizes the "FSDP-block" logic from tSTRING
HIGHsrc/soup_cli/utils/data_forge.py594Build a ``judge(prompt) -> {'text': str}`` callable for ``provider``. Args: provider: one of ``"ollama"`` /STRING
HIGHsrc/soup_cli/utils/ra_dit_run.py300Chain the two RA-DIT stages: retriever → auto-link → generator. Args: retriever_config: Path (under cwd) toSTRING
HIGHsrc/soup_cli/utils/mix_proxy.py264Run one short proxy training and return the observed eval loss. Args: weights: Per-dataset interleave probaSTRING
HIGHsrc/soup_cli/utils/fp8.py228Convert eligible linear layers to FP8 for training. Uses torchao's ``convert_to_float8_training`` with a scaling reSTRING
HIGHsrc/soup_cli/utils/kernel_picker.py260Pick the fastest kernel combo given benchmarked timings. Args: candidates: List of dicts each with ``name``STRING
HIGHsrc/soup_cli/utils/multipack_sampler.py160First-Fit-Decreasing bin packing. Args: lengths: per-sample sequence lengths. max_len: maximum sum STRING
HIGHsrc/soup_cli/utils/ebft_gdpo.py311Energy-Based Fine-Tuning loss kernel (v0.53.2 #135). EBFT treats per-token logits as energies (lower = more probablSTRING
HIGHsrc/soup_cli/utils/lr_finder.py155Run an in-process LR-sweep training loop (#56, v0.33.0). For each LR in ``schedule``, pulls the next batch from ``dSTRING
HIGHsrc/soup_cli/utils/gradient_ckpt.py102Install selective / medium gradient-checkpoint hooks on transformer blocks (#44, v0.33.0). Iterates the model'sSTRING
HIGHsrc/soup_cli/utils/hubs.py686Snapshot ``base`` from ``hub`` into a cwd-contained cache + return path. v0.53.10 #152 — shared helper extracted frSTRING
HIGHsrc/soup_cli/utils/jinja_analyzer.py55Walk ``template``'s Jinja AST and return the set of message fields. Detects both attribute-style ``{{ m.role }}`` aSTRING
HIGHsrc/soup_cli/utils/recipe_run.py639Execute a validated :class:`RecipeDAG` end-to-end (v0.53.7 live). Per-node handlers dispatch on ``RecipeNode.kind``STRING
HIGHsrc/soup_cli/utils/longlora.py264Apply the LongLoRA S² shift to half the attention heads. Pure math kernel used by :func:`apply_longlora_forward_oveSTRING
HIGHsrc/soup_cli/utils/strict_safetensors.py216Refuse pickle / PyTorch-classic weights when ``strict=True``. Args: model_dir: cwd-contained model / adapteSTRING
HIGHsrc/soup_cli/utils/neat_packing.py37Convert document boundaries into per-token 1-indexed segment IDs. Example: ``[0, 3, 5, 9]`` (3 docs of length 3, 2,STRING
HIGHsrc/soup_cli/utils/neat_packing.py107Build a ``(B, 1, S, S)`` additive attention mask from segment IDs. Args: seq_pos_ids: integer array of shapSTRING
HIGHsrc/soup_cli/utils/data_mix.py190Validate dataset paths: containment + dedup + bounds. Args: raw: Sequence of dataset paths (relative or absSTRING
HIGHsrc/soup_cli/utils/freeze.py77Freeze every parameter, then unfreeze those matching ``patterns``. This is the Spectrum (#266) targeted-training meSTRING
HIGHsrc/soup_cli/utils/trust_remote.py94Decide whether to pass ``trust_remote_code=True`` to HF loaders. Args: model_name: HF repo id or local pathSTRING
HIGHsrc/soup_cli/utils/multipack.py47Build a :class:`MultipackBatchSampler` from per-sample token lengths. Args: lengths: token counts for each STRING
HIGHsrc/soup_cli/utils/ollama.py160Generate Ollama Modelfile content. Args: gguf_path: Path to the GGUF model file. template: TemplateSTRING
HIGHsrc/soup_cli/utils/cross_doc_attn.py26Build a block-diagonal causal attention mask. Args: boundaries: Sorted document boundary indices in ``[0, sSTRING
HIGHsrc/soup_cli/data/loss_mask.py281Build labels where only assistant tokens contribute to loss. Args: messages: Chat messages list (``{"role":STRING
HIGHsrc/soup_cli/data/providers/anthropic.py24Generate examples using Anthropic Claude API. Args: prompt: User-provided topic/instructions. countSTRING
Modern AI Meta-Vocabulary34 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_v07129.py451# Task 4 — commands/shrink.py prune orchestration + CLI registrationCOMMENT
MEDIUM⚡tests/test_v0580.py499# Part C — budget guardrailsCOMMENT
MEDIUM⚡tests/test_v0715.py187 profile = self._profile() # factual_lookup + high variance → RAGCODE
MEDIUM⚡tests/test_v0715.py196 profile = self._profile() # would be RAG by defaultCODE
MEDIUMtests/test_v0535.py510 # `subprocess.run` and asserts orchestration instead.)COMMENT
MEDIUMtests/test_v0680_part_e.py434 # scaffold and exits 0 (no systemctl call).COMMENT
MEDIUMdocs/training.md47- [RAFT — Retrieval-Augmented Fine-Tuning](#raft--retrieval-augmented-fine-tuning)CODE
MEDIUMdocs/training.md48- [RA-DIT — Retrieval-Augmented Dual Instruction Tuning](#ra-dit--retrieval-augmented-dual-instruction-tuning)CODE
MEDIUM⚡docs/evaluation.md74# Choice: SFT (or PROMPT_ENG / RAG / DPO / GRPO)COMMENT
MEDIUM⚡docs/evaluation.md79# Optional ROI probe (offline heuristic: zero/few-shot + RAG + LoRA estimate).COMMENT
MEDIUM⚡docs/evaluation.md79# Optional ROI probe (offline heuristic: zero/few-shot + RAG + LoRA estimate).COMMENT
MEDIUM⚡docs/evaluation.md82# LIVE ROI probe (v0.71.7): loads the model for zero/few-shot token-F1, a shortCOMMENT
MEDIUMsrc/soup_cli/config/schema.py8365# Fine-tune a model for chain-of-thought reasoning with GRPOCOMMENT
MEDIUMsrc/soup_cli/config/schema.py8664# Extend model context window for long-document understandingCOMMENT
MEDIUMsrc/soup_cli/config/schema.py8697# Fine-tune a sentence embedding model (BGE, E5, GTE, etc.)COMMENT
MEDIUM⚡src/soup_cli/utils/advise.py944 # Heuristic: shorter outputs → easier zero-shot; long-form → harder.COMMENT
MEDIUM⚡src/soup_cli/utils/advise.py946 # Few-shot beats zero-shot by a small margin when input length is moderate.COMMENT
MEDIUM⚡src/soup_cli/utils/advise.py948 # RAG only helps when there's lookup-style variance.COMMENT
MEDIUMsrc/soup_cli/utils/advise.py719 # Marginal RAG → SFT flip: strong SFT track record, no comparable RAGCOMMENT
MEDIUMsrc/soup_cli/utils/advise.py720 # track record. RAG is the marginal call (it fired on a heuristicCOMMENT
MEDIUMsrc/soup_cli/utils/advise.py1063 "# RAG is outside Soup core — wire your data into a vector store "CODE
MEDIUMsrc/soup_cli/utils/advise.py910 a LIVE probe (#161): it generates zero-shot and few-shot completions on aSTRING
MEDIUMsrc/soup_cli/utils/ra_dit_run.py1"""v0.71.10 #200 — live RA-DIT two-stage orchestration + retriever auto-link.STRING
MEDIUMsrc/soup_cli/utils/prm_reward.py226 # Cap the assembled length to the PRM's own context window (bounded by aCOMMENT
MEDIUMsrc/soup_cli/utils/asr_metrics.py154 # pure insertions so a hallucination on an empty-ref row is NOTCOMMENT
MEDIUMsrc/soup_cli/utils/compile_tools.py33# -> str`` callable so the parse -> iterate -> write orchestration isCOMMENT
MEDIUM⚡src/soup_cli/utils/spectrum_scan.py568# Resolve + scan orchestrationCOMMENT
MEDIUMsrc/soup_cli/templates/embedding.yaml2# Fine-tune a sentence embedding model (BGE, E5, GTE, etc.)COMMENT
MEDIUMsrc/soup_cli/templates/reasoning.yaml2# Fine-tune a model for chain-of-thought reasoning with GRPOCOMMENT
MEDIUMsrc/soup_cli/templates/longcontext.yaml2# Extend model context window for long-document understandingCOMMENT
MEDIUMsrc/soup_cli/commands/advise.py298 # Pick the best of zero-shot vs few-shot as the "prompt_eng" baseline.COMMENT
MEDIUMsrc/soup_cli/commands/local_rl.py218 # Render the scheduler scaffold; never run systemctl / launchctl.COMMENT
MEDIUMsrc/soup_cli/data/formats.py793_MAX_RAFT_FIELD_LEN = 65_536 # 64 KiB per document — generous for legal/RAG corpora.CODE
MEDIUMsrc/soup_cli/trainer/asr.py271 # teaches hallucination), so count both and warn once after the map.COMMENT
Self-Referential Comments22 hits · 73 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_registry.py755 # Create a finished run firstCOMMENT
MEDIUMtests/test_sweep.py270 # Create a minimal configCOMMENT
MEDIUMtests/test_v0620_part_c.py344 # Create a tiny pairs JSONL to pass the path-containment check.COMMENT
MEDIUM⚡tests/test_v0580.py1312 # Create the dir then monkeypatch os.listdir to raise — simulates aCOMMENT
MEDIUM⚡tests/test_vllm_serve.py71 # Create a fake model dirCOMMENT
MEDIUM⚡tests/test_v0537.py293 # Create a tiny module with an upper-casing transformCOMMENT
MEDIUMtests/test_ui.py315 # Create a runCOMMENT
MEDIUM⚡tests/test_sglang_serve.py219 # Create a dummy model pathCOMMENT
MEDIUMtests/test_templates_yaml.py115 # Create a file OUTSIDE the templates dirCOMMENT
MEDIUMtests/test_adapters.py28 # Create a small dummy safetensors file (just for size detection)COMMENT
MEDIUMtests/test_bugfixes.py855 # Create a real callable with no params (like experimental PPOTrainer.train)COMMENT
MEDIUMtests/test_bugfixes.py893 # Create a real callable that accepts resume_from_checkpointCOMMENT
MEDIUMtests/test_part_f_hardening.py87 # Create a broken symlink as 'checkpoint-300'COMMENT
MEDIUM⚡tests/test_v0660_followups.py236 # Create a real adapter dirCOMMENT
MEDIUMtests/test_dataset_registry.py133 # Create a dummy data fileCOMMENT
MEDIUM⚡tests/test_cli.py59 # Create a file (not a directory)COMMENT
MEDIUM⚡tests/test_cli.py69 # Create an empty directory (no adapter_config.json or config.json)COMMENT
MEDIUMsrc/soup_cli/templates/eu-ai-act.yaml4# This file is a normal training config — the compliance controls are SoupCOMMENT
MEDIUMsrc/soup_cli/templates/hipaa.yaml4# This file is a normal training config — the compliance controls are SoupCOMMENT
MEDIUMsrc/soup_cli/templates/soc2.yaml4# This file is a normal training config — the compliance controls are SoupCOMMENT
MEDIUMsrc/soup_cli/templates/sr-11-7.yaml4# This file is a normal training config — the compliance controls are SoupCOMMENT
MEDIUMsrc/soup_cli/trainer/embedding.py495 # Create a custom Trainer subclass dynamically to inject compute_lossCOMMENT
AI Structural Patterns72 hits · 62 pts
SeverityFileLineSnippetContext
LOWtests/test_v07127.py59CODE
LOWtests/test_v07122.py626CODE
LOWtests/test_issue745_ppo_loraplus_scheduler.py214CODE
LOWtests/test_v07203.py2680CODE
LOWbenchmarks/harness/cuda_graph_decode_compare.py74CODE
LOWbenchmarks/harness/issue725_lorafa_operating_point.py37CODE
LOWbenchmarks/harness/mechanism.py459CODE
LOWsrc/soup_cli/utils/reward_hack_control.py813CODE
LOWsrc/soup_cli/utils/layer_shard.py1167CODE
LOWsrc/soup_cli/utils/vllm.py226CODE
LOWsrc/soup_cli/utils/magpie.py473CODE
LOWsrc/soup_cli/utils/long_context.py413CODE
LOWsrc/soup_cli/utils/adapter_pr.py243CODE
LOWsrc/soup_cli/utils/layer_stream_runtime.py2847CODE
LOWsrc/soup_cli/utils/layer_stream_runtime.py3458CODE
LOWsrc/soup_cli/utils/launcher.py189CODE
LOWsrc/soup_cli/utils/layer_stream.py1534CODE
LOWsrc/soup_cli/utils/fast_lora.py343CODE
LOWsrc/soup_cli/utils/diagnose/live.py406CODE
LOWsrc/soup_cli/experiment/tracker.py345CODE
LOWsrc/soup_cli/commands/distill_prompt.py22CODE
LOWsrc/soup_cli/commands/data_forge.py27CODE
LOWsrc/soup_cli/commands/data_doctor.py128CODE
LOWsrc/soup_cli/commands/ingest.py44CODE
LOWsrc/soup_cli/commands/merge.py16CODE
LOWsrc/soup_cli/commands/data_clean.py48CODE
LOWsrc/soup_cli/commands/steer.py59CODE
LOWsrc/soup_cli/commands/deploy.py202CODE
LOWsrc/soup_cli/commands/deploy.py571CODE
LOWsrc/soup_cli/commands/shrink.py224CODE
LOWsrc/soup_cli/commands/generate.py22CODE
LOWsrc/soup_cli/commands/generate.py493CODE
LOWsrc/soup_cli/commands/ci.py24CODE
LOWsrc/soup_cli/commands/tunability.py48CODE
LOWsrc/soup_cli/commands/serve.py72CODE
LOWsrc/soup_cli/commands/serve.py1601CODE
LOWsrc/soup_cli/commands/serve.py1694CODE
LOWsrc/soup_cli/commands/serve.py2583CODE
LOWsrc/soup_cli/commands/edit.py131CODE
LOWsrc/soup_cli/commands/edit.py377CODE
LOWsrc/soup_cli/commands/export.py67CODE
LOWsrc/soup_cli/commands/bench.py36CODE
LOWsrc/soup_cli/commands/diagnose.py262CODE
LOWsrc/soup_cli/commands/chat.py16CODE
LOWsrc/soup_cli/commands/chat.py293CODE
LOWsrc/soup_cli/commands/bom.py30CODE
LOWsrc/soup_cli/commands/data_mix.py44CODE
LOWsrc/soup_cli/commands/train.py494CODE
LOWsrc/soup_cli/commands/infer.py56CODE
LOWsrc/soup_cli/commands/diff.py16CODE
LOWsrc/soup_cli/commands/sweep.py55CODE
LOWsrc/soup_cli/commands/ship.py1188CODE
LOWsrc/soup_cli/commands/eval.py166CODE
LOWsrc/soup_cli/commands/attest.py38CODE
LOWsrc/soup_cli/commands/local_rl.py161CODE
LOWsrc/soup_cli/commands/reward.py115CODE
LOWsrc/soup_cli/commands/reward.py304CODE
LOWsrc/soup_cli/commands/draft.py552CODE
LOWsrc/soup_cli/commands/draft.py729CODE
LOWsrc/soup_cli/commands/_eval_v0650.py257CODE
12 more matches not shown…
Verbosity Indicators17 hits · 31 pts
SeverityFileLineSnippetContext
LOWtests/test_issue1226_reward_gold_parsing.py65 "G27 heading before a phrase": "#### Step 1: multiply\n6*7 = 42\nThe answer is 42.",CODE
LOWtests/test_issue1226_reward_gold_parsing.py111 "C31 heading before a phrase": "#### Step 1: multiply\n6*7 = 42\nThe answer is 42.",CODE
LOWtests/test_issue1226_reward_gold_parsing.py729 ("#### Step 1: multiply\n6*7 = 42\nThe answer is 42.", "42"),CODE
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py89 # Step 1: NaN (transient overflow)COMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py91 # Step 2: finite (GradScaler skipped step, backoff recovered)COMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py93 # Step 3: finiteCOMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py95 # Step 4: finiteCOMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py97 # Step 5: finite (triggers check, counter is 0)COMMENT
LOW⚡src/soup_cli/config/schema.py8810# Step 1: soup train --config soup_sft.yaml # SFT warmupCOMMENT
LOW⚡src/soup_cli/config/schema.py8811# Step 2: soup train --config soup_rm.yaml # Train reward modelCOMMENT
LOW⚡src/soup_cli/config/schema.py8812# Step 3: soup train --config soup_ppo.yaml # PPO with reward modelCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml5# Step 1: soup train --config soup_sft.yaml # SFT warmupCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml6# Step 2: soup train --config soup_rm.yaml # Train reward modelCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml7# Step 3: soup train --config soup_ppo.yaml # PPO with reward modelCOMMENT
LOWsrc/soup_cli/commands/export.py385 # Step 1: Convert HF model to GGUF (f16)COMMENT
LOWsrc/soup_cli/commands/export.py854 # Step 1: Convert HF model to TensorRT-LLM checkpointCOMMENT
LOWsrc/soup_cli/commands/export.py880 # Step 2: Build TensorRT engineCOMMENT
Structural Annotation Overuse17 hits · 31 pts
SeverityFileLineSnippetContext
LOWtests/test_issue1226_reward_gold_parsing.py65 "G27 heading before a phrase": "#### Step 1: multiply\n6*7 = 42\nThe answer is 42.",CODE
LOWtests/test_issue1226_reward_gold_parsing.py111 "C31 heading before a phrase": "#### Step 1: multiply\n6*7 = 42\nThe answer is 42.",CODE
LOWtests/test_issue1226_reward_gold_parsing.py729 ("#### Step 1: multiply\n6*7 = 42\nThe answer is 42.", "42"),CODE
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py89 # Step 1: NaN (transient overflow)COMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py91 # Step 2: finite (GradScaler skipped step, backoff recovered)COMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py93 # Step 3: finiteCOMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py95 # Step 4: finiteCOMMENT
LOW⚡tests/test_issue887_distill_broken_teacher_warning.py97 # Step 5: finite (triggers check, counter is 0)COMMENT
LOW⚡src/soup_cli/config/schema.py8810# Step 1: soup train --config soup_sft.yaml # SFT warmupCOMMENT
LOW⚡src/soup_cli/config/schema.py8811# Step 2: soup train --config soup_rm.yaml # Train reward modelCOMMENT
LOW⚡src/soup_cli/config/schema.py8812# Step 3: soup train --config soup_ppo.yaml # PPO with reward modelCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml5# Step 1: soup train --config soup_sft.yaml # SFT warmupCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml6# Step 2: soup train --config soup_rm.yaml # Train reward modelCOMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml7# Step 3: soup train --config soup_ppo.yaml # PPO with reward modelCOMMENT
LOWsrc/soup_cli/commands/export.py385 # Step 1: Convert HF model to GGUF (f16)COMMENT
LOWsrc/soup_cli/commands/export.py854 # Step 1: Convert HF model to TensorRT-LLM checkpointCOMMENT
LOWsrc/soup_cli/commands/export.py880 # Step 2: Build TensorRT engineCOMMENT
Slop Phrases9 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_refusal_multilingual.py68 assert looks_like_refusal("As an AI language model, I refuse to answer.")CODE
MEDIUMtests/test_issue1228_behavior_scoring.py29 "I'm unable to help with that.",CODE
MEDIUM⚡tests/test_issue1228_behavior_scoring.py73 "I'm unable to help with that.",CODE
MEDIUM⚡tests/test_v0560.py280 assert looks_like_refusal("As an AI language model, I refuse to answer.")CODE
MEDIUM⚡tests/test_data_clean.py115 text = "Certainly! As an AI language model, I can explain that. Quantum computing uses qubits."CODE
MEDIUMtests/test_data_clean.py55 "Certainly! As an AI language model, here is the function:\n\n"CODE
MEDIUMtests/test_data_clean.py163 "Sure! As an AI language model, here is the function:\n\n"CODE
MEDIUMsrc/soup_cli/utils/diagnose/refusal.py37 # "i am unable" branch, so "I'm unable to help with that." read as an answer.COMMENT
MEDIUMsrc/soup_cli/eval/gate_suites.py535 else "I'm unable to help with that."CODE
Fake / Example Data21 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_issue459_interleave_streaming_hub.py540 (tmp_path / f"a{suffix}").write_text("placeholder", encoding="utf-8")CODE
LOW⚡tests/test_issue459_interleave_streaming_hub.py541 (tmp_path / f"b{suffix}").write_text("placeholder", encoding="utf-8")CODE
LOW⚡tests/test_v07127.py1388 prompt = "Please summarize the following article: " + ("lorem ipsum " * 5)CODE
LOW⚡tests/test_v07127.py1396 prompt = "Please summarize the following article: " + ("lorem ipsum " * 5)CODE
LOWtests/test_v07127.py1523 leak_prompt = "Please summarize the following unique article: " + ("lorem ipsum " * 5)CODE
LOW⚡tests/test_v05310.py117 presidio_hits = [{"kind": "email", "snippet": "user@example.com"}]CODE
LOW⚡tests/test_v07116.py235 "lorem ipsum dolor sit amet consectetur",CODE
LOW⚡tests/test_v07116.py235 "lorem ipsum dolor sit amet consectetur",CODE
LOW⚡tests/test_v07122.py1201 assert original_assistant["content"] == "placeholder"CODE
LOWtests/test_v07122.py1188 original_assistant = {"role": "assistant", "content": "placeholder"}CODE
LOWtests/test_v0537.py2064 target = self._write_arrow_dir(tmp_path, cache_key="placeholder")CODE
LOWtests/test_v0537.py2110 target = self._write_arrow_dir(tmp_path, cache_key="placeholder")CODE
LOW⚡tests/test_issue1231_expect_all_formats.py465 row = {"instruction": "Summarise", "input": "lorem ipsum " * 5000, "output": PII_SAMPLE}STRING
LOW⚡tests/test_v0712.py1523 existing.write_text("placeholder", encoding="utf-8")CODE
LOW⚡tests/test_issue687_ui_auth.py23 "/api/runs/dummy_id",CODE
LOW⚡tests/test_issue687_ui_auth.py24 "/api/runs/dummy_id/metrics",CODE
LOW⚡tests/test_issue687_ui_auth.py25 "/api/runs/dummy_id/eval",CODE
LOW⚡tests/test_v0430_part_d.py82 target.write_text("placeholder", encoding="utf-8")CODE
LOW⚡tests/test_v0430_part_d.py107 outside.write_text("placeholder", encoding="utf-8")CODE
LOW⚡tests/test_issue1214_migrators_pref_tasks.py232 assert any("online_dpo_judge" in w and "placeholder" in w for w in result["_warnings"])CODE
LOWdocs/adapters-and-governance.md250 --subject "The CEO of Acme is" --target "Jane Doe"CODE
Redundant / Tautological Comments12 hits · 19 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_awq_gptq_export.py1084 # Set cwd to a subdirectory so ../evil is outsideCOMMENT
LOWsrc/soup_cli/ui/app.py948 # Check if training is still runningCOMMENT
LOWsrc/soup_cli/utils/data_clean.py139 # Check if wrapped in markdown ```jsonCOMMENT
LOWsrc/soup_cli/utils/data_clean.py145 # Check if already valid JSONCOMMENT
LOWsrc/soup_cli/commands/export.py699 # Check if it's in PATHCOMMENT
LOWsrc/soup_cli/commands/export.py723 # Check if LoRA adapterCOMMENT
LOWsrc/soup_cli/commands/export.py823 # Check if LoRA adapterCOMMENT
LOWsrc/soup_cli/commands/export.py1067 # Check if LoRA adapter — merge firstCOMMENT
LOWsrc/soup_cli/commands/export.py1211 # Check if LoRA adapter — merge firstCOMMENT
LOWsrc/soup_cli/commands/eval.py431 # Display resultsCOMMENT
LOWsrc/soup_cli/commands/data.py689 # Check if this is a vision datasetCOMMENT
LOWsrc/soup_cli/data/loader.py497 # Check if it's a HuggingFace datasetCOMMENT
Example Usage Blocks9 hits · 15 pts
SeverityFileLineSnippetContext
LOWexamples/configs/dpo_example.yaml5# Usage:COMMENT
LOWexamples/configs/rlhf_step3_ppo.yaml9# Usage:COMMENT
LOWexamples/configs/sft_basic.yaml9# Usage:COMMENT
LOWexamples/configs/rlhf_step1_sft.yaml8# Usage:COMMENT
LOWexamples/configs/grpo_reasoning.yaml10# Usage:COMMENT
LOWexamples/configs/rlhf_step2_reward.yaml8# Usage:COMMENT
LOWexamples/configs/dpo_chat.yaml9# Usage:COMMENT
LOW⚡src/soup_cli/config/schema.py8809# Usage:COMMENT
LOW⚡src/soup_cli/templates/rlhf.yaml4# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_issue1215_migrate_quantization_none.py515 "def helper():\n",CODE