Skip to content

Commit

Permalink
Fix generation parameters test case
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Sep 16, 2023
1 parent 7a8306f commit 76cbd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/generation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Generation parameters', () => {
});

const tokens = generator.tokenizer.encode(outputs[0])
expect(tokens.length).toBeGreaterThanOrEqual(MIN_NEW_TOKENS + 1); // + 1 due to forced BOS token
expect(tokens.length).toBeGreaterThanOrEqual(MIN_NEW_TOKENS);
}

await generator.dispose();
Expand Down

0 comments on commit 76cbd7c

Please sign in to comment.