Return true if kv-caching is enabled.
(&self)
| 131 | |
| 132 | /// Return true if kv-caching is enabled. |
| 133 | pub fn with_kv_cache(&self) -> bool { |
| 134 | self.use_kv_cache |
| 135 | } |
| 136 | |
| 137 | /// Return the cached cosine value for the given position and sequence length. |
| 138 | /// When `device` differs from the cache's own device, the result is copied |