Skip to content

🤖 Get started with LLMs on your kind cluster, today!

License

Notifications You must be signed in to change notification settings

cncf/llm-starter-pack

Repository files navigation

A Cloud Native LLM Starter Pack

Prerequisites

  • Docker
  • kind
    • kind is "Kubernetes in Docker," used by the Kubernetes project to help test features and run integration tests. It turns out it's a handy way for anyone to spin up a cluster quickly. Big thank you to @bentheelder for developing it 👏🏼 👏🏼
  • kubectl
    • kubectl is how you interact with k8s using the command line. This allows you to become a k8s whisperer :-)

Startup

We have crafted a few scripts to make this demo run as quickly as possible on your machine once you've installed the prerequisites.

This script will:

  • Create a kind cluster
  • Apply the Kubernetes manifests we need for our LLM chatbot demo
  • Use port-forwarding to help us access our service in the browser so we can ask our LLM questions

Note: After applying the Kubernetes manifests, our cluster will take roughly 3-4 minutes to download the images, initialize the LLM and start the applications. You can monitor the status of the pods by running kubectl get pods

./startup.sh

Demo

Next, we can install the demo app that uses the LLM.

./demo.sh

If you want to remove or tear down just the demo app, you can run

./teardown.sh

Shutdown

To shut down the demo, run the following command, which will:

  • Remove the Kubernetes manifests
  • Remove the port-forwarding
  • Delete the kind cluster
./shutdown.sh

Operating System Information

This demo has been tested on the following operating systems and will work if you have the prerequisites installed.

  • macOS
  • Linux
  • Windows

Verification

These images are signed with sigstore's cosign. You can verify the signature by downloading the cosign.pub key from this repo and running the following command:

cosign verify --key cosign.pub ghcr.io/cncf/llm-starter-pack:latest

If you're forking this repo you should read the docs on keeping secrets in github. You need to generate a new key-pair with cosign. The public key can be in your public repo (your users need it to check the signatures), and you can paste the private key in Settings -> Secrets -> Actions.

Acknowledgements

We'd like to thank Docker for sharing their GenAI Stack demo with us. We've used their demo as a starting point for this demo. You can find their demo here.

We'd also like to thank Weaveworks for their Weaveworks Scope project which we've used to help visualize our Kubernetes cluster. You can find their project here.

About

🤖 Get started with LLMs on your kind cluster, today!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •