MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / test_parse_quantization

Function test_parse_quantization

src-tauri/src/huggingface.rs:779–789  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected