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 {