Views
No views yet
| Folder | Precision | Disk | Load peak | Note |
|---|---|---|---|---|
int8/ ⭐ | per-channel-symmetric int8 | ~6.3 GB | 7.02 GB | recommended |
bf16/ | bf16 | ~11 GB | 11.30 GB | full-precision reference |
tokenizer.json, tokenizer_config.json, special_tokens_map.json, spiece.model) are at the repo root, shared by both variants.model.safetensors) + config.json. The runtime detects the precision from the file's metadata header — no flag needed.Download only what you need (~6.3 GB, not ~18 GB).from_pretrained(...)fetches only the chosen variant + tokenizer. If you download manually, use--include(below) — a baregit clone/ fullsnapshot_downloadpulls both variants (~18 GB total).
1from mlx_umt5 import from_pretrained, encode
2
3loaded = from_pretrained("shraey/umt5-xxl-mlx", variant="int8")
4embeds, masks = encode(loaded, ["A cinematic shot of a mountain at sunrise."])
5# embeds[0]: (1, 512, 4096) fp32
6# masks[0]: (1, 512) int321# Download only the variant you need:
2hf download shraey/umt5-xxl-mlx \
3 --include "int8/*" tokenizer.json tokenizer_config.json \
4 special_tokens_map.json spiece.model \
5 --local-dir ./umt5-xxl-mlxint8/ precast is byte-identical to the in-process per-channel-symmetric int8 path (max-abs-diff 0).bf16/ precast is bit-identical to loading the HF fp32 shards and casting to bf16 (cosine 1.0).int8/ variant uses pcs only and is byte-identical to the in-process conversion.