-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Style Transfer: merge eval + score and add experimentation scripts
- Loading branch information
1 parent
3bb153d
commit c35062b
Showing
14 changed files
with
99 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
cd .. | ||
python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.99_gen-ratio-0.7:v281 sft_ratio=0.99 gen_ratio=0.7 | ||
python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.99_gen-ratio-0.7:v281 sft_ratio=0.99 gen_ratio=0.7 && | ||
python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.02_gen-ratio-0.7:v11 sft_ratio=0.02 gen_ratio=0.7 |
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,6 @@ | ||
#!/bin/bash | ||
|
||
nohup python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.004_gen-ratio-0.7:v5 sft_ratio=0.004 gen_ratio=0.7 && | ||
nohup python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.006_gen-ratio-0.7:v7 sft_ratio=0.006 gen_ratio=0.7 && | ||
nohup python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.01_gen-ratio-0.7:v7 sft_ratio=0.01 gen_ratio=0.7 && | ||
nohup python style_transfer/gen.py checkpoint=clinical-dream-team/sft-style-transfer/checkpoint-sft-ratio-0.99_gen-ratio-0.7:v281 sft_ratio=0.99 gen_ratio=0.7 |
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,19 @@ | ||
#!/bin/bash | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-byeksy0m-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-byeksy0m-test_dataset:v0 \ | ||
sft_ratio=0.004 \ | ||
gen_ratio=0.7 | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-2vkesygs-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-2vkesygs-test_dataset:v0 \ | ||
sft_ratio=0.006 \ | ||
gen_ratio=0.7 | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-ka1qr4r7-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-ka1qr4r7-test_dataset:v0 \ | ||
sft_ratio=0.01 \ | ||
gen_ratio=0.7 |
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,19 @@ | ||
#!/bin/bash | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-byeksy0m-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-byeksy0m-test_dataset:v0 \ | ||
sft_ratio=0.004 \ | ||
gen_ratio=0.7 | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-2vkesygs-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-2vkesygs-test_dataset:v0 \ | ||
sft_ratio=0.006 \ | ||
gen_ratio=0.7 | ||
|
||
python style_transfer/score.py \ | ||
gen_dataset=clinical-dream-team/gen-style-transfer/run-ka1qr4r7-gen_dataset:v0 \ | ||
test_dataset=clinical-dream-team/gen-style-transfer/run-ka1qr4r7-test_dataset:v0 \ | ||
sft_ratio=0.01 \ | ||
gen_ratio=0.7 |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/bash | ||
|
||
#TODO run this script | ||
cd .. | ||
python style_transfer/sft.py -m sft_ratio=0.01,0.008,0.006,0.004,0.002 gen_ratio=0.7 training_args.num_train_epochs=50 | ||
accelerate launch --num_cpu_threads_per_process=16 --config_file=accelerate-config.yaml style_transfer/sft.py -m sft_ratio=0.01,0.008,0.006,0.004,0.002 gen_ratio=0.7 training_args.num_train_epochs=50 |
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 |
---|---|---|
|
@@ -21,3 +21,4 @@ gen_ratio: 0.7 | |
seed: 0 | ||
max_seq_length: 1024 | ||
num_generated_sequences: 4 | ||
dpo_gen: 0 |
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 was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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