Skip to content

dstackai/dstack-examples

Repository files navigation

Examples

Welcome to dstack-examples. This repository contains a collection of examples demonstrating how to use dstack.

1. Setup

Install the open-source dstack server and configure clouds or sign up for dstack Sky

1.1. Install dstack

pip install "dstack[all]" -U

1.2 Configure clouds

Configure clouds via ~/.dstack/server/config.yml. Learn more.

1.3. Start the server

dstack server

2. Run examples

2.1. Init the repo

git clone https://github.com/dstackai/dstack-examples
cd dstack-examples
dstack init

2.2. Run a dev environment

Here's how to run a dev environment with the current repo:

dstack run .

2.3. Run any example

Here's how to run any of the examples, e.g. vllm:

dstack run . -f deployment/vllm/serve.dstack.yml

Find more details on each example at dstack.ai/examples.

More information

About

A collection of examples demonstrating how to use dstack

Resources

Stars

Watchers

Forks

Languages