]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model-conversion : make causal-verify-logits fails with model names containing "...
authorJie Fu (傅杰) <redacted>
Wed, 24 Sep 2025 08:25:26 +0000 (16:25 +0800)
committerGitHub <redacted>
Wed, 24 Sep 2025 08:25:26 +0000 (10:25 +0200)
Signed-off-by: Jie Fu <redacted>
examples/model-conversion/scripts/causal/compare-logits.py
examples/model-conversion/scripts/utils/check-nmse.py

index fb959f0d566b4aeb153472c1bf351ebb1f9b5402..afa0d5b263a0d0b0fb96f4b6156642ad56d84f24 100755 (executable)
@@ -48,7 +48,7 @@ def main():
         print(f"Error: Model file not found: {model_path}")
         sys.exit(1)
 
-    model_name = os.path.splitext(os.path.basename(model_path))[0]
+    model_name = os.path.basename(model_path)
     data_dir = Path("data")
 
     pytorch_file = data_dir / f"pytorch-{model_name}.bin"
index 196a6210f048e211788e99d177e387e51c0cf092..939e3153cc360d13073ef35b3e4388c45e0e4495 100755 (executable)
@@ -67,7 +67,7 @@ def main():
     parser.add_argument('-m', '--model-path', required=True,  help='Path to the model directory')
     args = parser.parse_args()
 
-    model_name = os.path.splitext(os.path.basename(args.model_path))[0]
+    model_name = os.path.basename(args.model_path)
     data_dir = Path("data")
 
     pytorch_file = data_dir / f"pytorch-{model_name}.bin"