Podman Desktop AI Lab extension currently provides a list of models that come pre-packaged with the install. You can reference that list here. When deploying locally to Podman Desktop you are able to leverage these pre-packaged models for your application, however, you can add your own models if you wish.
For example there is a custom model added alongside the non-ai-lab-chatbot
template.
In order to add your own model(s) to the AI Lab extension you need to edit the user-catalog.json
that is included as part of the software template. This file is what tells the extension what to import. The following steps can be taken to properly add a new model to the user-catalog.json
file.
- Navigate to Hugging Face and find a suitable model.
- You will need a model in
GGUF
format forllamacpp
model servers.
- You will need a model in
- Find the file list for your selected model:
- Select the size of the model you want to use.
- Note the
download link
,sha
andfile size
:
- Referencing the structure of
user-catalog.json
, come up with anid
,name
anddescription
for your imported model. Due to the resource restrictions typically experienced in local deployment you can leavehw
asCPU
.registry
will be the repository you found the model (i.e. Hugging Face).
- Update the
url
andsha
fields with the respective values you took note of above. - Update the
memory
field with thefile size
you noted above inbytes
. Typically this value is in a shortened form on Hugging Face.
- Take note of the
id
you set for your model above. - Add the new model
id
to your application inuser-catalog.json
:
When you deploy to Podman Desktop you will be able to select which model you want to use before you start the application.