try smaller batches

This commit is contained in:
Adam Wilson
2025-08-18 19:46:11 -06:00
parent 8c6230e0dc
commit 7b466d9bf2
751 changed files with 42 additions and 11 deletions
+42 -11
View File
@@ -7,20 +7,51 @@ models=(
"microsoft/Phi-3-mini-4k-instruct"
)
# Create base integration directory if it doesn't exist
# Function to generate random 10-digit number (not needed but kept for potential future use)
# generate_random_id() {
# echo $((RANDOM * RANDOM % 10000000000))
# }
# Create base logs directory if it doesn't exist
mkdir -p logs
# Iterate through test directories 1-5
for i in {0..4}; do
# Iterate through each model
for model in "${models[@]}"; do
# Replace / with
dir_name="${model//\//_}"
for i in {1..5}; do
echo "Creating test_${i} directories..."
# Create range directories from 1-2 to 99-100 (50 ranges total)
for start in {1..99..2}; do
end=$((start + 1))
range="${start}-${end}"
# Create the directory structure
mkdir -p "logs/test_${i}/${dir_name}"
echo "Created: logs/test_${i}/${dir_name}"
# Iterate through each model
for model in "${models[@]}"; do
# Replace / with _ and convert to lowercase for directory name
dir_name="${model//\//_}"
dir_name="${dir_name,,}" # Convert to lowercase
# Create the full directory path
full_path="logs/test_${i}/${dir_name}/${range}"
mkdir -p "${full_path}"
# Create placeholder JSON file
json_file="${full_path}/_.json"
touch "${json_file}"
echo "Created: ${json_file}"
done
done
done
echo "All directories created successfully!"
echo ""
echo "Summary:"
echo "- Created 5 test directories (test_1 through test_5)"
echo "- Created 50 range directories in each test (1-2, 3-4, ..., 99-100)"
echo "- Created 3 model directories in each range"
echo "- Created 1 JSON file in each model directory"
echo "- Total: $(find tests -name "*.json" | wc -l) JSON files created"
echo ""
echo "Example structure:"
echo "tests/logs/test_1/1-2/apple_openelm-3b-instruct/_.json"
echo "tests/logs/test_1/1-2/meta-llama_llama-3.2-3b-instruct/_.json"
echo "tests/logs/test_1/1-2/microsoft_phi-3-mini-4k-instruct/_.json"

Some files were not shown because too many files have changed in this diff Show More