-
Notifications
You must be signed in to change notification settings - Fork 454
switch from poetry to uv #1037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev-3.x
Are you sure you want to change the base?
switch from poetry to uv #1037
Conversation
Update link to Streamlit tutorial and guide. Co-authored-by: Bryce Meyer <[email protected]>
* add static to gitignore * making a meaningless change to see if tests pass at all * making a meaningless change to see if tests pass at all * add interactive table static html only adding things one at a time to see what causes things to break * run poetry update with no changes to deps * revert lockfile change * add tiktoken >=0.7.0 to group docs * add dep muutils >=0.6.15 to group docs * add improved interactive table generation we still generate a plain markdown table code is from the old PR: https://github.com/mivanit/TransformerLens/blob/add-better-model-properties-table/docs/make_docs.py which is in turn a modified version of https://github.com/mivanit/transformerlens-model-table * fix format -- missing trailing newline * fix type hints for compatibility * fix torch device meta in make docs script, also improved hot reload * TEMPORARY: allow_except when getting models to deal with mixtral HF_TOKEN issue * added simple test for get_model_info * context manager for controlling device, tests were breaking due to default device meta * formatted with wrong version of black, oops * fix path to generated model_properties_table * fix md table header, add title in yaml frontmatter * add line to frontmatter yaml, re-run tests bc huggingface down? * do not allow exceptions when getting models * re-run poetry lock * attempt fix lockfile * re-run poetry lock --------- Co-authored-by: Bryce Meyer <[email protected]>
also update tiktoken dep for 3.13 compatibility
- torchtyping causes various issues if it's imported - presumably jaxtyping should be used instead?? - othello GPT notebook doesn't actually use the imported TT - shouldn't a linter/formatter catch this sort of unused import?
Configure pytest to include project root in Python path, enabling `from tests.foo import bar` style imports, which were broken by switching to uv
ok, looks like nearly everything is passing! The few tests still failing:
remaining TODOs:
|
looks like building docs is failing due to a lack of a huggingface token secret? |
errors when building docs look like
which are then followed by 429 too many requests errors. It's not immediately clear to me if resolving gated repo access will resolve the 429 errors, or why we are getting repo access errors in the first place. |
TODOs
pyproject.toml
makefile
checks.yml
release.yml
(changed this, but quite unsure whether what I did is a good idea. needs review for sure)README.md
contributing.md
.devcontainer/devcontainer.json
and.devcontainer/Dockerfile
to use uv instead of poetry. not sure how to do thisDescription
Poetry can be quite slow for dependency resolution and environment setup. uv is much faster and has rapidly become the new standard.
Type of change
Screenshots
raw timing data
All installs are tested with a warm cache (everything downloaded) and the virtual environment absent.poetry
lockfile present:
lockfile absent:
uv
lockfile present:
lockfile absent:
Checklist: