gpuhunt


Namegpuhunt JSON
Version 0.0.17 PyPI version JSON
download
home_pageNone
SummaryA catalog of GPU pricing for different cloud providers
upload_time2024-12-25 07:14:18
maintainerNone
docs_urlNone
authordstack GmbH
requires_python>=3.9
licenseNone
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, etc.
The catalog includes details about prices, locations, CPUs, RAM, GPUs, and spots (interruptible 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="20240508")
items = catalog.query()

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

## Supported providers

* AWS
* Azure
* Cudo Compute
* DataCrunch
* GCP
* LambdaLabs
* OCI
* RunPod
* TensorDock
* Vast AI

## See also

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gpuhunt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "gpu, cloud, pricing",
    "author": "dstack GmbH",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/bd/7f/178e3beae9d206e46f280d7d2c48bfe3a5437a4d526357be82b700a05a86/gpuhunt-0.0.17.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, etc.\nThe catalog includes details about prices, locations, CPUs, RAM, GPUs, and spots (interruptible 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=\"20240508\")\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* OCI\n* RunPod\n* TensorDock\n* Vast AI\n\n## See also\n\n* [dstack](https://github.com/dstackai/dstack)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A catalog of GPU pricing for different cloud providers",
    "version": "0.0.17",
    "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": "07081e82689db1f0d9e3b6dc83d485ceaa505bef900099f015d6025957dcb9d5",
                "md5": "e6a9c0488536922993b452d3590c79b6",
                "sha256": "03ca916f21dd22b381dbe9c52e05286501ede16ea8bb74a6462883332e144070"
            },
            "downloads": -1,
            "filename": "gpuhunt-0.0.17-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6a9c0488536922993b452d3590c79b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 68204,
            "upload_time": "2024-12-25T07:14:17",
            "upload_time_iso_8601": "2024-12-25T07:14:17.690073Z",
            "url": "https://files.pythonhosted.org/packages/07/08/1e82689db1f0d9e3b6dc83d485ceaa505bef900099f015d6025957dcb9d5/gpuhunt-0.0.17-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd7f178e3beae9d206e46f280d7d2c48bfe3a5437a4d526357be82b700a05a86",
                "md5": "6d475b03bc5c8fd448240987292737c7",
                "sha256": "c1037358700d34641d6ff5b7b46704733e53f5f489e43262fcd3832820d10580"
            },
            "downloads": -1,
            "filename": "gpuhunt-0.0.17.tar.gz",
            "has_sig": false,
            "md5_digest": "6d475b03bc5c8fd448240987292737c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 53733,
            "upload_time": "2024-12-25T07:14:18",
            "upload_time_iso_8601": "2024-12-25T07:14:18.846335Z",
            "url": "https://files.pythonhosted.org/packages/bd/7f/178e3beae9d206e46f280d7d2c48bfe3a5437a4d526357be82b700a05a86/gpuhunt-0.0.17.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-25 07:14:18",
    "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: 3.25882s