Skip to content

Commit

Permalink
Use 50 max tokens for function calls (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti authored Jul 29, 2024
1 parent 8b26212 commit 358cd72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:
# Pre-warm any spun-down instances (only audio right now)
curl -f -X POST "https://ai-benchmarks.fly.dev/bench?mode=audio&max_tokens=20&num_requests=1"
# Run the benchmarks
declare -A max_tokens=(
["tools"]=50
)
default_max_tokens=20
regions=("sea" "iad" "cdg")
media=("text" "tools" "image" "audio")
for region in "${regions[@]}"; do
for medium in "${media[@]}"; do
curl -f -X POST "https://ai-benchmarks.fly.dev/bench?mode=$medium&max_tokens=20&spread=30&store" -H "fly-prefer-region: $region"
max_tokens=${max_tokens[$medium]:-$default_max_tokens}
curl -f -X POST "https://ai-benchmarks.fly.dev/bench?mode=$medium&max_tokens=$max_tokens&spread=30&store" -H "fly-prefer-region: $region"
done
done

0 comments on commit 358cd72

Please sign in to comment.