context : add get_ctx_padding()
ggml-ci
This commit is contained in:
parent
b4ec1d4429
commit
f0713498fd
3 changed files with 10 additions and 1 deletions
|
@ -64,6 +64,10 @@ llama_pos llama_context::pos_max() const {
|
|||
return kv_self.pos_max();
|
||||
}
|
||||
|
||||
uint32_t llama_context::get_ctx_padding(const llama_cparams & cparams) const {
|
||||
return kv_self.get_padding(cparams);
|
||||
}
|
||||
|
||||
// TODO: improve
|
||||
void llama_context::reset() {
|
||||
inp_tokens = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue