Skip to content

Fix ZebraLogic chat request formatting - #334

Merged
abhishekraok merged 2 commits into
allenai:mainfrom
Excelius-Wang:fix/zebralogic-chat-formatter
Sep 1, 2026
Merged

abhishekraok merged 2 commits into
allenai:mainfrom
Excelius-Wang:fix/zebralogic-chat-formatter

Conversation

@Excelius-Wang

Copy link
Copy Markdown
Contributor

Summary

  • honor the configured formatter when ZebraLogic builds an LM request
  • keep the base ZebraLogic task on its existing completion path
  • add CPU-only regression coverage for both task variants

Fixes #313

Testing

  • uv run --no-group vllm pytest tests/evals/tasks/test_zebralogic.py
  • uv run --no-group vllm ruff check src/ tests/
  • uv run --no-group vllm ruff format --check src/ tests/
  • uv run --no-group vllm ty check src/ alembic/
  • full non-integration suite: 1997 passed, 7 skipped

@abhishekraok

Copy link
Copy Markdown
Collaborator

Verified against #313:

  • Base task unchanged: no formatter → COMPLETION, raw prompt (confirmed by test).
  • :chat now produces a real chat request — request_type correctly falls back to the base property that derives from config.formatter, same idiom as gpqa/code_fresh.
  • Fewshot path is safe: num_fewshot=0 short-circuits get_fewshot() to [] with no dataset access.
  • Full non-integration suite on the merge with current main: 2166 passed.

Approved the CI workflow runs (fork PRs need maintainer approval) and updated the branch. Note for anyone comparing runs: pre-fix zebralogic:chat numbers were completion-mode and are not comparable.

@abhishekraok
abhishekraok merged commit 2166baa into allenai:main Sep 1, 2026
10 checks passed
@abhishekraok

Copy link
Copy Markdown
Collaborator

Thanks for the fix.

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.

zebralogic:chat never applies its ChatFormatter — scored in completion mode

2 participants