gpuhunt


Namegpuhunt JSON
Version 0.0.8 PyPI version JSON
download
home_page
SummaryA catalog of GPU pricing for different cloud providers
upload_time2024-03-15 13:59:52
maintainer
docs_urlNone
authordstack GmbH
requires_python>=3.8
license
keywords gpu cloud pricing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![](https://img.shields.io/pypi/v/gpuhunt)](https://pypi.org/project/gpuhunt/)

Easy access to GPU pricing data for major cloud providers: AWS, Azure, GCP, and LambdaLabs.
The catalog includes details about prices, locations, CPUs, RAM, GPUs, and spots (interruptable instances).

## Usage

```python
import gpuhunt

items = gpuhunt.query(
    min_memory=16,
    min_cpu=8,
    min_gpu_count=1,
    max_price=1.0,
)

print(*items, sep="\n")
```

List of all available filters:

* `provider`: name of the provider to filter by. If not specified, all providers will be used. One or many
* `min_cpu`: minimum number of CPUs
* `max_cpu`: maximum number of CPUs
* `min_memory`: minimum amount of RAM in GB
* `max_memory`: maximum amount of RAM in GB
* `min_gpu_count`: minimum number of GPUs
* `max_gpu_count`: maximum number of GPUs
* `gpu_name`: name of the GPU to filter by. If not specified, all GPUs will be used. One or many
* `min_gpu_memory`: minimum amount of GPU VRAM in GB for each GPU
* `max_gpu_memory`: maximum amount of GPU VRAM in GB for each GPU
* `min_total_gpu_memory`: minimum amount of GPU VRAM in GB for all GPUs combined
* `max_total_gpu_memory`: maximum amount of GPU VRAM in GB for all GPUs combined
* `min_disk_size`: minimum disk size in GB (not fully supported)
* `max_disk_size`: maximum disk size in GB (not fully supported)
* `min_price`: minimum price per hour in USD
* `max_price`: maximum price per hour in USD
* `min_compute_capability`: minimum compute capability of the GPU
* `max_compute_capability`: maximum compute capability of the GPU
* `spot`: if `False`, only ondemand offers will be returned. If `True`, only spot offers will be returned

## Advanced usage

```python
from gpuhunt import Catalog

catalog = Catalog()
catalog.load(version="20240310")
items = catalog.query()

print(*items, sep="\n")
```

## Supported providers

* AWS
* Azure
* Cudo Compute
* DataCrunch
* GCP
* LambdaLabs
* Nebius
* TensorDock
* Vast AI

## See also

* [dstack](https://github.com/dstackai/dstack)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gpuhunt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "gpu,cloud,pricing",
    "author": "dstack GmbH",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/a2/b0/d6079f3014a754dc6abd09067de42a7f3405e9908b8ddd602c14160dc1c4/gpuhunt-0.0.8.tar.gz",
    "platform": null,
    "description": "[![](https://img.shields.io/pypi/v/gpuhunt)](https://pypi.org/project/gpuhunt/)\n\nEasy access to GPU pricing data for major cloud providers: AWS, Azure, GCP, and LambdaLabs.\nThe catalog includes details about prices, locations, CPUs, RAM, GPUs, and spots (interruptable instances).\n\n## Usage\n\n```python\nimport gpuhunt\n\nitems = gpuhunt.query(\n    min_memory=16,\n    min_cpu=8,\n    min_gpu_count=1,\n    max_price=1.0,\n)\n\nprint(*items, sep=\"\\n\")\n```\n\nList of all available filters:\n\n* `provider`: name of the provider to filter by. If not specified, all providers will be used. One or many\n* `min_cpu`: minimum number of CPUs\n* `max_cpu`: maximum number of CPUs\n* `min_memory`: minimum amount of RAM in GB\n* `max_memory`: maximum amount of RAM in GB\n* `min_gpu_count`: minimum number of GPUs\n* `max_gpu_count`: maximum number of GPUs\n* `gpu_name`: name of the GPU to filter by. If not specified, all GPUs will be used. One or many\n* `min_gpu_memory`: minimum amount of GPU VRAM in GB for each GPU\n* `max_gpu_memory`: maximum amount of GPU VRAM in GB for each GPU\n* `min_total_gpu_memory`: minimum amount of GPU VRAM in GB for all GPUs combined\n* `max_total_gpu_memory`: maximum amount of GPU VRAM in GB for all GPUs combined\n* `min_disk_size`: minimum disk size in GB (not fully supported)\n* `max_disk_size`: maximum disk size in GB (not fully supported)\n* `min_price`: minimum price per hour in USD\n* `max_price`: maximum price per hour in USD\n* `min_compute_capability`: minimum compute capability of the GPU\n* `max_compute_capability`: maximum compute capability of the GPU\n* `spot`: if `False`, only ondemand offers will be returned. If `True`, only spot offers will be returned\n\n## Advanced usage\n\n```python\nfrom gpuhunt import Catalog\n\ncatalog = Catalog()\ncatalog.load(version=\"20240310\")\nitems = catalog.query()\n\nprint(*items, sep=\"\\n\")\n```\n\n## Supported providers\n\n* AWS\n* Azure\n* Cudo Compute\n* DataCrunch\n* GCP\n* LambdaLabs\n* Nebius\n* TensorDock\n* Vast AI\n\n## See also\n\n* [dstack](https://github.com/dstackai/dstack)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A catalog of GPU pricing for different cloud providers",
    "version": "0.0.8",
    "project_urls": {
        "GitHub": "https://github.com/dstackai/gpuhunt",
        "Issues": "https://github.com/dstackai/gpuhunt/issues"
    },
    "split_keywords": [
        "gpu",
        "cloud",
        "pricing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "565fba8ef93862e520955e6f7114ae887a37f5c5ca953e7b6aea13cabbd5a165",
                "md5": "7310d18d4c792b1a734438df64948558",
                "sha256": "6676585ebf5652ca9668354b20326740fc90975860937c5b34fd1bf40ce48339"
            },
            "downloads": -1,
            "filename": "gpuhunt-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7310d18d4c792b1a734438df64948558",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 52041,
            "upload_time": "2024-03-15T13:59:51",
            "upload_time_iso_8601": "2024-03-15T13:59:51.545549Z",
            "url": "https://files.pythonhosted.org/packages/56/5f/ba8ef93862e520955e6f7114ae887a37f5c5ca953e7b6aea13cabbd5a165/gpuhunt-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2b0d6079f3014a754dc6abd09067de42a7f3405e9908b8ddd602c14160dc1c4",
                "md5": "6e4366e4d70e095fb66309ef51e2cc43",
                "sha256": "0745d16f531acdae27baeb8401c242055a7d6a630b1bb1700032d8aa616f4a09"
            },
            "downloads": -1,
            "filename": "gpuhunt-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "6e4366e4d70e095fb66309ef51e2cc43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 40397,
            "upload_time": "2024-03-15T13:59:52",
            "upload_time_iso_8601": "2024-03-15T13:59:52.810420Z",
            "url": "https://files.pythonhosted.org/packages/a2/b0/d6079f3014a754dc6abd09067de42a7f3405e9908b8ddd602c14160dc1c4/gpuhunt-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-15 13:59:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dstackai",
    "github_project": "gpuhunt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gpuhunt"
}
        
Elapsed time: 0.22462s