-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add llama2-7b and llama2-70b examples (#146)
* prevent OOM of gcsfuse sidecar * Improve performance of GCS fuse sidecar
- Loading branch information
Showing
8 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Model | ||
metadata: | ||
name: llama-2-70b | ||
spec: | ||
image: substratusai/model-loader-huggingface | ||
params: | ||
name: meta-llama/Llama-2-70b-hf | ||
# Make sure to replace ${HUGGINGFACE_TOKEN} with your token | ||
# for example run this to use your own token: | ||
# export HUGGINGFACE_TOKEN=replace-me-with-your-token | ||
# cat base-model.yaml | envsubst | kubectl apply -f - | ||
hugging_face_hub_token: ${HUGGINGFACE_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Server | ||
metadata: | ||
name: llama-2-70b | ||
spec: | ||
image: substratusai/model-server-basaran | ||
model: | ||
name: llama-2-70b | ||
resources: | ||
gpu: | ||
type: nvidia-a100 | ||
count: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Model | ||
metadata: | ||
name: llama-2-7b | ||
spec: | ||
image: substratusai/model-loader-huggingface | ||
params: | ||
name: meta-llama/Llama-2-7b-hf | ||
# Make sure to replace ${HUGGINGFACE_TOKEN} with your token | ||
# for example run this to use your own token: | ||
# export HUGGINGFACE_TOKEN=replace-me-with-your-token | ||
# cat base-model.yaml | envsubst | kubectl apply -f - | ||
hugging_face_hub_token: ${HUGGINGFACE_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Model | ||
metadata: | ||
name: llama-2-7b-k8s | ||
spec: | ||
image: substratusai/model-trainer-huggingface | ||
baseModel: | ||
name: llama-2-7b | ||
trainingDataset: | ||
name: k8s-instructions | ||
params: | ||
# See HuggingFace transformers.TrainingArguments for all parameters | ||
# https://huggingface.co/docs/transformers/main_classes/trainer#transformers.TrainingArguments | ||
num_train_epochs: 1 | ||
# Save to checkpoint every 5 steps for a dataset with ~70 steps total | ||
save_steps: 5 | ||
resources: | ||
gpu: | ||
count: 4 | ||
type: nvidia-l4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Server | ||
metadata: | ||
name: llama-2-7b-k8s | ||
spec: | ||
image: substratusai/model-server-basaran | ||
model: | ||
name: llama-2-7b-k8s | ||
resources: | ||
gpu: | ||
type: nvidia-l4 | ||
count: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: substratus.ai/v1 | ||
kind: Server | ||
metadata: | ||
name: llama-2-7b | ||
spec: | ||
image: substratusai/model-server-basaran | ||
model: | ||
name: llama-2-7b | ||
resources: | ||
gpu: | ||
type: nvidia-l4 | ||
count: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters