Skip to content

Commit

Permalink
On macOS this was returning an incorrect path
Browse files Browse the repository at this point in the history
$ 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 <[email protected]>
  • Loading branch information
ericcurtin committed Feb 5, 2025
1 parent a08b166 commit 971fb5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 971fb5d

Please sign in to comment.