Download loopq_quantization/scripts/loopq/paths.py from JunYoungLee/ut-depth-probe-artifacts: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/JunYoungLee/ut-depth-probe-artifacts/resolve/main/loopq_quantization/scripts/loopq/paths.py
- Command line
-
hf download hf://JunYoungLee/ut-depth-probe-artifacts/loopq_quantization/scripts/loopq/paths.py
-
curl -L -o paths.py https://huggingface.co/JunYoungLee/ut-depth-probe-artifacts/resolve/main/loopq_quantization/scripts/loopq/paths.py
531 Bytes
| """Storage resolution only; independent of the other quantization methods.""" | |
| from pathlib import Path | |
| from huggingface_hub.constants import HF_HUB_CACHE | |
| REVISIONS = { | |
| "ouro": ("ByteDance/Ouro-1.4B", "e3b1e0993b1231a51d6069a870476dda4162c00a"), | |
| "huginn": ("tomg-group-umd/huginn-0125", "bb6621b65e90b6a4b9b29ef88dc83866d450470c"), | |
| } | |
| def pinned_snapshot(model: str) -> Path: | |
| repository, revision = REVISIONS[model] | |
| return Path(HF_HUB_CACHE) / ("models--" + repository.replace("/", "--")) / "snapshots" / revision | |