Closed simonw closed 1 year ago
I think this is an extra command:
llm replicate add joehoover/falcon-40b-instruct
This can look up the version ID (or you can pass --version xxx
if you want to) and the persist it to a file.
The model ID will be replicate-joehoover-falcon-40b-instruct
- but you can use one or more --alias
commands to assign aliases to it.
It will go in a YAML file which you can then edit if you want to.
Got this working:
llm -m 'replicate-joehoover-falcon-40b-instruct' '4 names for a pet tiger'
- Tiger
- Shere Khan
- Rajah
- Leo
I'm going to add a llm replicate edit-models
command to directly edit models.json
- rather than doing remove
commands and suchlike.
Got aliases working too:
llm models list
...
ReplicateModel: replicate-replit-code-v1-3b
ReplicateModel: replicate-replit-replit-code-v1-3b
ReplicateModel: replicate-joehoover-falcon-40b-instruct (aliases: falcon)
llm -m falcon '3 reasons to get a pet falcon'
- Falconry is a centuries-old sport that is fascinating to watch and participate in.
- Falcons are majestic and powerful birds that can fly at incredible speeds and heights.
- Owning a falcon requires a lot of responsibility and knowledge, but can also be a rewarding experience.
The plugin currently only works with models retrieved from this collection: https://replicate.com/collections/language-models
I want to be able to manually register other models too, like this one: https://replicate.com/joehoover/falcon-40b-instruct