Skip to content

fix(multihop_qa): correct frozen_lake.masking import path#407

Closed
Hecate0821 wants to merge 1 commit into
mainfrom
chengxi/fix-preexisting-imports
Closed

fix(multihop_qa): correct frozen_lake.masking import path#407
Hecate0821 wants to merge 1 commit into
mainfrom
chengxi/fix-preexisting-imports

Conversation

@Hecate0821

Copy link
Copy Markdown
Collaborator

Summary

  • train_multihop_qa_igpo.py imported training.examples.frozen_lake.masking, but the actual path is training.examples.rl.frozen_lake.masking — so the example was unimportable on main (ModuleNotFoundError at line 38) and broke training/tests/test_smoke_imports.py.
  • Single-line fix: prepend the missing rl. segment to the import.

Test plan

  • FIREWORKS_API_KEY=dummy python -c "import training.examples.multihop_qa.train_multihop_qa_igpo" → OK
  • FIREWORKS_API_KEY=dummy pytest training/tests/test_smoke_imports.py → 63 passed (was 62 passed + 1 fail before fix)
  • pytest training/tests/unit/ --ignore=training/tests/unit/test_sft_loop.py → 497 passed, 32 skipped

🤖 Generated with Claude Code

The masking helpers live under training.examples.rl.frozen_lake, not
training.examples.frozen_lake — importing the latter raised
ModuleNotFoundError at module load and made train_multihop_qa_igpo.py
unrunnable (and broke the smoke-imports test).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Hecate0821

Copy link
Copy Markdown
Collaborator Author

Folded both fixes into PR #382 (multihop_qa import path + render_messages_to_datums export restoration). The export-restoration was specific to the v2 branch, so it stays there; the multihop_qa fix lives on top of the rebased branch as commit 0f8de16. Closing without merging.

@Hecate0821 Hecate0821 closed this Apr 30, 2026
@Hecate0821
Hecate0821 deleted the chengxi/fix-preexisting-imports branch April 30, 2026 04:12
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.

1 participant