Skip to content

chore(scripts): remove legacy train_predictor.py - #1132

Open
Graffioh wants to merge 1 commit into
mainfrom
chore/remove-train-predictor
Open

Graffioh wants to merge 1 commit into
mainfrom
chore/remove-train-predictor

Conversation

@Graffioh

@Graffioh Graffioh commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Removes the legacy scripts/train_predictor.py expert routing predictor trainer.

Why

Changes

  • Delete scripts/train_predictor.py.
  • Update the --collect-routing help string in server/src/server/server_main.cpp to stop pointing at scripts/train_predictor.py.
  • Keep scripts/check_uv_workspace.sh (used by CI) and scripts/build_image.sh untouched, along with pyproject.toml / .githooks/pre-push lint patterns so future Python scripts under scripts/ stay covered and there are no conflicts with chore/remove-harness.

View guided diff

Drop the standalone StreamMoE-ported expert routing predictor trainer. Nothing in the engine loads its .pt checkpoint, and Spark trace experiments (optimizations/spark/RESULTS.md) already documented the pre-attention recall ceiling (the sibling spark/train_pregate.py trainer was removed in #1117).

Update the --collect-routing help string in server_main.cpp to stop referencing scripts/train_predictor.py.
@Graffioh
Graffioh marked this pull request as ready for review December 2, 2026 08:24

@davide221 davide221 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review

No issues found. Checked for bugs and logic errors in the changed code.

Reviewed 6c9e90bc · 0 candidate issues checked, kept at ≥70% confidence · add the code-review label to review again

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants