-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to invoking SkyPilot using dagster_shell and STREAMing logs.
- Loading branch information
Showing
3 changed files
with
58 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# dnn.yaml | ||
|
||
name: huggingface | ||
|
||
resources: | ||
cloud: lambda | ||
accelerators: A10:1 | ||
|
||
# Optional: upload a working directory to remote ~/sky_workdir. | ||
# Commands in "setup" and "run" will be executed under it. | ||
# | ||
# workdir: . | ||
|
||
# Optional: upload local files. | ||
# Format: | ||
# /remote/path: /local/path | ||
# | ||
file_mounts: | ||
/dagster-skypilot-bucket: | ||
source: s3://dagster-skypilot-bucket | ||
mode: MOUNT | ||
|
||
# setup: | | ||
# set -e # Exit if any command failed. | ||
# git clone https://github.com/huggingface/transformers/ || true | ||
# cd transformers | ||
# pip install . | ||
# cd examples/pytorch/text-classification | ||
# pip install -r requirements.txt | ||
|
||
# run: | | ||
# set -e # Exit if any command failed. | ||
# cd transformers/examples/pytorch/text-classification | ||
# python run_glue.py \ | ||
# --model_name_or_path bert-base-cased \ | ||
# --dataset_name imdb \ | ||
# --do_train \ | ||
# --max_seq_length 128 \ | ||
# --per_device_train_batch_size 32 \ | ||
# --learning_rate 2e-5 \ | ||
# --max_steps 50 \ | ||
# --output_dir /tmp/imdb/ --overwrite_output_dir \ | ||
# --fp16 | ||
|
||
setup: | | ||
set -e | ||
echo "Running setup command." | ||
run: | | ||
set -e | ||
echo "Running run command." |
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