()
| 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() { |
nothing calls this directly
no test coverage detected