mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Improve SuperboogaV2 with Date/Time Embeddings, GPU Support, and Multiple File Formats (#6748)
This commit is contained in:
parent
12f6f7ba9f
commit
01f20d2d9f
8 changed files with 227 additions and 38 deletions
|
|
@ -39,11 +39,11 @@ def _markdown_hyperparams():
|
|||
# Convert numpy types to python types.
|
||||
def _convert_np_types(params):
|
||||
for key in params:
|
||||
if type(params[key]) == np.bool_:
|
||||
if isinstance(params[key], np.bool_):
|
||||
params[key] = bool(params[key])
|
||||
elif type(params[key]) == np.int64:
|
||||
elif isinstance(params[key], np.int64):
|
||||
params[key] = int(params[key])
|
||||
elif type(params[key]) == np.float64:
|
||||
elif isinstance(params[key], np.float64):
|
||||
params[key] = float(params[key])
|
||||
return params
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue