candle/candle-nn/tests
Laurent Mazare d01207dbf3
Add a RotatingKVCache. (#2493)
* Add a RotatingKVCache.

* Add some KvCache tests.

* Test the reset too.

* More kv-cache testing.

* More tests for the rotating kv-cache.

* Improve the api for the rotating cache so that the whole src tensor gets returned when it's overlarge.

* Handle contiguity + bugfix + use in mimi.

* Add a way to test the mimi streaming mode.

* Mimi streaming fixes.

* More rotating kv-cache.

* Fix the attn mask generation.

* Handle the abs case.

* Add some tests for the generated mask.
2024-09-23 13:14:32 +02:00
..
batch_norm.rs Bug Fix: When converting a tensor to a variable, clone if the tensor is already a variable. (#2124) 2024-04-29 11:21:53 +02:00
group_norm.rs Move the test-utils bits to a shared place. (#619) 2023-08-27 09:42:22 +01:00
kv_cache.rs Add a RotatingKVCache. (#2493) 2024-09-23 13:14:32 +02:00
layer_norm.rs Enable the new layer-norm. (#2213) 2024-05-24 16:48:21 +02:00
loss.rs Add Binary Cross Entropy With Logit Loss to nn crate (#1157) 2023-10-23 17:12:44 +01:00
one_hot.rs Add one-hot/cold encoding (#1489) 2024-01-01 11:18:40 +01:00
ops.rs Add the layernorm specialized op. (#2212) 2024-05-24 15:58:01 +02:00
optim.rs Tweak the VarMap set type. (#1758) 2024-02-25 20:50:08 +01:00
rnn.rs Add a GRU layer. (#688) 2023-08-31 08:43:10 +01:00