Expand description
memopro core: framework-agnostic memory toolkit for deep learning workloads.
The crate knows nothing about PyTorch or any other framework; it works on byte buffers,
dtypes and shapes. Python bindings live in the separate memopro-py crate.
Modules:
hwinfo: host memory, container limit and disk capacity for the per-pool budget (v0.1)verify: reads of original file regions checked by digest (v0.1)codec: byte shuffle + zstd for lossless in-RAM compression (v0.1)csv: row and key kernels formemopro.sort/memopro.join(E069)edr: bf16 weights as a 1-byte base (a draft) and a 4-bit residual, lossless (0308)rt: runtime C-R: large buffers under a hard memory budget, dropped and re-read from their original files or compressed, never written to disk (0109, 0112)
Unbuilt functions return Error::NotImplemented with the planned milestone; nothing panics.
Re-exports§
Modules§
- codec
- Lossless codec for floating-point buffers: byte shuffle + zstd, in independent chunks.
- csv
- CSV kernels for
memopro.sort/memopro.join(E069 V2, 0356; 0361): row positions, one key per row, and byte gathers, written into the caller’s buffers so that no index temporary is allocated per block (NumPy’s took 16 bytes per gathered byte, and the allocator kept them: macOS large cache 0060, glibc heaps 0349). - edr
- EDR v1 (0308): bf16 weights split losslessly into a 1-byte base and a 4-bit residual.
- error
- Error type shared by all modules.
- hwinfo
- Host facts for the per-pool budget (architecture §3.1, U7): RAM, swap, container limit, disk.
- residency
- No-copy Metal buffers over runtime memory (macOS, G4 E1, 0130): the Apple GPU reads and writes page-aligned runtime regions in place; the Python side hands each buffer to torch as an MPS tensor through DLPack.
- rt
- Runtime C-R (phase 1 0112, phase 2 0115).
- verify
- Verified reads of file regions (0032 H1, 0038): read bytes of an unchanged original file (e.g. safetensors) straight into a destination buffer and check them with a digest. memopro never writes these files (0328); the runtime drops buffers it can read back this way.
Constants§
- VERSION
- Version of the memopro core, taken from the crate manifest.
Functions§
- version
- Returns the version of the memopro core.