<commit_before>#! /usr/bin/env bash
set -eu

PROCS=$1
EXP_ID=$2
MODEL_NAME=$3

THIS=$( cd $( dirname $0 ) ; /bin/pwd )
ROOT="$THIS/.."
EXP_DIR="$ROOT/experiments/$EXP_ID"
PBT_PY="$ROOT/python/pbt.py"

BENCHMARKS=$HOME/Documents/repos/Benchmarks
SUPERVISOR=$( cd "$PWD/../../.."  ; /bin/pwd )

PYTHONPATH=$BENCHMARKS/Pilot1/common
PYTHONPATH+=":$BENCHMARKS/common"
PYTHONPATH+=":$SUPERVISOR/workflows/common/python"
PYTHONPATH+=":$ROOT/models/TC1"

export PYTHONPATH=$PYTHONPATH

mkdir -p $EXP_DIR

PARAMS_FILE=$4
cp $ROOT/data/$PARAMS_FILE $EXP_DIR/
cd $EXP_DIR

mpirun -n $PROCS python $PBT_PY $PARAMS_FILE $EXP_DIR tc1 $EXP_ID

cd $THIS<commit_msg>Fixed path<commit_after>#! /usr/bin/env bash
set -eu

PROCS=$1
EXP_ID=$2
MODEL_NAME=$3

THIS=$( cd $( dirname $0 ) ; /bin/pwd )
ROOT="$THIS/.."
EXP_DIR="$ROOT/experiments/$EXP_ID"
PBT_PY="$ROOT/python/pbt.py"

BENCHMARKS=$HOME/Documents/repos/Benchmarks
SUPERVISOR=$( cd "$PWD/../../.."  ; /bin/pwd )

PYTHONPATH=$BENCHMARKS/Pilot1/common
PYTHONPATH+=":$BENCHMARKS/common"
PYTHONPATH+=":$SUPERVISOR/workflows/common/python"
PYTHONPATH+=":$ROOT/models/tc1"

export PYTHONPATH=$PYTHONPATH

mkdir -p $EXP_DIR

PARAMS_FILE=$4
cp $ROOT/data/$PARAMS_FILE $EXP_DIR/
cd $EXP_DIR

mpirun -n $PROCS python $PBT_PY $PARAMS_FILE $EXP_DIR tc1 $EXP_ID

cd $THIS
{'fraction_non_alphanumeric': 0.18350038550501158, 'fraction_numerical': 0.01233616037008481, 'mean_word_length': 5.240384615384615, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3001828', 'n_tokens_mistral': 606, 'n_tokens_neox': 581, 'n_words': 94}