Spaces:
Runtime error
Runtime error
default values for kwargs
Browse files- utils/generation.py +2 -2
utils/generation.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import TextIteratorStreamer
|
2 |
from threading import Thread
|
3 |
-
from
|
4 |
|
5 |
-
def combine_generation_kwargs(temperature, max_new_tokens, top_p, repetition_penalty):
|
6 |
"""
|
7 |
Combines the generation kwargs into a single dict.
|
8 |
"""
|
|
|
1 |
from transformers import TextIteratorStreamer
|
2 |
from threading import Thread
|
3 |
+
from .tree_utils import get_docstrings, grab_before_comments
|
4 |
|
5 |
+
def combine_generation_kwargs(temperature=2.0, max_new_tokens=512, top_p=0.95, repetition_penalty=1.2):
|
6 |
"""
|
7 |
Combines the generation kwargs into a single dict.
|
8 |
"""
|