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

Function detect_quantization_gptq_config

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

Source from the content-addressed store, hash-verified

500
501 #[test]
502 fn detect_quantization_gptq_config() {
503 let tmp = tempfile::tempdir().unwrap();
504 let cfg_path = tmp.path().join("config.json");
505 fs::write(
506 &cfg_path,
507 r#"{"quantization_config": {"quant_method": "gptq", "group_size": 128, "bits": 4}}"#,
508 )
509 .unwrap();
510 let q = detect_quantization(&cfg_path);
511 assert_eq!(q.name(), "gptq");
512 }
513
514 #[test]
515 fn no_quantization_estimate_layer_vram_passthrough() {

Callers

nothing calls this directly

Calls 1

detect_quantizationFunction · 0.85

Tested by

no test coverage detected