Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/evilsocket/cake
/ make_cache
Function
make_cache
cake-core/tests/unit_tests/helpers.rs:215–217 ·
view source on GitHub ↗
Create a Cache for testing.
(cfg: &Config)
Source
from the content-addressed store, hash-verified
213
214
/// Create a Cache for testing.
215
pub fn make_cache(cfg: &Config) -> Cache {
216
Cache::new(true, DType::F32, cfg, &Device::Cpu).unwrap()
217
}
Callers
15
test_forward_with_cache_output_shape_prefill
Function · 0.70
test_forward_with_cache_output_shape_generation
Function · 0.70
test_forward_with_cache_output_is_nonzero
Function · 0.70
test_forward_with_cache_output_differs_from_input
Function · 0.70
test_forward_with_cache_preserves_dtype
Function · 0.70
test_attention_prefill_shape
Function · 0.70
test_attention_single_token_shape
Function · 0.70
test_attention_deterministic
Function · 0.70
test_attention_with_qk_norm
Function · 0.70
test_attention_sliding_window
Function · 0.70
test_attention_gqa
Function · 0.70
test_attention_no_rope
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected