Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/schemas/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class GpuTier(str, Enum):
L40S = "l40s"
A100_80GB = "a100-80gb"
H100 = "h100"
RTX_4070 = "rtx4070"


class GpuSpec(BaseModel):
Expand Down Expand Up @@ -61,4 +62,13 @@ def monthly_cost_usd(self) -> float:
memory_bandwidth_gbps=3350,
hourly_cost_usd=4.50,
),
GpuTier.RTX_4070: GpuSpec(
tier=GpuTier.RTX_4070,
name="NVIDIA GeForce RTX 4070",
vram_gb=12,
fp16_tflops=44,
fp8_tflops=88,
memory_bandwidth_gbps=432,
hourly_cost_usd=0.00,
),
}
2 changes: 1 addition & 1 deletion app/services/benchmark_store/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _load(self) -> None:
self._profiles = []
if not self._dir.exists():
return
for fp in sorted(self._dir.glob("*.json")):
for fp in sorted(self._dir.rglob("*.json")):
with open(fp) as f:
data = json.load(f)
# each file is a list of profiles for one model
Expand Down
2 changes: 1 addition & 1 deletion app/services/runtime_registry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self) -> None:
name="vllm",
display_name="vLLM",
supported_quantizations=["fp16", "bf16", "fp8", "awq", "gptq"],
supported_gpu_tiers=["l4", "l40s", "a100-80gb", "h100"],
supported_gpu_tiers=["l4", "l40s", "a100-80gb", "h100", "rtx4070"],
supports_continuous_batching=True,
supports_paged_attention=True,
supports_speculative_decoding=True,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_cost_optimized_recommendation():

rec = result.recommended
# should not pick H100 for a cost-optimized workload
assert rec.gpu_tier in ("l4", "l40s"), f"Expected budget GPU, got {rec.gpu_tier}"
assert rec.gpu_tier in ("l4", "l40s", "rtx4070"), f"Expected budget GPU, got {rec.gpu_tier}"
assert rec.estimated_monthly_cost_usd <= 1200
assert rec.scores.meets_latency is True or rec.estimated_ttft_p95_ms <= 250

Expand Down Expand Up @@ -108,7 +108,7 @@ def test_recommendation_response_shape():
assert rec.quantization
assert rec.estimated_ttft_p95_ms > 0
assert rec.estimated_tokens_per_sec > 0
assert rec.estimated_hourly_cost_usd > 0
assert rec.estimated_hourly_cost_usd >= 0


def test_compare_two_models():
Expand Down