Skip to content

Adding support for AML based training to WAIS #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
phi2 bug fixes
  • Loading branch information
amolamb committed Feb 13, 2024
commit afe75911c9c160f05b3c9bdf31dfdcd159ea828f
5 changes: 4 additions & 1 deletion configs/phi-2/finetuning/invoke_olive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import argparse
import sys
import json
@@ -42,7 +45,7 @@ def main():
file_path = os.path.join(os.getcwd(), 'finetuning/olive-config.json')
olive_run(file_path)
else:
dataset_local_path = "dataset/dataset-classification.jsonl"
dataset_local_path = "dataset/dataset-classification.json"
dataset_name = "phi2_train_dataset"
dataset_version = "1"
docker_context_path = "finetuning/docker-contexts/wais_phi2_env"
2 changes: 1 addition & 1 deletion configs/phi-2/finetuning/olive-config.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"hf_config": {
"model_name": "model-cache/microsoft/phi-2",
"task": "text-generation",
"model_loading_args": {
"from_pretrained_args": {
"trust_remote_code": true
}
}
4 changes: 2 additions & 2 deletions configs/phi-2/setup/project-settings.json
Original file line number Diff line number Diff line change
@@ -29,9 +29,9 @@
"info": "Dataset to train the model from a local file.",
"replaceToken": "<data_configs_data_files>",
"optionValues": [
"dataset/dataset-classification.jsonl"
"dataset/dataset-classification.json"
],
"defaultValue": "dataset/dataset-classification.jsonl"
"defaultValue": "dataset/dataset-classification.json"
},
{
"type": "String",