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
@@ -151,7 +151,10 @@ inline int ClefHead::declare(RadBuilder* b, const RadModelMeta* meta, const RadB
|
||||
if (E % 2) return RAD_E_INVAL;
|
||||
bs = rad_kv_block_size(b, kv_trunk);
|
||||
if (bs <= 0) return RAD_E_STATE;
|
||||
nblk = (g.max_ctx + bs - 1) / bs;
|
||||
/* Rows a request may hold: the context, or the head's own bound where that is less (the
|
||||
* server refuses a longer prompt before it is admitted). */
|
||||
const int64_t rows = g.max_ctx < RAD_CLEF_MAX_PROMPT ? g.max_ctx : RAD_CLEF_MAX_PROMPT;
|
||||
nblk = (rows + bs - 1) / bs;
|
||||
NM = nblk * bs;
|
||||
n_vocab = g.n_vocab;
|
||||
layer = bind_layer;
|
||||
|
||||
Reference in new issue
Block a user