gemma.cpp/compression/python
Charles Zhao 50ee1a3e92 Write SBS progressively.
(1) Directly write to file in BlobWriter::Add and destruct the MatOwner to release the rams.

(2) Write a fake header to indicate this is V2, and write correct header and directory at the end of the file.

(3) Tested on loading sbs written the old way, and new way, both worked.

PiperOrigin-RevId: 789306837
2025-07-31 06:05:38 -07:00
..
pytree Add Python code for converting Griffin Orbax weights. Refs #301 2024-07-29 12:53:30 -07:00
BUILD.bazel Minor: rename compression/shared -> types.h 2025-05-13 06:53:21 -07:00
compression_clif_aux.cc Write SBS progressively. 2025-07-31 06:05:38 -07:00
compression_clif_aux.h Write SBS progressively. 2025-07-31 06:05:38 -07:00
compression_extension.cc Write SBS progressively. 2025-07-31 06:05:38 -07:00
compression_test.py Write SBS progressively. 2025-07-31 06:05:38 -07:00
requirements.txt Add python wrappers for configs and inference. 2025-01-28 08:22:03 -08:00