Skip to content

Remove the stale multiple_choice job from weighted_sft - #106

Merged
nielsrolf merged 1 commit into
longtermrisk:mainfrom
albertlieyingadrian:fix/remove-stale-multiple-choice-job
Nov 25, 2026
Merged

nielsrolf merged 1 commit into
longtermrisk:mainfrom
albertlieyingadrian:fix/remove-stale-multiple-choice-job

Conversation

@albertlieyingadrian

Copy link
Copy Markdown
Contributor

Fixes #105.

This removes the leftover MultipleChoice job class (registered as multiple_choice) from openweights/jobs/weighted_sft/__init__.py. 52253ac already removed its models (MCQJobModel, MultipleChoiceEvalModel) and its worker script (mc_question.py), so create() could only raise NameError. The diff is 45 deletions in one file, and SFT and LogProb are untouched.

Checked locally:

  • Registered jobs before: api, fine_tuning, inference, inspect_ai, logprob, multiple_choice, weighted_sft. After: the same without multiple_choice.
  • pytest tests --ignore=tests/test_integration.py: 241 passed, 70 skipped, 1 failed on both main and this branch. The failure is test_sampling_callback, which imports matplotlib from the cookbook and isn't installed by .[dev].
  • ruff --select F821 no longer reports MCQJobModel / MultipleChoiceEvalModel. The three pre-existing unused imports in the file are left as they are.

docs/release-0.15.0.md still lists multiple_choice among the jobs that accept priority=. I left the release notes unchanged as a historical record. If you'd rather restore the job than remove it, I'm happy to rework the PR.

@Manuscrit would you have a moment to review? Happy to adjust.

52253ac removed the multiple-choice job from jobs/unsloth together with
MCQJobModel, MultipleChoiceEvalModel and the worker script
mc_question.py, but a copy of the job class stayed in
jobs/weighted_sft. ow.multiple_choice.create() therefore always fails
with NameError: name 'MCQJobModel' is not defined, and the script it
would schedule no longer exists.
@nielsrolf
nielsrolf merged commit 710df48 into longtermrisk:main Nov 25, 2026
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.

ow.multiple_choice.create() always raises NameError: MCQJobModel is not defined

2 participants