Skip to content

[UI] Make Launch to respect resources in templates #3642

Open
peterschmidt85 wants to merge 2 commits intomasterfrom
ui/launch-templates-resources
Open

[UI] Make Launch to respect resources in templates #3642
peterschmidt85 wants to merge 2 commits intomasterfrom
ui/launch-templates-resources

Conversation

@peterschmidt85
Copy link
Contributor

@peterschmidt85 peterschmidt85 commented Mar 9, 2026

Summary

  • Launch now reads template configuration.resources when a template is selected.

    • If template GPU is configured, GPU toggle starts enabled.
    • Offer filters are prefilled from template values (gpu_name, gpu_count, gpu_memory, backends, spot_policy).
  • GPU offer selection is now optional.

    • If GPU is enabled and no offer is chosen:
      • use template GPU config when present
      • otherwise set resources.gpu: \"1..\" in generated YAML.
    • If GPU is disabled in a resources-enabled template, generated YAML sets resources.gpu: 0.
  • Fixed Offers range parsing that produced invalid requests.

    • Open ranges now map correctly (1.., ..4, 24GB.., 40GB..80GB).
    • GPU memory filters now expect GB-qualified input and no longer coerce invalid forms.
  • Offers request failures are now visible in UI.

    • Instead of a silent empty list, the page shows backend validation errors.
  • Updated GPU toggle description copy to match the new flow.

    • OFF: Require GPU for this run.
    • ON: Choose a specific GPU offer, or let dstack select it automatically.

Andrey Cheptsov added 2 commits March 9, 2026 13:21
Allow GPU-enabled launches to proceed without selecting a specific offer by preserving template GPU settings or defaulting to `resources.gpu: 1..`, and improve Resources filtering/error handling and description copy.

Made-with: Cursor
Align the Launch form ide union with currently supported IDE options in UI by removing the unused `coder` variant.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant