Views
No views yet
scripts/build_models.py.1# Install dependencies and login to huggingface:
2pipx install huggingface_hub
3huggingface-cli login
4
5# Re-build the models:
6uv run scripts/build_models.py
7
8# Version control:
9git add .
10git commit -m 'Updated the models'
11git push
12git tag v1.0.0 -m 'Model release description'
13git push origin tag v1.0.0
14
15# Upload the models
16uv run scripts/upload_models.py --tag v1.0.0f32 vs f16: cosine similarity = 1.00000000
→ They are essentially identical in direction.f32 vs f8: cosine similarity = 0.99956375
→ Very close, only tiny quantization effects.
torch.float8_e4m3fn, while torch.float8_e5m2 generally
has more loss.fp32 is 228M compressed, while only 51M for fp8_e4m3, which has competetive
quantization values.| precision | dimensions | size |
|---|---|---|
| fp32 | 128 | 228M |
| fp16 | 128 | 114M |
| fp8_e4m3 | 128 | 51M |
| fp8_e5m2 | 128 | 44M |