0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/examples/io/BUILD.bazel
Corentin Godeau f37e845672
zml/safetensors: support hf snapshots (#872)
This PR adds support for models downloaded via `hf download` without the
`--local-dir` flag.

This is done by keeping the given path instead of getting it from the
`std.Io.File`. The problem with `File.realpath` is that in the case of
models downloaded from HF, the files points to blobs whose name are hex
strings, thus losing the required file extension. Unfortunately, we rely
on the file extension to detect the kind of repository the path
represents.

I also added `//examples/io:playground` to the `//:completion` target so
that we have completion when working on it.
2026-09-29 18:23:08 +02:00

11 lines
262 B