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

Function detect_quantization_fp8_config

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

Source from the content-addressed store, hash-verified

487
488 #[test]
489 fn detect_quantization_fp8_config() {
490 let tmp = tempfile::tempdir().unwrap();
491 let cfg_path = tmp.path().join("config.json");
492 fs::write(
493 &cfg_path,
494 r#"{"quantization_config": {"quant_method": "fp8"}}"#,
495 )
496 .unwrap();
497 let q = detect_quantization(&cfg_path);
498 assert_eq!(q.name(), "fp8");
499 }
500
501 #[test]
502 fn detect_quantization_gptq_config() {

Callers

nothing calls this directly

Calls 1

detect_quantizationFunction · 0.85

Tested by

no test coverage detected