From 971fb5d4c192d5e4e5514bec408ff61be1c6bd64 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Wed, 5 Feb 2025 13:14:08 +0000 Subject: [PATCH] On macOS this was returning an incorrect path $ ramalama --dryrun run granite-code llama-run -c 2048 --temp 0.8 /path/to/model At least try and show the correct path. Signed-off-by: Eric Curtin --- ramalama/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ramalama/model.py b/ramalama/model.py index 283f107a..fdf48aa1 100644 --- a/ramalama/model.py +++ b/ramalama/model.py @@ -285,13 +285,13 @@ def build_prompt(self, args): return prompt def get_model_path(self, args): - if args.dryrun: - return "/path/to/model" - model_path = self.exists(args) - if not model_path: + if not model_path and not args.dryrun: model_path = self.pull(args) + if args.dryrun: + return "/path/to/model" + return model_path def build_exec_args_bench(self, args, model_path):