Skip to content

Commit

Permalink
add custom prompt model trainer example (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Jul 25, 2023
1 parent 0592f81 commit c0a918e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/falcon-7b-instruct/finetuned-model-custom-prompt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: substratus.ai/v1
kind: Model
metadata:
name: falcon-7b-instruct-k8s-custom-prompt
spec:
image:
name: substratusai/model-trainer-huggingface
baseModel:
name: falcon-7b-instruct
trainingDataset:
name: k8s-instructions
params:
epochs: 1
prompt_template: |
You're a helpful assistant that helps with generating K8s YAML manifests. Your responses should only be YAML or multi YAML files
## Instruction
{prompt}
## Response:
{completion}
resources:
gpu:
count: 4
type: nvidia-l4

0 comments on commit c0a918e

Please sign in to comment.