Skip to content

Commit

Permalink
chore: run on ubuntu supercharged
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Apr 14, 2024
1 parent a1b6630 commit 1ad0705
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
Run:
name: Run
runs-on: ubuntu-latest
runs-on: ubuntu-supercharged

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion src/backoff.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export async function backoff(action, maxRetries = 5, initialDelay = 15) {
export async function backoff(action, maxRetries = 6, initialDelay = 15) {
let retries = 0;
let delay = initialDelay;

Expand Down
4 changes: 2 additions & 2 deletions src/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function runFullChallenge(systemPrompt, runs = 50, batchSize = 1) {
console.table({ Test, Correct, Accuracy });
console.log();

const waitTime = Math.max(0, 60 - (Date.now() - startTime) / 1000);
const waitTime = 60;
console.log(`${waitTime} second cooldown...`);
await new Promise(resolve => setTimeout(resolve, waitTime * 1000))
}
Expand All @@ -126,5 +126,5 @@ async function runFullChallenge(systemPrompt, runs = 50, batchSize = 1) {
console.log();
}

await runFullChallenge(prompt, 400, 8);
await runFullChallenge(prompt, 400, 6);
// await writeFile(`./users/${USER}/log.txt`, OUTPUT);

0 comments on commit 1ad0705

Please sign in to comment.