mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Remove debug statements
This commit is contained in:
parent
3f5d8a05b5
commit
203783a58c
@ -546,10 +546,8 @@ def get_logits_processor_patch(self, **kwargs):
|
|||||||
|
|
||||||
# Return a large value if class name is not mapped or if the mapped nickname is not in priority
|
# Return a large value if class name is not mapped or if the mapped nickname is not in priority
|
||||||
if class_name not in class_name_to_nickname or class_name_to_nickname[class_name] not in sampler_priority:
|
if class_name not in class_name_to_nickname or class_name_to_nickname[class_name] not in sampler_priority:
|
||||||
print("======>", class_name, "inf")
|
|
||||||
return float('inf')
|
return float('inf')
|
||||||
|
|
||||||
print("======>", class_name, sampler_priority.index(class_name_to_nickname[class_name]))
|
|
||||||
# Return the index of the nickname in the priority list for sorting
|
# Return the index of the nickname in the priority list for sorting
|
||||||
return sampler_priority.index(class_name_to_nickname[class_name])
|
return sampler_priority.index(class_name_to_nickname[class_name])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user