bugfix in gpt-j model

This commit is contained in:
Saifeddine ALOUI 2023-04-20 19:45:35 +02:00
parent 7472ccef19
commit ac3f6e430f

View File

@ -48,7 +48,7 @@ class GPT_J(GPTBackend):
"""
self.model.generate(
prompt,
new_text_callback=new_text_callback,
#new_text_callback=new_text_callback,
n_predict=n_predict,
temp=self.config['temp'],
top_k=self.config['top_k'],
@ -58,3 +58,4 @@ class GPT_J(GPTBackend):
n_threads=self.config['n_threads'],
verbose=verbose
)
new_text_callback()