# gpu


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

------------------------------------------------------------------------

### GPUEntry

``` python

def GPUEntry(
    tag:str, # GPU tag, e.g. 'H100'
    price:float, # Price per hour (USD)
    vram:int, # VRAM in GB
)->None:

```

*Initialize self. See help(type(self)) for accurate signature.*

``` python
GPUEntry('T4', 0.59, 16)
```

<div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>T4</b> · $0.59/hr · 16GB</div>

------------------------------------------------------------------------

### GPU

``` python

def GPU(
    args:VAR_POSITIONAL, kwargs:VAR_KEYWORD
):

```

*Initialize self. See help(type(self)) for accurate signature.*

``` python
gpu = GPU(); gpu
```

<div style="display:flex;flex-wrap:wrap;gap:8px"><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>T4</b> · $0.59/hr · 16GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>L4</b> · $0.80/hr · 24GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A10</b> · $1.10/hr · 24GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>L40S</b> · $1.95/hr · 48GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A100-40GB</b> · $2.10/hr · 40GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A100-80GB</b> · $2.50/hr · 80GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>RTX-PRO-6000</b> · $3.03/hr · 96GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>H100</b> · $3.95/hr · 80GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>H200</b> · $4.54/hr · 141GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>B200</b> · $6.25/hr · 180GB</div></div>

------------------------------------------------------------------------

### GPU.cheapest

``` python

def cheapest(
    
)->GPUEntry:

```

*Return the cheapest GPUEntry.*

``` python
gpu.cheapest()
```

<div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>T4</b> · $0.59/hr · 16GB</div>

------------------------------------------------------------------------

### GPU.by_budget

``` python

def by_budget(
    max_phr:float, # Maximum price per hour
)->HTML:

```

*Return GPU cards costing ≤ `max_phr` per hour as HTML.*

``` python
gpu.by_budget(.8)
```

<div style="display:flex;flex-wrap:wrap;gap:8px"><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>T4</b> · $0.59/hr · 16GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>L4</b> · $0.80/hr · 24GB</div></div>

------------------------------------------------------------------------

### GPU.price_of

``` python

def price_of(
    tag:str, # GPU tag, e.g. 'H100'
)->GPUEntry:

```

*Return the GPUEntry matching `tag`.*

``` python
gpu.price_of('T4')
```

<div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>T4</b> · $0.59/hr · 16GB</div>

------------------------------------------------------------------------

### GPU.tags

``` python

def tags(
    
)->list:

```

*Lists all available GPU tags*

``` python
gpu.tags()
```

    ['T4',
     'L4',
     'A10',
     'L40S',
     'A100-40GB',
     'A100-80GB',
     'RTX-PRO-6000',
     'H100',
     'H200',
     'B200']

------------------------------------------------------------------------

### GPU.most_expensive

``` python

def most_expensive(
    
)->GPUEntry:

```

*Return the most expensive GPUEntry.*

``` python
gpu.most_expensive()
```

<div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>B200</b> · $6.25/hr · 180GB</div>

------------------------------------------------------------------------

### GPU.by_vram

``` python

def by_vram(
    min_gb:int, # Minimum VRAM in GB
)->HTML:

```

*Return GPU cards with ≥ `min_gb` VRAM as HTML.*

``` python
gpu.by_vram(24)
```

<div style="display:flex;flex-wrap:wrap;gap:8px"><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>L4</b> · $0.80/hr · 24GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A10</b> · $1.10/hr · 24GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>L40S</b> · $1.95/hr · 48GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A100-40GB</b> · $2.10/hr · 40GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>A100-80GB</b> · $2.50/hr · 80GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>RTX-PRO-6000</b> · $3.03/hr · 96GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>H100</b> · $3.95/hr · 80GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>H200</b> · $4.54/hr · 141GB</div><div style="background:#e8f4e8;padding:8px 12px;border-radius:6px;display:inline-block;font-family:monospace"><b>B200</b> · $6.25/hr · 180GB</div></div>
