From 61cfff1bdcdbf4a9e98df789accfe859974e6d63 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ramalama/model.py b/ramalama/model.py index 283f107a..185e7373 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: model_path = self.pull(args) + if args.dryrun: + return "/path/to/model" + return model_path def build_exec_args_bench(self, args, model_path):