mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Potential fix for https://github.com/ebolam/KoboldAI/issues/295
This commit is contained in:
@@ -97,8 +97,9 @@ from tqdm.auto import tqdm
|
|||||||
old_init = tqdm.__init__
|
old_init = tqdm.__init__
|
||||||
def new_init(self, *args, **kwargs):
|
def new_init(self, *args, **kwargs):
|
||||||
old_init(self, *args, **kwargs)
|
old_init(self, *args, **kwargs)
|
||||||
if(self.ncols == 0 and kwargs.get("ncols") != 0):
|
if 'ncols' in kwargs:
|
||||||
self.ncols = 99
|
if(self.ncols == 0 and kwargs.get("ncols") != 0):
|
||||||
|
self.ncols = 99
|
||||||
tqdm.__init__ = new_init
|
tqdm.__init__ = new_init
|
||||||
|
|
||||||
# Fix some issues with the OPT tokenizer
|
# Fix some issues with the OPT tokenizer
|
||||||
|
Reference in New Issue
Block a user