Skip to content

opendatahub-io/llama-stack-distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Data Hub Llama Stack Distribution

Build

This directory contains the necessary files to build an Open Data Hub-compatible container image for Llama Stack.

To learn more about the distribution image content, see the README in the distribution/ directory.

Build Instructions

Prerequisites

Generating the Containerfile

The Containerfile is auto-generated from a template. To generate it:

pre-commit run --all-files

This will:

  • Install the dependencies (llama-stack etc) in a virtual environment
  • Execute the build script ./distribution/build.py

The build script will:

  • Execute the llama CLI to generate the dependencies
  • Create a new Containerfile with the required dependencies

Editing the Containerfile

The Containerfile is auto-generated from a template. To edit it, you can modify the template in distribution/Containerfile.in and run pre-commit again.

Warning

NEVER edit the generated Containerfile manually.

Run Instructions

Tip

Ensure you include any env vars you might need for providers in the container env - you can read more about that here.

podman run -p 8321:8321 quay.io/opendatahub/llama-stack:<tag>

What image tag should I use?

Various tags are maintained for this image:

  • latest will always point to the latest image that has been built off of a merge to the main branch
    • You can also pull an older image built off of main by using the SHA of the merge commit as the tag
  • rhoai-v*-latest will always point to the latest image that has been built off of a merge to the corresponding rhoai-v* branch

You can see the source code that implements this build strategy here

About

Repository to host the ODH Llama Stack distribution image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 96