-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Text-Generation/Chat MaaP FineTuning sample (#3459)
* Add Text-Generation MaaP FineTuning sample * Add chat sample notebook for maap * Add CLI samples * Add missing file * Fix comments and use the released sdk. * Corrections. * Fix black formatter issue. * Minor changes. --------- Co-authored-by: Sagar Sumant <sasum@microsoft.com>
- Loading branch information
1 parent
a7da589
commit 05dcd4c
Showing
19 changed files
with
2,316 additions
and
4 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
27 changes: 27 additions & 0 deletions
27
...standalone/model-as-a-platform/chat-completion/chat-completion-finetuning-amlcompute.yaml
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,27 @@ | ||
type: finetuning | ||
|
||
name: "Phi-3-mini-4k-instruct-with-amlcompute" | ||
experiment_name: "Phi-3-mini-4k-instruct-finetuning-experiment" | ||
display_name: "Phi-3-mini-4k-instruct-display-name" | ||
task: chat_completion | ||
model_provider: custom | ||
model: | ||
path: "azureml://registries/azureml/models/Phi-3-mini-4k-instruct/versions/14" | ||
type: mlflow_model | ||
compute: "lowpri-a100" | ||
training_data: train.jsonl | ||
validation_data: | ||
path: validation.jsonl | ||
type: uri_file | ||
hyperparameters: | ||
num_train_epochs: "1" | ||
per_device_train_batch_size: "1" | ||
learning_rate: "0.00002" | ||
properties: | ||
my_property: "my_value" | ||
tags: | ||
foo_tag: "bar" | ||
outputs: | ||
registered_model: | ||
name: "Phi-3-mini-4k-instruct-finetuned-model" | ||
type: mlflow_model |
32 changes: 32 additions & 0 deletions
32
...dalone/model-as-a-platform/chat-completion/chat-completion-finetuning-instance-types.yaml
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,32 @@ | ||
type: finetuning | ||
|
||
name: "Phi-3-mini-4k-instruct-with-instance-types" | ||
experiment_name: "Phi-3-mini-4k-instruct-finetuning-experiment-instance-types" | ||
display_name: "Phi-3-mini-4k-instruct-display-name" | ||
task: chat_completion | ||
model_provider: custom | ||
model: | ||
path: "azureml://registries/azureml/models/Phi-3-mini-4k-instruct/versions/14" | ||
type: mlflow_model | ||
resources: | ||
instance_types: | ||
# You can specify multiple instance types for the training job | ||
# Backend will decide which instance type to use based on the constraints on training job. | ||
- "Standard_NC96ads_A100_v4" | ||
- "Standard_E4s_v3" | ||
training_data: train.jsonl | ||
validation_data: | ||
path: validation.jsonl | ||
type: uri_file | ||
hyperparameters: | ||
num_train_epochs: "1" | ||
per_device_train_batch_size: "1" | ||
learning_rate: "0.00002" | ||
properties: | ||
my_property: "my_value" | ||
tags: | ||
foo_tag: "bar" | ||
outputs: | ||
registered_model: | ||
name: "Phi-3-mini-4k-instruct-finetuned-model" | ||
type: mlflow_model |
2 changes: 2 additions & 0 deletions
2
cli/jobs/finetuning/standalone/model-as-a-platform/chat-completion/readme.md
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,2 @@ | ||
## How to run FineTuningJob using AzureML CLIV2? | ||
[Running FineTuningJob Using AzureML CLIV2](../../finetuning-job-cliv2-readme.md) |
Oops, something went wrong.