Skip to content

Conversation

@theFong
Copy link
Member

@theFong theFong commented Jan 11, 2026

Introduces a new brev gpu-search command (also aliased as brev gpu,
brev gpus, and brev gpu-list) that allows users to search and filter
GPU instance types from the Brev API. Features include:

  • Filter by GPU name (case-insensitive partial match)
  • Filter by minimum VRAM per GPU (in GB)
  • Filter by minimum total VRAM (GPU count * VRAM)
  • Filter by minimum GPU compute capability (e.g., 8.0 for Ampere)
  • Sort by price, gpu-count, vram, total-vram, vcpu, type, or capability
  • Support for ascending/descending sort order

The command displays results in a formatted table showing instance type,
GPU name, count, VRAM per GPU, total VRAM, compute capability, vCPUs,
and hourly price.

Includes comprehensive unit tests for filtering, sorting, and data
processing functionality.

Introduces a new `brev gpu-search` command (also aliased as `brev gpu`,
`brev gpus`, and `brev gpu-list`) that allows users to search and filter
GPU instance types from the Brev API. Features include:

- Filter by GPU name (case-insensitive partial match)
- Filter by minimum VRAM per GPU (in GB)
- Filter by minimum total VRAM (GPU count * VRAM)
- Filter by minimum GPU compute capability (e.g., 8.0 for Ampere)
- Sort by price, gpu-count, vram, total-vram, vcpu, type, or capability
- Support for ascending/descending sort order

The command displays results in a formatted table showing instance type,
GPU name, count, VRAM per GPU, total VRAM, compute capability, vCPUs,
and hourly price.

Includes comprehensive unit tests for filtering, sorting, and data
processing functionality.
@theFong theFong requested a review from a team as a code owner January 11, 2026 05:40
@theFong
Copy link
Member Author

theFong commented Jan 11, 2026

$ brev gpu-search

✅ Successfully fetched 536 GPU instance types from the API

✅ Results displayed in formatted table sorted by price (default)

$ brev gpu --gpu-name A100

✅ Returned only A100 instances (partial match, case-insensitive)

$ brev gpu -g H100

✅ Returned only H100 instances

$ brev gpu --gpu-name L4

✅ Returned L4 instances (correctly not matching L40/L40S)

$ brev gpu --sort price

✅ Sorted by price ascending (cheapest first)

$ brev gpu --sort total-vram --desc

✅ Sorted by total VRAM descending (B200x8 1536GB first)

$ brev gpu --sort gpu-count -d

✅ Sorted by GPU count descending (8-GPU configs first)

$ brev gpu --sort capability

✅ Sorted by compute capability ascending

theFong and others added 2 commits January 10, 2026 23:14
Add capability mappings for:
- RTXPro6000 (12.0), B200 and RTX5090 (10.0 Blackwell)
- RTX6000Ada, RTX4000Ada (8.9 Ada Lovelace)
- A6000, A5000, A4000 (8.6 Ampere)
- RTX6000 (7.5 Turing)
- M60 (5.2 Maxwell)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Only show NVIDIA GPUs (exclude AMD Radeon, Intel Gaudi, etc.)
since compute capability is NVIDIA-specific.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants