Send Qwen VL sampling args so Recommend does not fail on missing top_k/top_p/min_p/repeat_penalty.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
"special_captioning_token": "",
|
||||
"seed": 0,
|
||||
"temperature": 0.6,
|
||||
"max_tokens": 4096
|
||||
"max_tokens": 4096,
|
||||
"top_k": 40,
|
||||
"top_p": 0.95,
|
||||
"min_p": 0.05,
|
||||
"repeat_penalty": 1.1
|
||||
},
|
||||
"class_type": "GGUF_VLM_ImageToText",
|
||||
"_meta": { "title": "GGUF VLM Image to Text" }
|
||||
|
||||
@@ -18,6 +18,10 @@ export function buildVisionPromptWorkflow(params: {
|
||||
graph[TEXT_NODE].inputs.system_prompt = params.systemPrompt
|
||||
graph[TEXT_NODE].inputs.prompt = params.draftPrompt
|
||||
graph[TEXT_NODE].inputs.seed = Number.isFinite(params.seed) ? Number(params.seed) : Math.floor(Math.random() * 2_147_483_647)
|
||||
graph[TEXT_NODE].inputs.top_k = 40
|
||||
graph[TEXT_NODE].inputs.top_p = 0.95
|
||||
graph[TEXT_NODE].inputs.min_p = 0.05
|
||||
graph[TEXT_NODE].inputs.repeat_penalty = 1.1
|
||||
}
|
||||
return graph
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user