Skip to content

[UX] Shorter resource syntax for dstack apply, dstack offer, and dstack ps #2571

@peterschmidt85

Description

@peterschmidt85

Currently the syntax is too verbose:

dstack apply and dstack offer

Old syntax:

 #   BACKEND  REGION    INSTANCE TYPE          RESOURCES                                       SPOT  PRICE
 1   runpod   CA-MTL-3  NVIDIA H100 80GB HBM3  24xCPU, 221GB, 1xH100 (80GB), 100.0GB (disk)    no     $2.99
 2   runpod   CA-MTL-3  NVIDIA H100 80GB HBM3  24xCPU, 221GB, 1xH100 (80GB), 100.0GB (disk)    yes    $1.44

New syntax:

 #   BACKEND            INSTANCE TYPE          CPU  MEMORY  GPU          DISK   PRICE   
 1   runpod (CA-MTL-3)  NVIDIA H100 80GB HBM3  24   221GB   H100:80GB:1  100GB  $2.99   
 2   runpod (CA-MTL-3)  NVIDIA H100 80GB HBM3  24   221GB   H100:80GB:1  100GB  $1.44 (spot)   

dstack ps

Old syntax:

 NAME    BACKEND               RESOURCES                                     PRICE    STATUS      SUBMITTED
 vscode  cudo (ca-montreal-3)  12xCPU, 48GB, 1xA5000 (24GB), 100.0GB (disk)  $0.5717  terminated  2 days ago

New syntax:

 NAME    BACKEND               CPU  MEMORY  GPU           DISK   PRICE    STATUS      SUBMITTED  
 vscode  cudo (ca-montreal-3)  12   48GB    A5000:24GB:1  100GB  $0.5717  terminated  2 days ago 

The new syntax has all the information, but it is shorter and easier to read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions