Repository navigation
build: fold prepare deps into default dependencies and record actual … - #2
Merged
Merged
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without
jinja2,mmlu-pro preparecannot run at all: rendering all 12,032 questions to token IDs requiresAutoTokenizer.from_pretrained(model_path, local_files_only=True)to load the tokenizer and chat template,build_prefixesto build 5-shot prefixes from the 70 validation rows, andencode_prompt()on every row —apply_chat_template(..., enable_thinking=False)thentokenizer.encode(), erroring (never truncating) iflen(ids) + 2048 > 32768. The chat template is a Jinja2 template, soapply_chat_templateneedsjinja2to render it, andtransformersdoes not declare that dependency; without it the render fails and none ofcases.json,tasks.json,inventory.jsonl.gz,contract.jsonget 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).