MCPcopy Create free account
hub / github.com/evilsocket/cake / detect_quantization_plain_config

Function detect_quantization_plain_config

cake-core/src/utils/mod.rs:480–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479 #[test]
480 fn detect_quantization_plain_config() {
481 let tmp = tempfile::tempdir().unwrap();
482 let cfg_path = tmp.path().join("config.json");
483 fs::write(&cfg_path, r#"{"hidden_size": 4096}"#).unwrap();
484 let q = detect_quantization(&cfg_path);
485 assert_eq!(q.name(), "none");
486 }
487
488 #[test]
489 fn detect_quantization_fp8_config() {

Callers

nothing calls this directly

Calls 1

detect_quantizationFunction · 0.85

Tested by

no test coverage detected