gemma.cpp/backprop
Jan Wassenberg 8532da47f7 Major refactor of allocator/args:
use new ThreadingContext2 instead of monostate/init in each frontend
Add ThreadingArgs(replaces AppArgs)

backprop: use Packed() accessor and MakePacked factory and row-based access to allow for stride
compress_weights: remove, moving to py-only exporter instead

Move MatPtr to mat.h and revise interface:
- Generic MatOwner
- rename accessors to Packed*
- support stride/row accessors, fix RowPtr stride

Add TypeBits(Type)
Move GenerateMat to test_util-inl for sharing between matmul test/bench
Move internal init to gemma.cc to avoid duplication
Rename GemmaEnv model_ to gemma_ for disambiguating vs upcoming ModelStorage
Remove --compressed_weights, use --weights instead.
tensor_index: add ExtentsFromInfo and TensorIndexLLM/Img
Allocator: use normal unique_ptr for AllocBytes so users can call directly
threading: use -> because AlignedPtr no longer assumes arrays
PiperOrigin-RevId: 745918637
2025-04-10 01:29:54 -07:00
..
activations.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward-inl.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward_scalar.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward_scalar_test.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
backward_test.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
common_scalar.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
forward-inl.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
forward.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
forward.h Eliminated TConfig. 2024-10-17 05:04:22 -07:00
forward_scalar.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
optimize_test.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
optimizer.cc Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00
optimizer.h Eliminated TConfig. 2024-10-17 05:04:22 -07:00
prompt.h Add missing include 2024-06-04 10:29:12 +00:00
sampler.h Add config for att/final cap, skip max-subtract. Fixes #278 2024-07-01 09:45:26 -07:00
test_util.h Major refactor of allocator/args: 2025-04-10 01:29:54 -07:00