🐛fix: remove sampling parameters from llamacpp extension (#5871)
This commit is contained in:
parent
fd26270e78
commit
43b7eb6e18
@ -10,11 +10,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "auto_update_engine",
|
"key": "auto_update_engine",
|
||||||
"title": "Auto update engine",
|
"title": "Auto update engine",
|
||||||
"description": "Automatically update llamacpp engine to latest version",
|
"description": "Automatically update llamacpp engine to latest version",
|
||||||
"controllerType": "checkbox",
|
"controllerType": "checkbox",
|
||||||
"controllerProps": { "value": true }
|
"controllerProps": { "value": true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "auto_unload_models",
|
"key": "auto_unload_models",
|
||||||
@ -24,16 +24,16 @@
|
|||||||
"controllerProps": { "value": true }
|
"controllerProps": { "value": true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "chat_template",
|
"key": "chat_template",
|
||||||
"title": "Custom Jinja Chat template",
|
"title": "Custom Jinja Chat template",
|
||||||
"description": "Custom Jinja chat_template to be used for the model",
|
"description": "Custom Jinja chat_template to be used for the model",
|
||||||
"controllerType": "input",
|
"controllerType": "input",
|
||||||
"controllerProps": {
|
"controllerProps": {
|
||||||
"value": "",
|
"value": "",
|
||||||
"placeholder": "e.g., {% for message in messages %}...{% endfor %} (default is read from GGUF)",
|
"placeholder": "e.g., {% for message in messages %}...{% endfor %} (default is read from GGUF)",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"textAlign": "right"
|
"textAlign": "right"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "threads",
|
"key": "threads",
|
||||||
@ -72,13 +72,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "context_shift",
|
"key": "context_shift",
|
||||||
"title": "Context Shift",
|
"title": "Context Shift",
|
||||||
"description": "Allow model to cut text in the beginning to accommodate new text in its memory",
|
"description": "Allow model to cut text in the beginning to accommodate new text in its memory",
|
||||||
"controllerType": "checkbox",
|
"controllerType": "checkbox",
|
||||||
"controllerProps":{
|
"controllerProps": {
|
||||||
"value": false
|
"value": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "n_predict",
|
"key": "n_predict",
|
||||||
@ -317,118 +317,6 @@
|
|||||||
"step": 0.01
|
"step": 0.01
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"key": "temp",
|
|
||||||
"title": "Temperature",
|
|
||||||
"description": "Temperature for sampling (higher = more random).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 0.8,
|
|
||||||
"placeholder": "0.8",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "top_k",
|
|
||||||
"title": "Top K",
|
|
||||||
"description": "Top-K sampling (0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 40,
|
|
||||||
"placeholder": "40",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "top_p",
|
|
||||||
"title": "Top P",
|
|
||||||
"description": "Top-P sampling (1.0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 0.9,
|
|
||||||
"placeholder": "0.9",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"max": 1.0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "min_p",
|
|
||||||
"title": "Min P",
|
|
||||||
"description": "Min-P sampling (0.0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 0.1,
|
|
||||||
"placeholder": "0.1",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"max": 1.0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "repeat_last_n",
|
|
||||||
"title": "Repeat Last N",
|
|
||||||
"description": "Number of tokens to consider for repeat penalty (0 = disabled, -1 = ctx_size).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 64,
|
|
||||||
"placeholder": "64",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": -1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "repeat_penalty",
|
|
||||||
"title": "Repeat Penalty",
|
|
||||||
"description": "Penalize repeating token sequences (1.0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 1.0,
|
|
||||||
"placeholder": "1.0",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "presence_penalty",
|
|
||||||
"title": "Presence Penalty",
|
|
||||||
"description": "Repeat alpha presence penalty (0.0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 0.0,
|
|
||||||
"placeholder": "0.0",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "frequency_penalty",
|
|
||||||
"title": "Frequency Penalty",
|
|
||||||
"description": "Repeat alpha frequency penalty (0.0 = disabled).",
|
|
||||||
"controllerType": "input",
|
|
||||||
"controllerProps": {
|
|
||||||
"value": 0.0,
|
|
||||||
"placeholder": "0.0",
|
|
||||||
"type": "number",
|
|
||||||
"textAlign": "right",
|
|
||||||
"min": 0,
|
|
||||||
"step": 0.01
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"key": "mirostat",
|
"key": "mirostat",
|
||||||
"title": "Mirostat Mode",
|
"title": "Mirostat Mode",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user