Skip to content

Declare jinja2, which training needs to render chat templates - #52

Merged
huyedits merged 1 commit into
mainfrom
claude/dazzling-meitner-pqr7r3
Sep 26, 2026
Merged

huyedits merged 1 commit into
mainfrom
claude/dazzling-meitner-pqr7r3

Conversation

@huyedits

@huyedits huyedits commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

What

Adds jinja2>=3.1.0 to the dependencies in pyproject.toml and requirements.txt.

Why

The tests workflow on main fails one test, tests/test_sample_length.py::test_seed_samples_fit_the_configured_window, with:

ImportError: apply_chat_template requires jinja2 to be installed.

transformers renders chat templates with jinja2 but doesn't declare it as a dependency. So a clean pip install symbio-cli could not build a single training sample. On Macs it was usually installed by accident through mlx-lm, which is why nobody hit it.

Testing

Ran the full suite in a fresh virtualenv (pip install -e ".[dev]") on top of current main: 2371 passed, 240 skipped, 0 failed.

🤖 Generated by claude code

CI on main failed test_sample_length with "apply_chat_template requires
jinja2 to be installed". transformers renders chat templates with jinja2
but does not depend on it, so a clean install could not build a single
training sample. Macs usually had it by accident, through mlx-lm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vhZ7i2tU8r4RQ1VBfqfcg
@huyedits
huyedits merged commit 2e7c5c2 into main Sep 26, 2026
2 checks passed
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