Skip to content

Commit 7393e34

Browse files
provide helper script to create commands.jsonl
1 parent e861926 commit 7393e34

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

serverless-fleets/tutorials/inferencing/create-commands

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eu
33

44
truncate -s0 commands.jsonl
55

6-
batch_size=10
6+
batch_size=1000
77
idx=0
88
batch_idx=0
99

@@ -18,10 +18,9 @@ for f in ../../data/input/inferencing/recipes/*.json; do
1818
fi
1919

2020
file_in=$(basename "$f")
21-
file_out=${file_in%.*}.augmented.json
2221

2322
# echo "batch=$batch_idx idx=$idx file=$f"
24-
echo "/input/recipes/$file_in;/output/inferencing_$file_out" >> "../../data/input/inferencing/batches/$batch_idx.txt"
23+
echo "/input/recipes/${file_in}" >> "../../data/input/inferencing/batches/$batch_idx.txt"
2524

2625
done
2726

0 commit comments

Comments
 (0)