File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3983,7 +3983,8 @@ struct ggml_tensor * ggml_new_tensor_impl(
3983
3983
};
3984
3984
} else {
3985
3985
if (ctx -> scratch .offs + size_needed > ctx -> scratch .size ) {
3986
- GGML_PRINT ("%s: not enough space in the scratch memory\n" , __func__ );
3986
+ GGML_PRINT ("%s: not enough space in the scratch memory pool (needed %zu, available %zu)\n" ,
3987
+ __func__ , ctx -> scratch .offs + size_needed , ctx -> scratch .size );
3987
3988
assert (false);
3988
3989
return NULL ;
3989
3990
}
Original file line number Diff line number Diff line change @@ -418,10 +418,10 @@ bool starcoder_eval(
418
418
419
419
// use 2 scratch buffers
420
420
// TODO: very hacky solution - reimplement in a more elegant way
421
- static size_t scr0_size = 128u *1024 *1024 ;
421
+ static size_t scr0_size = 256u *1024 *1024 ;
422
422
static void * scr0 = malloc (scr0_size);
423
423
424
- static size_t scr1_size = 128u *1024 *1024 ;
424
+ static size_t scr1_size = 256u *1024 *1024 ;
425
425
static void * scr1 = malloc (scr1_size);
426
426
427
427
if (mem_per_token > 0 && mem_per_token*N > buf_size) {
You can’t perform that action at this time.
0 commit comments