|
43 | 43 | top_k: 0, // <= 0 to use vocab size |
44 | 44 | top_p: 1.0, // 1.0 = disabled |
45 | 45 | min_p: 0.05, // 0 = disabled; recommended for non-english: ~ 0.4 |
| 46 | + xtc_probability: 0.0, // 0 = disabled; |
| 47 | + xtc_threshold: 0.1, // 0.5 = disabled; |
| 48 | + xtc_threshold_max: 1.0, // 0 = disabled; |
46 | 49 | tfs_z: 1.0, // 1.0 = disabled |
47 | 50 | typical_p: 1.0, // 1.0 = disabled |
48 | 51 | presence_penalty: 0.0, // 0.0 = disabled |
|
836 | 839 | ${FloatField({ label: "TFS-Z", title: "Activates tail-free sampling, a method used to limit the prediction of tokens that are too frequent. The parameter z controls the strength of this limitation. A value of 1.0 means that this function is deactivated.", max: 1.0, min: 0.0, name: "tfs_z", step: 0.01, value: params.value.tfs_z })} |
837 | 840 | ${FloatField({ label: "Frequency Penalty", title: "A penalty that is applied based on the frequency with which certain tokens occur in the training data set. A higher value results in rare tokens being favoured.", max: 1.0, min: 0.0, name: "frequency_penalty", step: 0.01, value: params.value.frequency_penalty })} |
838 | 841 | ${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 | + ${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 | + ${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 })} |
| 844 | + ${FloatField({ label: "XTC max threshold", title: "Sets a maximum probability threshold for tokens to be removed (highly experimental)", max: 1.0, min: 0.0, name: "xtc_threshold_max", step: 0.01, value: params.value.xtc_threshold_max })} |
839 | 845 | ${IntField({ label: "Min Keep", title: "If greater than 0, samplers are forced to return N possible tokens at minimum. Default is 0", max: 10, min: 0, name: "min_keep", value: params.value.min_keep })} |
840 | 846 | </fieldset> |
841 | 847 |
|
@@ -1132,6 +1138,9 @@ <h2>llama.cpp</h2> |
1132 | 1138 | const snapSettings = { |
1133 | 1139 | temperature: { snapValue: 1.0, snapRangeMultiplier: 6 }, |
1134 | 1140 | min_p: { snapValue: 0.05, snapRangeMultiplier: 2 }, |
| 1141 | + xtc_probability: { snapValue: 0.0, snapRangeMultiplier: 4 }, |
| 1142 | + xtc_threshold: { snapValue: 0.5, snapRangeMultiplier: 4 }, |
| 1143 | + xtc_threshold_max: { snapValue: 1.0, snapRangeMultiplier: 4 }, |
1135 | 1144 | top_p: { snapValue: 1.0, snapRangeMultiplier: 4 }, |
1136 | 1145 | tfs_z: { snapValue: 1.0, snapRangeMultiplier: 4 }, |
1137 | 1146 | typical_p: { snapValue: 1.0, snapRangeMultiplier: 4 }, |
|
0 commit comments