Structs§
- Attention
Mask - Cache
- KvCache
- A growable kv cache. This cache wraps candles
KvCache
with exponentially larger allocations as the sequence length increases. - Mask
Cache - Tensor
Cache - A growable tensor cache. This cache wraps candles [
Cache
] with exponentially larger allocations as the sequence length increases.
Enums§
Functions§
- accelerated_
device_ if_ available - Create a candle device that uses any available accelerator.
- copy_
tensor_ into_ vec - Clear a
Vec<T>
and copy the contents of a tensor into it. - maybe_
autoreleasepool - Wrap a closure in a release pool if the metal feature is enabled