You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/main/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ By performing a non-linear transformation on token logits, we can effectively av
309
309
310
310
`smoothing curve` is a second hyperparameter that adds a cubic transformation on top of the original quadratic one, and can "help make lower `smoothing factor` values work if the curve is set higher. A smoothing curve value of `1.0` is equivalant of using just quadratic transformation.
311
311
312
-
This sampler is not mutually exclusive with Temperature, they can be used together.
312
+
This sampler is not mutually exclusive with Temperature, they can be used together.
Copy file name to clipboardExpand all lines: tools/server/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ The project is under active development, and we are [looking for feedback and co
105
105
106
106
| Argument | Explanation |
107
107
| -------- | ----------- |
108
-
|`--samplers SAMPLERS`| samplers that will be used for generation in the order, separated by ';'<br/>(default: penalties;dry;top_n_sigma;top_k;typ_p;top_p;min_p;xtc;temperature) |
108
+
|`--samplers SAMPLERS`| samplers that will be used for generation in the order, separated by ';'<br/>(default: penalties;dry;top_n_sigma;top_k;typ_p;top_p;min_p;xtc;smoothing;temperature) |
109
109
|`-s, --seed SEED`| RNG seed (default: -1, use random seed for -1) |
110
110
|`--sampling-seq, --sampler-seq SEQUENCE`| simplified sequence for samplers that will be used (default: edskypmxt) |
111
111
|`--ignore-eos`| ignore end of stream token and continue generating (implies --logit-bias EOS-inf) |
@@ -483,7 +483,7 @@ These words will not be included in the completion, so make sure to add them to
483
483
484
484
`return_tokens`: Return the raw generated token ids in the `tokens` field. Otherwise `tokens` remains empty. Default: `false`
485
485
486
-
`samplers`: The order the samplers should be applied in. An array of strings representing sampler type names. If a sampler is not set, it will not be used. If a sampler is specified more than once, it will be applied multiple times. Default: `["dry", "top_k", "typ_p", "top_p", "min_p", "xtc", "temperature"]` - these are all the available values.
486
+
`samplers`: The order the samplers should be applied in. An array of strings representing sampler type names. If a sampler is not set, it will not be used. If a sampler is specified more than once, it will be applied multiple times. Default: `["dry", "top_k", "typ_p", "top_p", "min_p", "xtc", "smoothing", "temperature"]` - these are all the available values.
487
487
488
488
`timings_per_token`: Include prompt processing and text generation speed information in each response. Default: `false`
489
489
@@ -732,6 +732,8 @@ This endpoint is public (no API key check). By default, it is read-only. To make
732
732
"min_p": 0.05000000074505806,
733
733
"xtc_probability": 0.0,
734
734
"xtc_threshold": 0.10000000149011612,
735
+
"smoothing_factor": 0.0,
736
+
"smoothing_curve": 1.0,
735
737
"typical_p": 1.0,
736
738
"repeat_last_n": 64,
737
739
"repeat_penalty": 1.0,
@@ -766,6 +768,7 @@ This endpoint is public (no API key check). By default, it is read-only. To make
Copy file name to clipboardExpand all lines: tools/server/public_legacy/index-new.html
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@
48
48
min_p: 0.05,// 0 = disabled; recommended for non-english: ~ 0.4
49
49
xtc_probability: 0.0,// 0 = disabled;
50
50
xtc_threshold: 0.1,// > 0.5 disables XTC;
51
+
smoothing_factor: 0.0,// 0 = disabled;
52
+
smoothing_curve: 1.0,// > 0.5 = disabled
51
53
typical_p: 1.0,// 1.0 = disabled
52
54
presence_penalty: 0.0,// 0.0 = disabled
53
55
frequency_penalty: 0.0,// 0.0 = disabled
@@ -841,6 +843,8 @@
841
843
${FloatField({label: "Typical-P",title: "Activates local typical sampling, a method used to limit the prediction of tokens that are atypical in the current context. The parameter p controls the strength of this limitation. A value of 1.0 means that this function is deactivated.",max: 1.0,min: 0.0,name: "typical_p",step: 0.01,value: params.value.typical_p})}
842
844
${FloatField({label: "XTC probability",title: "Sets the chance for token removal (checked once on sampler start)",max: 1.0,min: 0.0,name: "xtc_probability",step: 0.01,value: params.value.xtc_probability})}
843
845
${FloatField({label: "XTC threshold",title: "Sets a minimum probability threshold for tokens to be removed",max: 0.5,min: 0.0,name: "xtc_threshold",step: 0.01,value: params.value.xtc_threshold})}
apiKey: 'Set the API Key if you are using --api-key option for the server.',
45
47
systemMessage: 'The starting message that defines how model should behave.',
46
48
samplers:
47
-
'The order at which samplers are applied, in simplified way. Default is "dkypmxt": dry->top_k->typ_p->top_p->min_p->xtc->temperature',
49
+
'The order at which samplers are applied, in simplified way. Default is "dkypmxqt": dry->top_k->typ_p->top_p->min_p->xtc->smoothing->temperature',
48
50
temperature:
49
51
'Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.',
0 commit comments