()
| 777 | |
| 778 | #[test] |
| 779 | fn test_parse_quantization() { |
| 780 | assert_eq!( |
| 781 | HfClient::parse_quantization("llama-2-7b.Q4_K_M.gguf"), |
| 782 | Some("Q4_K_M".to_string()) |
| 783 | ); |
| 784 | assert_eq!( |
| 785 | HfClient::parse_quantization("model.Q8_0.gguf"), |
| 786 | Some("Q8_0".to_string()) |
| 787 | ); |
| 788 | assert_eq!(HfClient::parse_quantization("model.gguf"), None); |
| 789 | } |
| 790 | |
| 791 | #[test] |
| 792 | fn test_quantization_order() { |
nothing calls this directly
no outgoing calls
no test coverage detected