mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Fix CFG with llamacpp_HF
This commit is contained in:
parent
5f7dbf454a
commit
c203c57c18
@ -57,7 +57,7 @@ class LlamacppHF(PreTrainedModel):
|
||||
'n_tokens': self.model.n_tokens,
|
||||
'input_ids': self.model.input_ids.copy(),
|
||||
'scores': self.model.scores.copy(),
|
||||
'ctx': llama_cpp_lib().llama_new_context_with_model(model.model, model.context_params)
|
||||
'ctx': llama_cpp_lib()._internals._LlamaContext(model=model._model, params=model.context_params)
|
||||
}
|
||||
|
||||
def _validate_model_class(self):
|
||||
|
Loading…
Reference in New Issue
Block a user