Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

peterschmidt85
Copy link
Contributor

@peterschmidt85 peterschmidt85 commented Aug 15, 2025

As a part of #2142

  • Added api/project/<project name>/gpus/list that accepts a run_spec (similar to api/project/<project name>/runs/get_plan used in dstack offer) + group_by. The group_by property is a list accepting backend, region, and count. This API will be used by both CLI (dstack list gpu) UI (the Offers page)
  • Added --group-by to dstack offer provide aggregated information.

@peterschmidt85 peterschmidt85 changed the title [Feature]: Allow listing available key resources such as gpu, region, and backends [Feature]: Add dstack list gpu that aggregates offers information Aug 16, 2025
@peterschmidt85 peterschmidt85 marked this pull request as ready for review August 18, 2025 07:31
r4victor

This comment was marked as resolved.

@r4victor

This comment was marked as resolved.

… and backends #2142 (WIP)

Renamed `dstack list gpu` to `dstack gpu`
… and backends #2142 (WIP)

Moved the /gpus API to a separate routing; also moved GPU-related logic from runs.
@peterschmidt85 peterschmidt85 changed the title [Feature]: Add dstack list gpu that aggregates offers information [Feature]: Add dstack gpu that aggregates offers information Aug 18, 2025
… and backends #2142

Fixed group_by bug; also added validation (disallow grouping by region without backend)
… and backends #2142

Show an error if unknown arg is passed to `dstack gpu`

@pytest.mark.asyncio
@pytest.mark.parametrize("test_db", ["sqlite", "postgres"], indirect=True)
async def test_exact_aggregation_values(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how maintainable this test is but ok

… and backends #2142

Merged `dstack gpu` to `dstack offer`
@peterschmidt85 peterschmidt85 changed the title [Feature]: Add dstack gpu that aggregates offers information [Feature]: Allow dstack offer to aggregate GPU information Aug 19, 2025
@peterschmidt85 peterschmidt85 merged commit 0d0e654 into master Aug 20, 2025
26 checks passed
@peterschmidt85 peterschmidt85 deleted the 2142-dstack-list branch August 20, 2025 08:16
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.

[Feature]: Allow listing available key resources such as gpu, region, and backends

2 participants