-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: create an azure-ml pipeline for eval_prompts() #36
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
364aa18
feat: create an azure-ml pipeline for eval_prompts()
anujsinha3 1eb7333
feat: parameterize data file and prompt file input
anujsinha3 b689592
refactor: update prompts directory path
anujsinha3 d3105e8
Merge branch 'main' into feature-azure-ml-pipeline-eval-prompts
anujsinha3 aaded9c
refactor: update artifact labeling (TODO: fix metrics)
anujsinha3 6faff60
refactor: update file path directory
anujsinha3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json | ||
command: > | ||
python -m autora.doc.pipelines.main eval-prompts | ||
${{inputs.data_dir}}/data.jsonl | ||
${{inputs.data_dir}}/all_prompt.json | ||
--model-path ${{inputs.model_path}} | ||
--param do_sample=${{inputs.do_sample}} | ||
--param temperature=${{inputs.temperature}} | ||
--param top_k=${{inputs.top_k}} | ||
--param top_p=${{inputs.top_p}} | ||
code: ../src | ||
inputs: | ||
data_dir: | ||
type: uri_folder | ||
path: azureml://datastores/workspaceblobstore/paths/data/sweetpea/ | ||
# Currently models are loading faster directly from HuggingFace vs Azure Blob Storage | ||
# model_dir: | ||
# type: uri_folder | ||
# path: azureml://datastores/workspaceblobstore/paths/base_models | ||
model_path: meta-llama/Llama-2-7b-chat-hf | ||
temperature: 0.01 | ||
do_sample: 0 | ||
top_p: 0.95 | ||
top_k: 1 | ||
# using a curated environment doesn't work because we need additional packages | ||
environment: # azureml://registries/azureml/environments/acpt-pytorch-2.0-cuda11.7/versions/21 | ||
image: mcr.microsoft.com/azureml/curated/acpt-pytorch-2.0-cuda11.7:21 | ||
conda_file: conda.yml | ||
display_name: autodoc_multi_prompts_prediction | ||
compute: azureml:v100cluster | ||
experiment_name: evaluation_multi_prompts | ||
description: Run code-to-documentation generation on data_file for each prompt in prompts_file |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make the prompts file its own input parameter. This will make it easier to run experiments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I parameterize the data file as well? The default value can be 'data.jsonl' but a user can modify input if they want. WDYT?