Components of Llama Stack
Llama Stack includes two main components:- Server – A running distribution of Llama Stack that hosts various adaptors.
- Client – A consumer of the server’s API, interacting with the hosted adaptors.
Get your SambaCloud API key
- Create a SambaCloud account.
- Navigate to the API key section.
- Generate a new key (if you don’t already have one).
- Copy and store key securely
Build the SambaNova Llama Stack server
- Set up a Python virtual environment
- Install required dependencies
Run the SambaNova distribution server
- Export required environment variables
- Run the server with Docker
Install the Llama Stack client
In the same or another environment, run:Use the client to interact with the server
The following Python code demonstrates basic usage:Llama Stack documentation
Refer to the Llama Stack docs to:- Understand core concepts
- Dive into sample apps
- Learn how to extend and customize the framework