Skip to content

Commit

Permalink
Merge branch 'main' into wesselb/update-aurora-description
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Jan 22, 2025
2 parents acdcf53 + 5c9f7eb commit c161880
Show file tree
Hide file tree
Showing 46 changed files with 524 additions and 172 deletions.
29 changes: 28 additions & 1 deletion assets/models/system/Phi-4/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ path: ./
properties:
inference-min-sku-spec: 24|1|220|64
inference-recommended-sku: Standard_NC24ads_A100_v4, Standard_NC48ads_A100_v4, Standard_NC96ads_A100_v4, Standard_ND96asr_v4, Standard_ND96amsr_A100_v4
finetuning-tasks: chat-completion
finetune-min-sku-spec: 24|1|220|64
finetune-recommended-sku: Standard_NC24ads_A100_v4, Standard_NC48ads_A100_v4, Standard_NC96ads_A100_v4, Standard_ND96asr_v4, Standard_ND96amsr_A100_v4
languages: en
SharedComputeCapacityEnabled: true

Expand Down Expand Up @@ -43,6 +46,30 @@ tags:
Standard_ND96asr_v4,
Standard_ND96amsr_A100_v4
]
finetune_compute_allow_list:
[
Standard_NC24ads_A100_v4,
Standard_NC48ads_A100_v4,
Standard_NC96ads_A100_v4,
Standard_ND96asr_v4,
Standard_ND96amsr_A100_v4
]
model_specific_defaults:
apply_deepspeed: "true"
deepspeed_stage: 3
apply_lora: "true"
apply_ort: "false"
precision: 16
ignore_mismatched_sizes: "false"
num_train_epochs: 1
per_device_train_batch_size: 1
per_device_eval_batch_size: 1
gradient_accumulation_steps: 1
learning_rate: 5e-6
lr_scheduler_type: "cosine"
logging_strategy: "steps"
logging_steps: 10
save_total_limit: 1
benchmark: "quality"

version: 2
version: 3
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: chat_completion_finetune
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: question_answering_finetune
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: summarization_finetune
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: text_classification_finetune
version: 0.0.66
version: 0.0.67
type: command

is_deterministic: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: text_generation_finetune
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: token_classification_finetune
version: 0.0.66
version: 0.0.67
type: command

is_deterministic: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: translation_finetune
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: ft_nlp_model_converter
version: 0.0.66
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: chat_completion_model_import
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: question_answering_model_import
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: summarization_model_import
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: text_classification_model_import
version: 0.0.66
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: text_generation_model_import
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: token_classification_model_import
version: 0.0.66
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: translation_model_import
version: 0.0.65
version: 0.0.67
type: command

