Improve Cookbook serve reliability

This commit is contained in:
pewdiepie-archdaemon
2026-06-01 11:43:08 +09:00
parent 058d32451c
commit c953c078e5
5 changed files with 33 additions and 5 deletions
+15
View File
@@ -293,6 +293,21 @@ export const ERROR_PATTERNS = [
}},
],
},
{
pattern: /Either a revision or a version must be specified|transformers\.integrations\.hub_kernels|kernels\/layer/i,
message: 'vLLM/Transformers kernel package mismatch.',
fixes: [
{ label: 'Update vLLM/Transformers/kernels', action: (panel) => {
const taskEl = panel.closest('.cookbook-task');
const task = taskEl ? _loadTasks().find(t => t.sessionId === taskEl.dataset.taskId) : null;
const host = task?.remoteHost || '';
const prefix = _buildEnvPrefix();
const pipCmd = prefix ? prefix + ' python3 -m pip install -U vllm transformers kernels' : 'python3 -m pip install -U vllm transformers kernels';
const cmd = host ? _sshCmd(host, pipCmd) : pipCmd;
_launchServeTask('update-vllm-stack', 'pip-update', cmd);
}},
],
},
{
pattern: /ollama.*command not found/i,
message: 'Ollama is not installed on this server. Run: curl -fsSL https://ollama.com/install.sh | sh',
-4
View File
@@ -2158,10 +2158,6 @@ async function _reconnectTask(el, task) {
task._serveReady = true;
_updateTask(task.sessionId, { _serveReady: true });
}
if (!task._serveReady && task.ts && (Date.now() - task.ts) > 300000) {
task._serveReady = true;
_updateTask(task.sessionId, { _serveReady: true });
}
if (info.phase) {
badge.textContent = info.phase;
// Always the green "running" style — loading/warming is the same