Skip to content

[staging] unslothai/unsloth#19141: Score unsloth eval datasets in the chat format the model was trained on - #285

Closed
Lyxot wants to merge 4 commits into
mainfrom
staging/19141-eval-chat-format
Closed

Lyxot wants to merge 4 commits into
mainfrom
staging/19141-eval-chat-format

Conversation

@Lyxot

@Lyxot Lyxot commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Staging copy of unslothai#19141 (same head e62c00897a3, base synced to upstream main) to run CI while upstream runners are backed up. Will be closed once CI and review converge.

NilayYadav and others added 4 commits November 23, 2026 20:12
…, lm-eval versions and backends

Dataset tasks stop at the first newline, so a Qwen3-style template that opens a <think> block reduced every answer to "<think>" (Qwen3-0.6B: 0/16). Dataset-only runs now pass enable_thinking=False to lm-eval's HFLM / VLLM; built-in tasks keep lm-eval's default.

Auto mode now also requires lm-eval 0.4.10+ (the first release with enable_thinking and the BOS-prefix check that stops a doubled <bos> on Gemma templates), and prints an upgrade note otherwise.

On vLLM the template check probes the tokenizer lm-eval's vLLM wrapper loads, so Mistral repos that vLLM serves with its own tokenizer, which cannot re-encode rendered control tokens, stay off. An explicit --chat-template fails fast when that tokenizer cannot render one.

The tokenizer probe passes trust_remote_code=False like HFLM, so it never waits on a hidden consent prompt. Mixed dataset and built-in runs print why the template stays off, and results.json records the effective apply_chat_template.
@Lyxot

Lyxot commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Closing: CI and Codex review converged on unslothai#19141 (head e62c008).

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