-
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.
- Loading branch information
Showing
5 changed files
with
135 additions
and
3 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
3 changes: 3 additions & 0 deletions
3
pre_experiments/restart_all_experiments_llama3_1_8b_instruct_fp16.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/bin/bash | ||
|
||
unset http_proxy | ||
unset https_proxy | ||
|
||
# Collect all parameters | ||
ARGS=("$@") | ||
|
||
|
41 changes: 41 additions & 0 deletions
41
pre_experiments/restart_all_experiments_llama3_8b_instruct_fp16.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,41 @@ | ||
#!/bin/bash | ||
|
||
unset http_proxy | ||
unset https_proxy | ||
|
||
# Collect all parameters | ||
ARGS=("$@") | ||
|
||
# Define the base command | ||
CMD="python all_experiments.py --model_name llama3:8b-instruct-fp16" | ||
|
||
# Check if --sample_num parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --sample_num ]]; then | ||
SAMPLE_NUM=${ARGS[$((i+1))]} | ||
CMD="$CMD --sample_num $SAMPLE_NUM" | ||
break | ||
fi | ||
done | ||
|
||
# Check if --dataset_name parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --dataset_name ]]; then | ||
DATASET_NAME=${ARGS[$((i+1))]} | ||
CMD="$CMD --dataset_name $DATASET_NAME" | ||
break | ||
fi | ||
done | ||
|
||
echo "CMD: $CMD" | ||
|
||
# Infinite loop | ||
while true; do | ||
# Execute the command | ||
$CMD | ||
# Output termination message | ||
echo "Program terminated, restarting..." | ||
# Pause before restarting; adjust as needed | ||
sleep 30 | ||
break | ||
done |
41 changes: 41 additions & 0 deletions
41
pre_experiments/restart_all_experiments_qwen2_1.5b_instruct_fp16.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,41 @@ | ||
#!/bin/bash | ||
|
||
unset http_proxy | ||
unset https_proxy | ||
|
||
# Collect all parameters | ||
ARGS=("$@") | ||
|
||
# Define the base command | ||
CMD="python all_experiments.py --model_name qwen2:1.5b-instruct-fp16" | ||
|
||
# Check if --sample_num parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --sample_num ]]; then | ||
SAMPLE_NUM=${ARGS[$((i+1))]} | ||
CMD="$CMD --sample_num $SAMPLE_NUM" | ||
break | ||
fi | ||
done | ||
|
||
# Check if --dataset_name parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --dataset_name ]]; then | ||
DATASET_NAME=${ARGS[$((i+1))]} | ||
CMD="$CMD --dataset_name $DATASET_NAME" | ||
break | ||
fi | ||
done | ||
|
||
echo "CMD: $CMD" | ||
|
||
# Infinite loop | ||
while true; do | ||
# Execute the command | ||
$CMD | ||
# Output termination message | ||
echo "Program terminated, restarting..." | ||
# Pause before restarting; adjust as needed | ||
sleep 30 | ||
break | ||
done |
41 changes: 41 additions & 0 deletions
41
pre_experiments/restart_all_experiments_qwen2_7b_instruct_fp16.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,41 @@ | ||
#!/bin/bash | ||
|
||
unset http_proxy | ||
unset https_proxy | ||
|
||
# Collect all parameters | ||
ARGS=("$@") | ||
|
||
# Define the base command | ||
CMD="python all_experiments.py --model_name qwen2:7b-instruct-fp16" | ||
|
||
# Check if --sample_num parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --sample_num ]]; then | ||
SAMPLE_NUM=${ARGS[$((i+1))]} | ||
CMD="$CMD --sample_num $SAMPLE_NUM" | ||
break | ||
fi | ||
done | ||
|
||
# Check if --dataset_name parameter is provided | ||
for ((i=0; i < ${#ARGS[@]}; i++)); do | ||
if [[ ${ARGS[$i]} == --dataset_name ]]; then | ||
DATASET_NAME=${ARGS[$((i+1))]} | ||
CMD="$CMD --dataset_name $DATASET_NAME" | ||
break | ||
fi | ||
done | ||
|
||
echo "CMD: $CMD" | ||
|
||
# Infinite loop | ||
while true; do | ||
# Execute the command | ||
$CMD | ||
# Output termination message | ||
echo "Program terminated, restarting..." | ||
# Pause before restarting; adjust as needed | ||
sleep 30 | ||
break | ||
done |