0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/docs
Benjamin Rabier 1501fc4078 zml/io: construct TensorStore with init and look tensors up with View.get
TensorStore.fromRegistry(allocator, &registry, meshes) becomes
init(allocator, &registry, Options{ meshes, quantization }). The store
still borrows the registry: entries registered after init, such as
aliases of a fused tensor, are found, and each bound tensor holds a copy
of its entry.

Options.quantization is the platform's Quantization.Target, which code
binding block-FP8 weights reads through View.quantization; that panics
when the store has none, so weights cannot be laid out for a different
FP8 encoding than the activations.

View.get(subkey) returns the checkpoint tensor, or null, with one hash
lookup. It replaces getShape, getShapeOpts and hasKey; hasKey scanned
every key for one starting with the subkey, so it also matched a
tensor's prefix. View.prefix() returns "" at the root instead of null.

The examples, the torch2zml howto and testing.testLayer move to init,
and the lfm2 and llama layer tests read tensors with get and
Tensor.read. llmd's fromRegistry, hasKey and getShape calls follow in
its next zml bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-05 09:37:09 +01:00
..
howtos zml/io: construct TensorStore with init and look tensors up with View.get 2026-11-05 09:37:09 +01:00
learn zml: refactor module.zig into Compiler.zig (#736) 2026-08-27 18:31:50 +02:00
misc Update doc for V2 (#428) 2026-03-24 17:00:10 +01:00
tutorials zml/exe: return launch errors from Exe.call 2026-11-04 23:04:25 +01:00
README.md zml/profiling: unify profiling flow and tracing (#443) 2026-05-11 09:52:11 +02:00

Greetings, Programs!

If you want to run our example models, please head over to Getting Started.

Ready to write some code? Try starting with your first model in ZML, or familiarize yourself with the high-level ZML concepts first.

MENU:

Tutorials

How to ?

Learn more...

  • ZML Concepts : Tensors, Models, Executables, etc. explained

Contribute