jwkirchenbauer commited on
Commit
a485f37
1 Parent(s): e8fd608

ensure required args

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -17,20 +17,23 @@
17
  from argparse import Namespace
18
  args = Namespace()
19
 
20
- arg_dict = {
21
- "run_gradio": True,
22
- "model_name_or_path": "facebook/opt-125m",
23
- # "model_name_or_path": "facebook/opt-1.3b",
24
- # "model_name_or_path": "facebook/opt-2.7b",
25
- "max_new_tokens": 200,
26
- "use_sampling": True,
27
- "sampling_temp": 0.7,
28
- "use_gpu": True,
29
- "seeding_scheme": "markov_1",
30
- "gamma": 0.25,
31
- "delta": 2.0,
32
- "normalizers": "",
33
- "ignore_repeated_bigrams": False,
 
 
 
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)