mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
fixed rwkv, standardized new ctx usage
This commit is contained in:
parent
2827920044
commit
523fc3be52
8 changed files with 27 additions and 8 deletions
|
@ -221,4 +221,16 @@ bool should_transpose_layer(std::string name)
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static std::vector<uint8_t> kcpp_compute_buf;
|
||||
void kcpp_graph_compute_helper(ggml_cgraph *graph, int n_threads)
|
||||
{
|
||||
struct ggml_cplan plan = ggml_graph_plan(graph, n_threads);
|
||||
if (plan.work_size > 0)
|
||||
{
|
||||
kcpp_compute_buf.resize(plan.work_size);
|
||||
plan.work_data = kcpp_compute_buf.data();
|
||||
}
|
||||
ggml_graph_compute(graph, &plan);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue