From abc065d07099903d748fd8243f6308d26ef823a8 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, 5 insertions(+), 3 deletions(-) diff --git a/ramalama/model.py b/ramalama/model.py index 283f107a..48ca3750 100644 --- a/ramalama/model.py +++ b/ramalama/model.py @@ -285,12 +285,14 @@ def build_prompt(self, args): return prompt def get_model_path(self, args): + model_path = self.exists(args) + if model_path: + return model_path + if args.dryrun: return "/path/to/model" - model_path = self.exists(args) - if not model_path: - model_path = self.pull(args) + model_path = self.pull(args) return model_path