gemma.cpp/util
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
..
allocator.cc Backprop test fixes and allocator cleanup 2025-04-29 03:01:10 -07:00
allocator.h Backprop test fixes and allocator cleanup 2025-04-29 03:01:10 -07:00
args.h Huge refactor of weight handling and model loading. 2025-05-06 04:44:21 -07:00
basics.h Minor cleanup: enable 0,0 Extents2D, add SerializedSpan typedef, include fixes 2025-04-08 03:35:55 -07:00
mat.cc Minor cleanup, on-demand NUQ buffer allocation 2025-04-16 10:49:43 -07:00
mat.h Huge refactor of weight handling and model loading. 2025-05-06 04:44:21 -07:00
test_util.h Minor cleanup/fixes: 2024-09-09 06:58:09 -07:00
threading.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
threading.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
threading_context.cc Minor cleanup, on-demand NUQ buffer allocation 2025-04-16 10:49:43 -07:00
threading_context.h Cleanup: include fixes/comments, fix leak, vector reserve 2025-04-22 12:01:46 -07:00
threading_test.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
topology.cc Add new singleton Allocator2 instead of monostate 2025-04-08 09:00:59 -07:00
topology.h Refactor Gemma ctor and improve pool NUMA support 2025-03-14 10:19:00 -07:00