From 7a68411b622f0d78fd21fb1a949124df5ef67392 Mon Sep 17 00:00:00 2001 From: Dmitry Meyer Date: Tue, 21 Jul 2026 10:22:09 +0000 Subject: [PATCH] [UI] Change GPU offer resources spec to match `dstack offer` command --- frontend/src/pages/Offers/List/index.tsx | 7 ++++--- frontend/src/types/gpu.d.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/Offers/List/index.tsx b/frontend/src/pages/Offers/List/index.tsx index 60b2ed147a..d9abef6b02 100644 --- a/frontend/src/pages/Offers/List/index.tsx +++ b/frontend/src/pages/Offers/List/index.tsx @@ -47,9 +47,10 @@ const getRequestParams = ({ home_dir: '/root', env: {}, resources: { - // cpu: { min: 2 }, - // memory: { min: 8.0 }, - // disk: { size: { min: 100.0 } }, + // cpu/memory/disk should match ResourcesSpec.unconstrained() used by `dstack offer` CLI command + cpu: { min: 1 }, + memory: { min: 0.0 }, + disk: null, gpu: { ...(gpu_name?.length ? { name: gpu_name } : {}), ...(gpuCountMinMax ? { count: gpuCountMinMax as unknown as TRange } : {}), diff --git a/frontend/src/types/gpu.d.ts b/frontend/src/types/gpu.d.ts index 5a9f980466..494f5712e0 100644 --- a/frontend/src/types/gpu.d.ts +++ b/frontend/src/types/gpu.d.ts @@ -27,7 +27,7 @@ declare interface IResourcesSpecRequest { memory?: TRange | number | string; shm_size?: number | string; gpu?: IGPUSpecRequest | number | string; - disk?: { size: TRange | number | string } | number | string; + disk?: { size: TRange | number | string } | number | string | null; } declare interface ITaskConfigurationQueryParams {