0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/docs/howtos
Guillaume Wenzek 1480f77a55
zml: add the platform tag inside the Buffer (#326)
CPU buffers behave differently from Cuda/Rocm/TPU buffers,
and in particular they are addressable from main memory.
This was annoying and prevented us to add some safety checks that
weren't valid for CPU.

I'm adding a tag to buffers so that we know which target they refer to.

Also there is a bug in PJRT unitialized which doesn't respected the
memory. I've opened https://github.com/openxla/xla/pull/31292
but in the meantime I've a workaround in ZML that uses the regular
.fromHostBuffer.
(I've also a patched version of PJRT plugins in
https://github.com/zml/pjrt-artifacts/pull/41 but not merged yet)
History 2025-09-18 15:35:25 +02:00
..
add_weights.md zml: add the platform tag inside the Buffer (#326) 2025-09-18 15:35:25 +02:00
deploy_on_server.md zml: remove examples workspace (#308) 2025-08-19 19:42:50 +02:00
dockerize_models.md workspace: switch from zig_cc_binary to zig_binary (#311) 2025-08-21 13:12:15 +02:00
howto_torch2zml.md async: remove asynk, asyncc, awaitt, await_ (#325) 2025-09-18 10:05:54 +02:00
huggingface_access_token.md zml: remove examples workspace (#308) 2025-08-19 19:42:50 +02:00