Commit 17cc2bd
authored
Include non-GPU offers on
Previously, `dstack` did not return any non-GPU
offers if GPU name, memory, or vendor requirements
are set, regardless of the GPU count requirement.
```shell
> dstack offer --gpu 0..:nvidia
# BACKEND RESOURCES INSTANCE TYPE PRICE
1 aws (eu-west-2) cpu=4 mem=16GB disk=100GB T4:16GB:1 (spot) g4dn.xlarge $0.1879
2 aws (us-east-1) cpu=4 mem=16GB disk=100GB T4:16GB:1 (spot) g4dn.xlarge $0.1914
3 aws (ca-central-1) cpu=4 mem=16GB disk=100GB T4:16GB:1 (spot) g4dn.xlarge $0.1931
<...>
```
Now, it Includes non-GPU offers if the lower GPU
count bound is set to `0`.
```shell
> dstack offer --gpu 0..:nvidia
# BACKEND RESOURCES INSTANCE TYPE PRICE
1 aws (eu-north-1) cpu=2 mem=8GB disk=100GB (spot) t3.large $0.0281
2 aws (us-west-1) cpu=2 mem=8GB disk=100GB (spot) t3.large $0.0297
3 aws (eu-west-2) cpu=2 mem=8GB disk=100GB (spot) t3.large $0.0298
<...>
1752 aws (ca-central-1) cpu=192 mem=2048GB disk=100GB H100:80GB:8 (spot) p5.48xlarge $63.296
1753 aws (us-west-1) cpu=192 mem=2048GB disk=100GB H100:80GB:8 p5.48xlarge $68.8
1754 aws (eu-west-2) cpu=192 mem=2048GB disk=100GB H100:80GB:8 p5.48xlarge $71.552
```gpu: 0.. (#3264)1 parent dd64a01 commit 17cc2bd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments