Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/dstack/_internal/core/backends/slurm/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def get_requested_resources_from_resources_spec(spec: ResourcesSpec) -> Requeste
# The easiest/safest option is to use some sane default
memory = spec.memory.min or DEFAULT_MEMORY_SIZE.min
assert memory
if spec.memory.max:
memory = min(memory, spec.memory.max)
memory_mib = round(memory * 1024)

gpu_count: int = 0
Expand Down
Loading