likhonhfai commited on
Commit
0164e2d
·
verified ·
1 Parent(s): 09cac41

Create generation_config.json

Browse files
Files changed (1) hide show
  1. generation_config.json +18 -0
generation_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_sample": true,
3
+ "temperature": 0.1,
4
+ "top_p": 0.95,
5
+ "top_k": 40,
6
+ "max_new_tokens": 2048,
7
+ "repetition_penalty": 1.1,
8
+ "pad_token_id": 0,
9
+ "bos_token_id": 1,
10
+ "eos_token_id": 2,
11
+ "stop_strings": ["```", "# End of code", "\n\n\n"],
12
+ "code_generation": {
13
+ "preserve_indentation": true,
14
+ "handle_imports": true,
15
+ "generate_comments": true,
16
+ "syntax_validation": true
17
+ }
18
+ }