0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/examples/io
Benjamin Rabier 6b8a96d161 vfs: add VFS.Remotes and use it in the examples
Every program that reads remote checkpoints wired the same remote schemes
by hand: one std.http.Client, then the HTTP, HF, S3 and GCS backends and
their registration. The copies had drifted: examples/llm had no https and
ignored the proxy variables. VFS.Remotes builds one client on the VFS's base
io, with proxies from the environment, sets up https, hf, s3 and gs through
each backend's auto constructor and registers all four, or none on error.
It is initialized in place, since the backends point at its client.
examples/io and examples/llm use it, so examples/llm gains https and
proxies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-05 09:37:09 +01:00
..
BUILD.bazel zml/safetensors: support hf snapshots (#872) 2026-09-29 18:23:08 +02:00
main.zig vfs: add VFS.Remotes and use it in the examples 2026-11-05 09:37:09 +01:00