mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
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.
11 lines
262 B
11 lines
262 B