Spaces:
Sleeping
Sleeping
jwkirchenbauer
commited on
Commit
•
a485f37
1
Parent(s):
e8fd608
ensure required args
Browse files
app.py
CHANGED
@@ -17,20 +17,23 @@
|
|
17 |
from argparse import Namespace
|
18 |
args = Namespace()
|
19 |
|
20 |
-
arg_dict = {
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
args.__dict__.update(arg_dict)
|
|
|
17 |
from argparse import Namespace
|
18 |
args = Namespace()
|
19 |
|
20 |
+
arg_dict = {
|
21 |
+
'run_gradio': True,
|
22 |
+
'demo_public': False,
|
23 |
+
'model_name_or_path': 'facebook/opt-2.7b',
|
24 |
+
'prompt_max_length': None,
|
25 |
+
'max_new_tokens': 200,
|
26 |
+
'generation_seed': 123,
|
27 |
+
'use_sampling': True,
|
28 |
+
'sampling_temp': 0.7,
|
29 |
+
'use_gpu': True,
|
30 |
+
'seeding_scheme': 'markov_1',
|
31 |
+
'gamma': 0.25,
|
32 |
+
'delta': 2.0,
|
33 |
+
'normalizers': '',
|
34 |
+
'ignore_repeated_bigrams': False,
|
35 |
+
'detection_z_threshold': 4.0,
|
36 |
+
'select_green_tokens': True
|
37 |
}
|
38 |
|
39 |
args.__dict__.update(arg_dict)
|