is_deterministic: True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/pipelineComponent.schema.json
name: chat_completion_pipeline
version: 0.0.67
version: 0.0.68
type: pipeline
display_name: Chat Completion Pipeline
description: Pipeline Component to finetune Hugging Face pretrained models for chat completion task. The component supports optimizations such as LoRA, Deepspeed and ONNXRuntime for performance enhancement. See [docs](https://aka.ms/azureml/components/chat_completion_pipeline) to learn more.
Expand Down Expand Up @@ -495,7 +495,7 @@ outputs:
jobs:
ft_nlp_common_validation:
type: command
component: azureml:ft_nlp_common_validation:0.0.65
component: azureml:ft_nlp_common_validation:0.0.67
compute: '${{parent.inputs.compute_model_import}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_import}}'
Expand Down Expand Up @@ -532,7 +532,7 @@ jobs:
auto_find_batch_size: '${{parent.inputs.auto_find_batch_size}}'
chat_completion_model_import:
type: command
component: azureml:chat_completion_model_import:0.0.65
component: azureml:chat_completion_model_import:0.0.67
compute: '${{parent.inputs.compute_model_import}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_import}}'
Expand All @@ -543,7 +543,7 @@ jobs:
validation_output: '${{parent.jobs.ft_nlp_common_validation.outputs.validation_info}}'
chat_completion_datapreprocess:
type: command
component: azureml:chat_completion_datapreprocess:0.0.65
component: azureml:chat_completion_datapreprocess:0.0.67
compute: '${{parent.inputs.compute_preprocess}}'
resources:
instance_type: '${{parent.inputs.instance_type_preprocess}}'
Expand All @@ -560,7 +560,7 @@ jobs:
model_selector_output: '${{parent.jobs.chat_completion_model_import.outputs.output_dir}}'
chat_completion_finetune:
type: command
component: azureml:chat_completion_finetune:0.0.65
component: azureml:chat_completion_finetune:0.0.67
compute: '${{parent.inputs.compute_finetune}}'
distribution:
type: pytorch
Expand Down Expand Up @@ -618,7 +618,7 @@ jobs:
# mlflow_model_folder: '${{parent.outputs.mlflow_model_folder}}'
ft_nlp_model_converter:
type: command
component: azureml:ft_nlp_model_converter:0.0.65
component: azureml:ft_nlp_model_converter:0.0.67
compute: '${{parent.inputs.compute_finetune}}'
resources:
instance_type: '${{parent.inputs.instance_type_finetune}}'
Expand All @@ -627,30 +627,30 @@ jobs:
# converted_model: '${{parent.jobs.chat_completion_finetune.outputs.mlflow_model_folder}}'
outputs:
mlflow_model_folder: '${{parent.outputs.mlflow_model_folder}}'
# model_prediction:
# type: command
# component: azureml:model_prediction_with_container:0.0.2
# compute: '${{parent.inputs.compute_model_evaluation}}'
# resources:
# instance_type: '${{parent.inputs.instance_type_model_evaluation}}'
# inputs:
# task: chat-completion
# test_data: '${{parent.jobs.chat_completion_datapreprocess.outputs.output_dir}}'
# label_column_name: messages
# mlflow_model: '${{parent.jobs.ft_nlp_model_converter.outputs.mlflow_model_folder}}'
# evaluation_config_params: '${{parent.inputs.evaluation_config_params}}'
# compute_metrics:
# type: command
# component: azureml:compute_metrics:0.0.31
# compute: '${{parent.inputs.compute_model_evaluation}}'
# resources:
# instance_type: '${{parent.inputs.instance_type_model_evaluation}}'
# inputs:
# task: chat-completion
# ground_truth: '${{parent.jobs.model_prediction.outputs.ground_truth}}'
# prediction: '${{parent.jobs.model_prediction.outputs.predictions}}'
# prediction_probabilities: '${{parent.jobs.model_prediction.outputs.prediction_probabilities}}'
# evaluation_config: '${{parent.inputs.evaluation_config}}'
# evaluation_config_params: '${{parent.inputs.evaluation_config_params}}'
# outputs:
# evaluation_result: '${{parent.outputs.evaluation_result}}'
model_prediction:
type: command
component: azureml:model_prediction_with_container:0.0.5
compute: '${{parent.inputs.compute_model_evaluation}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_evaluation}}'
inputs:
task: chat-completion
test_data: '${{parent.jobs.chat_completion_datapreprocess.outputs.output_dir}}'
label_column_name: messages
mlflow_model: '${{parent.jobs.ft_nlp_model_converter.outputs.mlflow_model_folder}}'
evaluation_config_params: '${{parent.inputs.evaluation_config_params}}'
compute_metrics:
type: command
component: azureml:compute_metrics:0.0.35
compute: '${{parent.inputs.compute_model_evaluation}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_evaluation}}'
inputs:
task: chat-completion
ground_truth: '${{parent.jobs.model_prediction.outputs.ground_truth}}'
prediction: '${{parent.jobs.model_prediction.outputs.predictions}}'
prediction_probabilities: '${{parent.jobs.model_prediction.outputs.prediction_probabilities}}'
evaluation_config: '${{parent.inputs.evaluation_config}}'
evaluation_config_params: '${{parent.inputs.evaluation_config_params}}'
outputs:
evaluation_result: '${{parent.outputs.evaluation_result}}'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/pipelineComponent.schema.json
name: question_answering_pipeline
version: 0.0.67
version: 0.0.68
type: pipeline
display_name: Question Answering Pipeline
description: Pipeline Component to finetune Hugging Face pretrained models for extractive question answering task. The component supports optimizations such as LoRA, Deepspeed and ONNXRuntime for performance enhancement. See [docs](https://aka.ms/azureml/components/question_answering_pipeline) to learn more.
Expand Down Expand Up @@ -541,7 +541,7 @@ outputs:
jobs:
ft_nlp_common_validation:
type: command
component: azureml:ft_nlp_common_validation:0.0.64
component: azureml:ft_nlp_common_validation:0.0.67
compute: '${{parent.inputs.compute_model_import}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_import}}'
Expand Down Expand Up @@ -578,7 +578,7 @@ jobs:
auto_find_batch_size: '${{parent.inputs.auto_find_batch_size}}'
question_answering_model_import:
type: command
component: azureml:question_answering_model_import:0.0.65
component: azureml:question_answering_model_import:0.0.67
compute: '${{parent.inputs.compute_model_import}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_import}}'
Expand All @@ -589,7 +589,7 @@ jobs:
validation_output: '${{parent.jobs.ft_nlp_common_validation.outputs.validation_info}}'
question_answering_datapreprocess:
type: command
component: azureml:question_answering_datapreprocess:0.0.65
component: azureml:question_answering_datapreprocess:0.0.67
compute: '${{parent.inputs.compute_preprocess}}'
resources:
instance_type: '${{parent.inputs.instance_type_preprocess}}'
Expand All @@ -614,7 +614,7 @@ jobs:
model_selector_output: '${{parent.jobs.question_answering_model_import.outputs.output_dir}}'
question_answering_finetune:
type: command
component: azureml:question_answering_finetune:0.0.65
component: azureml:question_answering_finetune:0.0.67
compute: '${{parent.inputs.compute_finetune}}'
distribution:
type: pytorch
Expand Down Expand Up @@ -671,7 +671,7 @@ jobs:
pytorch_model_folder: '${{parent.outputs.pytorch_model_folder}}'
ft_nlp_model_converter:
type: command
component: azureml:ft_nlp_model_converter:0.0.64
component: azureml:ft_nlp_model_converter:0.0.67
compute: '${{parent.inputs.compute_finetune}}'
resources:
instance_type: '${{parent.inputs.instance_type_finetune}}'
Expand All @@ -681,7 +681,7 @@ jobs:
mlflow_model_folder: '${{parent.outputs.mlflow_model_folder}}'
model_prediction:
type: command
component: azureml:model_prediction:0.0.35
component: azureml:model_prediction_with_container:0.0.5
compute: '${{parent.inputs.compute_model_evaluation}}'
resources:
instance_type: '${{parent.inputs.instance_type_model_evaluation}}'
Expand All @@ -690,10 +690,7 @@ jobs:
test_data: '${{parent.jobs.question_answering_datapreprocess.outputs.output_dir}}'
label_column_name: '${{parent.inputs.answers_key}}'
input_column_names: "'${{parent.inputs.question_key}}','${{parent.inputs.context_key}}'"
batch_size: '${{parent.inputs.per_device_train_batch_size}}'
device: auto
mlflow_model: '${{parent.jobs.ft_nlp_model_converter.outputs.mlflow_model_folder}}'
evaluation_config: '${{parent.inputs.evaluation_config}}'
evaluation_config_params: '${{parent.inputs.evaluation_config_params}}'
compute_metrics:
type: command
Expand Down
Loading

0 comments on commit c161880

Please sign in to comment.