mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 19:50:17 +00:00
gguf-py : add more name metadata extraction tests
This commit is contained in:
parent
912e6fa5c6
commit
a3d154b260
@ -139,6 +139,14 @@ class TestMetadataMethod(unittest.TestCase):
|
|||||||
self.assertEqual(gguf.Metadata.get_model_id_components("OpenGVLab/Mini-InternVL-Chat-2B-V1-5"),
|
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'))
|
('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
|
# Too ambiguous
|
||||||
# TODO: should "base" be a 'finetune' or 'size_label'?
|
# 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)
|
# (in this case it should be a size label, but other models use it to signal that they are not finetuned)
|
||||||
|
Loading…
Reference in New Issue
Block a user