Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions mkdocs/docs/concepts/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -1651,43 +1651,6 @@ projects:

</div>

??? info "Community Cloud"
By default, `dstack` considers instance offers only from the Secure Cloud.
To also include the
[Community Cloud](https://docs.runpod.io/references/faq/#secure-cloud-vs-community-cloud),
set `community_cloud: true` in the backend settings.

<div editor-title="~/.dstack/server/config.yml">

```yaml
projects:
- name: main
backends:
- type: runpod
creds:
type: api_key
api_key: US9XTPDIV8AR42MMINY8TCKRB8S4E7LNRQ6CAUQ9
community_cloud: true
```

</div>

You can tell Secure Cloud and Community Cloud apart by their regions.
Secure Cloud regions contain datacenter IDs such as `CA-MTL-3`.
Community Cloud regions contain country codes such as `CA`.

<div class="termy">

```shell
$ dstack apply -f .dstack.yml -b runpod

# BACKEND REGION INSTANCE SPOT PRICE
1 runpod CA NVIDIA A100 80GB PCIe yes $0.6
2 runpod CA-MTL-3 NVIDIA A100 80GB PCIe yes $0.82
```

</div>

### Vast.ai

Log into your [Vast.ai](https://cloud.vast.ai/) account, click Account in the sidebar, and copy your
Expand Down
2 changes: 0 additions & 2 deletions mkdocs/docs/concepts/fleets.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ This property ensures that instances are interconnected. This is required for ru
If the Kubernetes cluster has interconnect configured, `dstack` can use it without additional setup.
See the [Lambda](../examples/clusters/lambda.md#kubernetes) or [Crusoe](../examples/clusters/crusoe.md#kubernetes) examples.

<!-- TODO: Add Runpod tab to cluster backends once cluster support is fully tested -->

=== "SSH fleets"
If the hosts in the SSH fleet have interconnect configured, you only need to set `placement` to `cluster`.

Expand Down
2 changes: 1 addition & 1 deletion mkdocs/docs/guides/migration/slurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ resources:

</div>

Network volumes cannot be used with multi-node tasks (no multi-attach support), except where multi-attach is supported (Runpod) or via volume interpolation.
Network volumes cannot be used with multi-node tasks (no multi-attach support), except via volume interpolation.

For multi-node tasks, use interpolation to attach different volumes to each node.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"python-multipart>=0.0.31",
"filelock",
"psutil",
"gpuhunt==0.1.36",
"gpuhunt==0.1.37",
"argcomplete>=3.5.0",
"ignore-python>=0.2.0",
"apscheduler<4",
Expand Down
8 changes: 6 additions & 2 deletions src/dstack/_internal/core/backends/base/offers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"gcp-a4",
"gcp-g4",
"gcp-dws-calendar-mode",
"runpod-cpu",
"runpod-cluster",
"hotaisle-bm",
]

Expand All @@ -51,6 +49,7 @@ def get_catalog_offers(
extra_filter: Optional[Callable[[InstanceOffer], bool]] = None,
catalog: Optional[gpuhunt.Catalog] = None,
catalog_item_filter: Optional[Callable[[gpuhunt.CatalogItem], bool]] = None,
check_disk: bool = True,
) -> List[InstanceOffer]:
"""
Returns offers from the `gpuhunt` catalog for the given `backend`.
Expand All @@ -68,6 +67,8 @@ def get_catalog_offers(
catalog_item_filter: applied to raw catalog items before the conversion to
`InstanceOffer` models. Use it for filtering that can be done on raw catalog fields
to avoid expensive model construction for items that will be discarded.
check_disk: filter catalog items by the required disk size. Set to `False` if the
backend fits offer disks to requirements itself, e.g. with `OfferDiskFitter`.
"""
provider = backend.value
if backend == BackendType.DATACRUNCH:
Expand All @@ -78,6 +79,9 @@ def get_catalog_offers(
provider = "digitalocean"
q = requirements_to_query_filter(requirements)
q.provider = [provider]
if not check_disk:
q.min_disk_size = None
q.max_disk_size = None
offers = []

catalog = catalog if catalog is not None else gpuhunt.default_catalog()
Expand Down
Loading
Loading