This repository was archived by the owner on Oct 9, 2024. It is now read-only.
File tree 2 files changed +14
-14
lines changed 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pycqa/isort
3
- rev : 5.10.1
3
+ rev : 5.12.0
4
4
hooks :
5
5
- id : isort
6
6
name : isort (python)
7
7
- repo : https://github.com/psf/black
8
- rev : 22.8 .0
8
+ rev : 23.1 .0
9
9
hooks :
10
10
- id : black
11
11
args : [--line-length=119,--target-version=py35]
Original file line number Diff line number Diff line change @@ -10,24 +10,24 @@ class BaseResponse(BaseModel):
10
10
11
11
class GenerateRequest (BaseModel ):
12
12
text : List [str ] = None
13
- min_length : int = None
14
- do_sample : bool = None
15
- early_stopping : bool = None
16
- temperature : float = None
17
- top_k : int = None
18
- top_p : float = None
19
- typical_p : float = None
20
- repetition_penalty : float = None
13
+ min_length : int = 0
14
+ do_sample : bool = False
15
+ early_stopping : bool = False
16
+ temperature : float = 1
17
+ top_k : int = 50
18
+ top_p : float = 1
19
+ typical_p : float = 1
20
+ repetition_penalty : float = 1
21
21
bos_token_id : int = None
22
22
pad_token_id : int = None
23
23
eos_token_id : int = None
24
- length_penalty : float = None
25
- no_repeat_ngram_size : int = None
26
- encoder_no_repeat_ngram_size : int = None
24
+ length_penalty : float = 1
25
+ no_repeat_ngram_size : int = 0
26
+ encoder_no_repeat_ngram_size : int = 0
27
27
max_time : float = None
28
28
max_new_tokens : int = None
29
29
decoder_start_token_id : int = None
30
- diversity_penalty : float = None
30
+ diversity_penalty : float = 0
31
31
forced_bos_token_id : int = None
32
32
forced_eos_token_id : int = None
33
33
exponential_decay_length_penalty : float = None
You can’t perform that action at this time.
0 commit comments