mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
GPU accel for rwkv is slow, disable it
This commit is contained in:
parent
e1a7042943
commit
ef3b8dc0d9
2 changed files with 4 additions and 46 deletions
|
@ -432,10 +432,10 @@ ModelLoadResult gpttype_load_model(const load_model_inputs inputs, FileFormat in
|
|||
{
|
||||
rwkv_ctx_v3 = rwkv_init_from_file(modelname.c_str(), n_threads);
|
||||
|
||||
if(inputs.gpulayers>0)
|
||||
{
|
||||
rwkv_gpu_offload_layers(rwkv_ctx_v3,inputs.gpulayers);
|
||||
}
|
||||
// if(inputs.gpulayers>0)
|
||||
// {
|
||||
// rwkv_gpu_offload_layers(rwkv_ctx_v3,inputs.gpulayers);
|
||||
// }
|
||||
|
||||
const struct rwkv_file_header & header = rwkv_ctx_v3->instance->model.header;
|
||||
const size_t n_vocab = header.n_vocab;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue