Skip to content

scripts: run the model setup scripts with uv - #114

Merged
rikvanriel merged 1 commit into
facebookexperimental:mainfrom
vladwing:scripts-uv
Nov 10, 2026
Merged

rikvanriel merged 1 commit into
facebookexperimental:mainfrom
vladwing:scripts-uv

Conversation

@vladwing

Copy link
Copy Markdown
Contributor

direct_download.py and nomic2vec.py needed a manual
pip3 install -r scripts/requirements.txt first. Declare their
dependencies inline (PEP 723) and run them through
#!/usr/bin/env -S uv run --script, so uv builds their environment.
einops is needed by the trust_remote_code Nomic BERT model. Require
Python 3.10, which current transformers, huggingface_hub and model2vec
need, so uv does not pick an older interpreter and quietly fall back
to transformers 4.x.

Update the README and the usage text to match, keep requirements.txt
as the documented fallback without uv, and drop hints that pointed at
direct_download.py flags that do not exist and at a custom vocabulary
option the distillation ignores.

direct_download.py and nomic2vec.py needed a manual
`pip3 install -r scripts/requirements.txt` first.  Declare their
dependencies inline (PEP 723) and run them through
`#!/usr/bin/env -S uv run --script`, so uv builds their environment.
einops is needed by the trust_remote_code Nomic BERT model.  Require
Python 3.10, which current transformers, huggingface_hub and model2vec
need, so uv does not pick an older interpreter and quietly fall back
to transformers 4.x.

Update the README and the usage text to match, keep requirements.txt
as the documented fallback without uv, and drop hints that pointed at
direct_download.py flags that do not exist and at a custom vocabulary
option the distillation ignores.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 10, 2026
@rikvanriel
rikvanriel merged commit 95dcc9c into facebookexperimental:main Nov 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants