llama-stack/docs/source/distributions/index.md

3.2 KiB

Starting a Llama Stack

As mentioned in the Concepts, Llama Stack Distributions are specific pre-packaged versions of the Llama Stack. These templates make it easy to get started quickly.

A Llama Stack Distribution can be consumed in two ways:

  • Docker: we provide a number of pre-built Docker containers allowing you to get started instantly. If you are focused on application development, we recommend this option. You can also build your own custom Docker container.
  • Conda: the llama CLI provides a simple set of commands to build, configure and run a Llama Stack server containing the exact combination of providers you wish. We have provided various templates to make getting started easier.

Which distribution to choose depends on the hardware you have for running LLM inference.

Remote-Hosted Distributions

Remote-Hosted distributions are available endpoints serving Llama Stack API that you can directly connect to.

Distribution Endpoint Inference Agents Memory Safety Telemetry
Together https://llama-stack.together.ai remote::together meta-reference remote::weaviate meta-reference meta-reference
Fireworks https://llamastack-preview.fireworks.ai remote::fireworks meta-reference remote::weaviate meta-reference meta-reference

You can use llama-stack-client to interact with these endpoints. For example, to list the available models served by the Fireworks endpoint:

$ pip install llama-stack-client
$ llama-stack-client configure --endpoint https://llamastack-preview.fireworks.ai
$ llama-stack-client models list

On-Device Distributions

On-device distributions are Llama Stack distributions that run locally on your iOS / Android device.

Building Your Own Distribution

talk about llama stack build --image-type conda, etc.

Prerequisites

$ git clone git@github.com:meta-llama/llama-stack.git

Troubleshooting

  • If you encounter any issues, search through our GitHub Issues, or file an new issue.
  • Use --port <PORT> flag to use a different port number. For docker run, update the -p <PORT>:<PORT> flag.
:maxdepth: 3

remote_hosted_distro/index
ondevice_distro/index