fix: custom versin configs

This commit is contained in:
jialin
2025-10-13 14:40:26 +08:00
parent d393f9ee9e
commit caabeb065a
19 changed files with 289 additions and 894 deletions
+25 -8
View File
@@ -38,13 +38,6 @@ export const backendActions = [
icon: icons.EditOutlined,
locale: false
},
{
label: 'View Built-in Versions',
value: 'view_versions',
key: 'view_versions',
icon: icons.Version,
locale: false
},
{
label: 'Export YAML',
value: 'yaml',
@@ -123,6 +116,28 @@ export const backendFields = [
'version_configs',
'default_backend_parameters'
];
export const frameworks = [
{
label: 'CUDA',
value: 'cuda'
},
{
label: 'ROCm',
value: 'rocm'
},
{
label: 'CANN',
value: 'cann'
},
{
label: 'DTK',
value: 'dtk'
},
{
label: 'CoreX',
value: 'corex'
}
];
export const yamlTemplate = `# backend configuration template
backend_name: SGLang
@@ -134,9 +149,11 @@ version_configs:
v0.0.1:
image_name: lm/sglang
run_command: run sglang
custom_framework: cuda
v0.0.2:
image_name: lm/sglang
run_command: run sglang
run_command:
custom_framework:
default_backend_parameters:
- --host
`;