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 abc065d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit abc065d

Please sign in to comment.