Skip to content

Commit be79343

Browse files
committed
WIP
1 parent edfe7f6 commit be79343

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/agent.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# 2.3. Generate recipes - Generate recipes for the new LLM based on the state of the computational resources and the found task
1010

1111

12-
eval "$(/home/yuiseki/miniconda3/bin/conda shell.bash hook)"
13-
export PATH="/home/yuiseki/miniconda3/bin:$PATH"
14-
conda activate peft
12+
# eval "$(/home/yuiseki/miniconda3/bin/conda shell.bash hook)"
13+
# export PATH="/home/yuiseki/miniconda3/bin:$PATH"
14+
# conda activate peft
1515

1616
# $1 = directory of recipes
1717
RECIPE_DIR=$1
@@ -48,10 +48,12 @@ echo "AVAILABLE_RECIPES: ${AVAILABLE_RECIPES[@]}"
4848
for RECIPE in $AVAILABLE_RECIPES; do
4949
TARGET_MODEL_NAME=$(cat $1$RECIPE | yq ".model_name")
5050
echo "TARGET_MODEL_NAME: $TARGET_MODEL_NAME"
51+
OUTPUT_BASE_DIR=$(cat $1$RECIPE | yq ".output_base_dir")
52+
echo "OUTPUT_BASE_DIR: $OUTPUT_BASE_DIR"
5153
# If recipe already trained, skip
5254
# If recipe already trained, directory like output/TARGET_MODEL_NAME are exists
5355
# If exists, skip
54-
if [ -d "output/$TARGET_MODEL_NAME" ]; then
56+
if [ -d "$OUTPUT_BASE_DIR/$TARGET_MODEL_NAME" ]; then
5557
echo "Skip $1$RECIPE"
5658
continue
5759
fi

scripts/available_gpu_num.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)