gemma.cpp/paligemma
Jan Wassenberg 8d0882b966 Huge refactor of weight handling and model loading.
Weight handling:
- new ModelStore2 supports both pre-2025 multi-file and single-file formats
- simpler ForEachTensor with TensorArgs
- tensors are constructed with their full suffixed name

I/O:
- support mmap and stride
- Simplified SbsWriter, single insert(); add SbsReader

Misc:
- kMockTokenizer: allow creating with unavailable tokenizer
- configs.h: Simpler enum validity checks via kSentinel
- matmul.h: remove unused enable_bind (now in allocator.h)
- tensor_info: single TensorInfoRegistry class, rename from tensor_index.h

Frontends:
- Replace Allocate/CreateGemma with ctor(LoaderArgs, MatMulEnv&)
- Deduce model/weight type, remove --model and parsing
- Replace most common.h includes with configs.h
- Remove --compressed_weights, use --weights instead
- Remove ModelInfo, replaced by ModelConfig.

Backprop:
- Reduce max loss, remove backward_scalar_test (timeout)
- Update thresholds because new RandInit changes rng eval order and thus numerics
PiperOrigin-RevId: 755317484
2025-05-06 04:44:21 -07:00
..
testdata Add support for PaliGemma Vision-LM (224x224) to gemma.cpp 2024-09-23 10:09:38 -07:00
BUILD.bazel Huge refactor of weight handling and model loading. 2025-05-06 04:44:21 -07:00
image.cc Add support for 448px resolution to PaliGemma and PaliGemma2. 2024-12-09 11:38:10 -08:00
image.h Add support for 448px resolution to PaliGemma and PaliGemma2. 2024-12-09 11:38:10 -08:00
image_test.cc Add python wrappers for configs and inference. 2025-01-28 08:22:03 -08:00
paligemma_test.cc Huge refactor of weight handling and model loading. 2025-05-06 04:44:21 -07:00