Skip to content

Commit

Permalink
Temporarily disable nebius
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mezentsev authored and TheBits committed May 8, 2024
1 parent 2698934 commit 6cc6c02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 31 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/catalogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,29 +170,6 @@ jobs:
path: lambdalabs.csv
retention-days: 1

catalog-nebius:
name: Collect Nebius catalog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install pip -U
pip install -e '.[nebius]'
- name: Collect catalog
working-directory: src
env:
NEBIUS_SERVICE_ACCOUNT: ${{ secrets.NEBIUS_SERVICE_ACCOUNT }}
run: python -m gpuhunt nebius --output ../nebius.csv
- uses: actions/upload-artifact@v4
with:
name: catalogs-nebius
path: nebius.csv
retention-days: 1

catalog-runpod:
name: Collect Runpod catalog
runs-on: ubuntu-latest
Expand Down Expand Up @@ -223,7 +200,6 @@ jobs:
- catalog-datacrunch
- catalog-gcp
- catalog-lambdalabs
- catalog-nebius
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 0 additions & 6 deletions src/gpuhunt/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import argparse
import json
import logging
import os
import sys
Expand All @@ -18,7 +17,6 @@ def main():
"datacrunch",
"gcp",
"lambdalabs",
"nebius",
"runpod",
"tensordock",
"vastai",
Expand Down Expand Up @@ -55,10 +53,6 @@ def main():
from gpuhunt.providers.lambdalabs import LambdaLabsProvider

provider = LambdaLabsProvider(os.getenv("LAMBDALABS_TOKEN"))
elif args.provider == "nebius":
from gpuhunt.providers.nebius import NebiusProvider

provider = NebiusProvider(json.loads(os.getenv("NEBIUS_SERVICE_ACCOUNT")))
elif args.provider == "runpod":
from gpuhunt.providers.runpod import RunpodProvider

Expand Down
2 changes: 1 addition & 1 deletion src/gpuhunt/_internal/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger = logging.getLogger(__name__)
version_url = "https://dstack-gpu-pricing.s3.eu-west-1.amazonaws.com/v1/version"
catalog_url = "https://dstack-gpu-pricing.s3.eu-west-1.amazonaws.com/v1/{version}/catalog.zip"
OFFLINE_PROVIDERS = ["aws", "azure", "datacrunch", "gcp", "lambdalabs", "nebius", "runpod"]
OFFLINE_PROVIDERS = ["aws", "azure", "datacrunch", "gcp", "lambdalabs", "runpod"]
ONLINE_PROVIDERS = ["cudo", "tensordock", "vastai"]
RELOAD_INTERVAL = 4 * 60 * 60 # 4 hours

Expand Down
4 changes: 4 additions & 0 deletions src/integrity_tests/test_nebius.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ def data(catalog_dir: Path) -> str:


class TestNebiusCatalog:
@pytest.mark.xfail
def test_zone_presented(self, data: str):
assert ",eu-north1-c," in data

@pytest.mark.xfail
def test_gpu_presented(self, data: str):
gpus = [
"A100",
Expand All @@ -21,6 +23,7 @@ def test_gpu_presented(self, data: str):
]
assert all(f",{i}," in data for i in gpus)

@pytest.mark.xfail
def test_h100_platforms(self, data: str):
platforms = [
"gpu-h100",
Expand All @@ -29,5 +32,6 @@ def test_h100_platforms(self, data: str):
]
assert all(f"\n{i}," in data for i in platforms)

@pytest.mark.xfail
def test_no_spots(self, data: str):
assert ",True\n" not in data
2 changes: 2 additions & 0 deletions src/tests/providers/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def providers():
continue
if member.__name__ == "AbstractProvider":
continue
if member.NAME == "nebius": # The provider has been temporarily disabled
continue
members.append(member)
return members

Expand Down

0 comments on commit 6cc6c02

Please sign in to comment.