mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	gguf-py : add more name metadata extraction tests
This commit is contained in:
		| @@ -139,6 +139,14 @@ class TestMetadataMethod(unittest.TestCase): | ||||
|         self.assertEqual(gguf.Metadata.get_model_id_components("OpenGVLab/Mini-InternVL-Chat-2B-V1-5"), | ||||
|                          ('Mini-InternVL-Chat-2B-V1-5', 'OpenGVLab', 'Mini-InternVL', 'Chat', 'V1-5', '2B')) | ||||
|  | ||||
|         # TODO: DPO in the name | ||||
|         self.assertEqual(gguf.Metadata.get_model_id_components("jondurbin/bagel-dpo-2.8b-v0.2"), | ||||
|                          ('bagel-dpo-2.8b-v0.2', 'jondurbin', 'bagel-dpo', None, 'v0.2', '2.8B')) | ||||
|  | ||||
|         # DPO in name, but can't be used for the finetune to keep 'LLaMA-3' in the basename | ||||
|         self.assertEqual(gguf.Metadata.get_model_id_components("voxmenthe/SFR-Iterative-DPO-LLaMA-3-8B-R-unquantized"), | ||||
|                          ('SFR-Iterative-DPO-LLaMA-3-8B-R-unquantized', 'voxmenthe', 'SFR-Iterative-DPO-LLaMA-3', 'R-unquantized', None, '8B')) | ||||
|  | ||||
|         # Too ambiguous | ||||
|         # TODO: should "base" be a 'finetune' or 'size_label'? | ||||
|         # (in this case it should be a size label, but other models use it to signal that they are not finetuned) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Francis Couture-Harpin
					Francis Couture-Harpin