-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Labels
Description
Steps to reproduce
- Open the Launch Wizard using a simple template, e.g., the "Desktop IDE" template from https://github.com/dstackai/dstack-templates
- Click through the steps until the YAML editor opens up.
type: dev-environment ide: cursor resources: gpu: 0
- Update the configuration to include these resources:
type: dev-environment ide: cursor resources: gpu: 0 cpu: 1.. memory: 0.5GB.. disk: 0.5GB..
- Click "Apply"
Actual behaviour
resources in the configuration sent to the server are different from what was entered in the configuration editor.
{
"plan": {
"run_spec": {
"configuration": {
"type": "dev-environment",
"ide": "cursor",
"resources": {
"gpu": 0,
"cpu": 1
}
}
}
},
"force": false
}cpu: 1..becamecpu: 1memory: 0.5GB..was dropped (and was interpreted asmemory: 8GB..on the server)disk: 0.5GB..was dropped (and was interpreted asdisk: 100GB..on the server)
This configuration is just one example. Other examples of incorrect modifications:
cpu: 2..8becomescpu: 2cpu: 2:armbecomescpu: 2memory: ..24GBbecomesmemory: 24GB..disk: ..1000GBis droppedgpu: ..24GBbecomes"gpu":{"name":["..24GB"](is parsed asnameinstead ofmemory)gpu: 1:24GB:nvidia:a10becomes1:24GB:nvidia- etc
Expected behaviour
Resources are sent to the server as-is, without modification.
Overall, I would expect the entire configuration to be sent as-is. Not sure if there is a good reason to parse it and modify it on the frontend, introducing bugs and maintenance costs.
dstack version
0.20.13
Server logs
Additional information
No response
Reactions are currently unavailable