Skip to content

build: fold prepare deps into default dependencies and record actual … - #2

Merged
ShuhaoZhangTony merged 1 commit into
mainfrom
chore/default-prepare-deps
Nov 2, 2026
Merged

ShuhaoZhangTony merged 1 commit into
mainfrom
chore/default-prepare-deps

Conversation

@KimmoZAG

@KimmoZAG KimmoZAG commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Without jinja2, mmlu-pro prepare cannot run at all: rendering all 12,032 questions to token IDs requires AutoTokenizer.from_pretrained(model_path, local_files_only=True) to load the tokenizer and chat template, build_prefixes to build 5-shot prefixes from the 70 validation rows, and encode_prompt() on every row — apply_chat_template(..., enable_thinking=False) then tokenizer.encode(), erroring (never truncating) if len(ids) + 2048 > 32768. The chat template is a Jinja2 template, so apply_chat_template needs jinja2 to render it, and transformers does not declare that dependency; without it the render fails and none of cases.json, tasks.json, inventory.jsonl.gz, contract.json get produced. Measured: 43 s total, 41.7 s of it the 12,032 serial encodes (3.5 ms each, prompts of ~1090–1362 tokens).

pyproject: drop the [prepare] extra and make pyarrow>=19.0.1, transformers>=5.14.1 default floors, plus jinja2, which apply_chat_template needs but transformers does not declare.

README/QUICKSTART: document floors instead of one pinned set and point at receipt/client.json client_packages for the versions actually used.

gitignore: ignore .history (evaluation history).

…versions

pyproject: drop the [prepare] extra and make pyarrow>=19.0.1,
transformers>=5.14.1 default floors, plus jinja2, which apply_chat_template
needs but transformers does not declare.

README/QUICKSTART: document floors instead of one pinned set and point at
receipt/client.json client_packages for the versions actually used.

gitignore: ignore .history (evaluation history).
@ShuhaoZhangTony
ShuhaoZhangTony merged commit 911ac18 into main Nov 2, 2026
2 checks passed
@KimmoZAG
KimmoZAG deleted the chore/default-prepare-deps branch November 5, 2026 06:59
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