Archived
clef: the head's rows bounded at 32768 prompt tokens, not the context
(cherry picked from commit fdc445a7cf1f6de620df6148d0482c8c795b2b27)
This commit is contained in:
1 parent
b1da6a28bd
commit
72d192dbf6
4 files changed
+24
-6
No files matched your search
@@ -134,6 +134,12 @@ TEST(bad_requests_are_400s) {
|
||||
/* The whole prompt must fit; nothing is cut. */
|
||||
CHECK(parse(tok, kBody, &r, &e, 100) < 0);
|
||||
CHECK_EQ(e.code, "context_length_exceeded");
|
||||
/* And it fits the head's own bound, whatever the context: a byte a token here. */
|
||||
const std::string huge = R"({"state": ")" + std::string(RAD_CLEF_MAX_PROMPT, 'x') +
|
||||
R"(", "questions": {"q": {"type": "noul"}}})";
|
||||
CHECK(parse(tok, huge, &r, &e, 0) < 0);
|
||||
CHECK_EQ(e.code, "context_length_exceeded");
|
||||
CHECK_EQ(e.n_ctx, (int64_t)RAD_CLEF_MAX_PROMPT);
|
||||
}
|
||||
|
||||
TEST(answers_are_softmaxes_in_the_releases_shape) {
|
||||
|
||||
Reference in new issue
Block a user