gemma.cpp/util
Ray Smith 0d68555f87 Eliminated TConfig.
Changed CompressedLayer and CompressedWeights to be constructed with an instance of a LayerConfig and WeightsConfig respectively.
Added CompressedModel to remove ByteStorageT and get rid of most of the type casting, as well as allowing the default destructor to be used and work properly.
Adjusted WeightsWrapper and ForwardLayer etc to match.
The only remaining template arg is the weight type.
This enables all the instantiations to be deleted, apart from one per type.
It also enables (but not yet done) the config to be stored in the blob file instead of having to be specified separately.
Reduces the size of the gemma_lib and weights shared libraries by a factor of 4.3 and 3.2 respectively.

PiperOrigin-RevId: 686870060
2024-10-17 05:04:22 -07:00
..
allocator.h Minor cleanup, Windows+Bazel build fixes 2024-10-10 09:05:06 -07:00
app.h Eliminated TConfig. 2024-10-17 05:04:22 -07:00
args.h Lint fix - string append, remove stale TODO 2024-07-08 04:11:21 -07:00
basics.h Minor cleanup, Windows+Bazel build fixes 2024-10-10 09:05:06 -07:00
test_util.h Minor cleanup/fixes: 2024-09-09 06:58:09 -07:00
threading.h Minor cleanup, Windows+Bazel build fixes 2024-10-10 09:05:06 -07:00
threading_test.cc Add NestedPools: one per socket/cluster 2024-10-07 09:40:19 -07:00