From b33c1d55a253ce94c7e91798fd39bfa55ced4266 Mon Sep 17 00:00:00 2001 From: Zongheng Yang Date: Wed, 15 Nov 2023 11:11:27 -0800 Subject: [PATCH] Docs: add instructions to 1-click launching on public clouds (#862) * Update README.md * Update ToC --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index b9b6b58e9d..5fbabbb862 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,10 @@ Features: - [Installation](#installation) - [Docker](#docker) - [Conda/Pip venv](#condapip-venv) + - [Runpod](#runpod) - [LambdaLabs](#lambdalabs) - [Windows](#windows) + - [Launching on public clouds via SkyPilot](#launching-on-public-clouds-via-skypilot) - [Dataset](#dataset) - [How to Add Custom Prompts](#how-to-add-custom-prompts) - [How to Use Custom Pretokenized Dataset](#how-to-use-your-custom-pretokenized-dataset) @@ -204,6 +206,28 @@ Use `winglian/axolotl-runpod:main-latest` or use this [direct link](https://runp #### Windows Please use WSL or Docker! + +#### Launching on public clouds via SkyPilot +To launch on GPU instances (both on-demand and spot instances) on 7+ clouds (GCP, AWS, Azure, OCI, and more), you can use [SkyPilot](https://skypilot.readthedocs.io/en/latest/index.html): +```bash +pip install "skypilot-nightly[gcp,aws,azure,oci,lambda,kubernetes,ibm,scp]" # choose your clouds +sky check +``` +Get the [example YAMLs](https://github.com/skypilot-org/skypilot/tree/master/llm/axolotl) of using Axolotl to finetune `mistralai/Mistral-7B-v0.1`: +``` +git clone https://github.com/skypilot-org/skypilot.git +cd skypilot/llm/axolotl +``` +Use one command to launch: +```bash +# On-demand +HF_TOKEN=xx sky launch axolotl.yaml --env HF_TOKEN + +# Managed spot (auto-recovery on preemption) +HF_TOKEN=xx BUCKET= sky spot launch axolotl-spot.yaml --env HF_TOKEN --env BUCKET +``` + + ### Dataset Axolotl supports a variety of dataset formats. Below are some of the formats you can use.