mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Don't print torch tensors with --verbose
This commit is contained in:
parent
cf820c69c5
commit
b8a0b3f925
@ -346,7 +346,8 @@ def generate_reply_HF(question, original_question, seed, state, stopping_strings
|
|||||||
|
|
||||||
if shared.args.verbose:
|
if shared.args.verbose:
|
||||||
logger.info("GENERATE_PARAMS=")
|
logger.info("GENERATE_PARAMS=")
|
||||||
pprint.PrettyPrinter(indent=4, sort_dicts=False).pprint(generate_params)
|
filtered_params = {key: value for key, value in generate_params.items() if not isinstance(value, torch.Tensor)}
|
||||||
|
pprint.PrettyPrinter(indent=4, sort_dicts=False).pprint(filtered_params)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user