-
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: add experiments for azure and jean-zay, bump trans…
…formers version to use llama3.2
- Loading branch information
1 parent
0def121
commit fd52203
Showing
9 changed files
with
40 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
python style_transfer/run_rb_gen.py model.name=meta-llama/Llama-3.2-3B-Instruct \ | ||
model.peft_config.target_modules='["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]' \ | ||
dataset.name=bio-datasets/mimic_style_transfer \ | ||
max_steps=3 \ | ||
score.model.model_name_or_path=FremyCompany/BioLORD-2023-C \ | ||
dataset.sft_ratio=0.06 \ | ||
dataset.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 @@ | ||
python style_transfer/run_rb_gen.py |
6 changes: 6 additions & 0 deletions
6
lib/style-transfer/bash/experiment/rb_gen/jz-slurm/llama3b.sh
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 @@ | ||
sbatch bash/jz-slurm/submit-a100.sh \ | ||
model.name=meta-llama/Llama-3.2-3B-Instruct \ | ||
model.lora.target_modules='["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]' \ | ||
dataset.name=bio-datasets/mimic_style_transfer \ | ||
max_steps=3 \ | ||
score.model_name_or_path=FremyCompany/BioLORD-2023-C |
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
21 changes: 21 additions & 0 deletions
21
lib/style-transfer/bash/experiment/rb_gen/jz-slurm/submit-a100.sh
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,21 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=gpu-job | ||
#SBATCH --nodes=1 | ||
#SBATCH --gres=gpu:1 | ||
#SBATCH --cpus-per-task=10 | ||
#SBATCH --output=log/test.out | ||
#SBATCH --partition=gpu_p5 | ||
#SBATCH --account=oha@a100 | ||
#SBATCH -C a100 | ||
#SBATCH --qos=qos_gpu_a100-t3 | ||
|
||
module purge | ||
module load singularity | ||
|
||
SCRIPT_PATH="style_transfer/run_rb_gen.py" | ||
PYTHON="/opt/pysetup/.venv/bin/python" | ||
LIB_PATH="$WORK/open-nlp/lib/style-transfer/" | ||
singularity exec --bind $WORK/open-nlp,$HF_HOME,$WANDB_CACHE_DIR,$WANDB_DIR \ | ||
--env PYTHONPATH=$PYTHONPATH:$LIB_PATH,HF_HUB_OFFLINE=True \ | ||
--nv $SINGULARITY_ALLOWED_DIR/style-transfer.sif \ | ||
bash -c "cd $LIB_PATH && $PYTHON $SCRIPT_PATH $1" |
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