Skip to content

Commit

Permalink
update default ram and cpu config
Browse files Browse the repository at this point in the history
  • Loading branch information
AntreasAntoniou committed Feb 2, 2024
1 parent 3c26e70 commit bd68e4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kubejobs/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@ def __init__(
self.cpu_request = (
cpu_request
if cpu_request
else MAX_CPU
// (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)
else 12 * gpu_limit
)
self.ram_request = (
ram_request
if ram_request
else f"{MAX_RAM // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)}G"
else f"{80 * gpu_limit}G"
)
self.storage_request = storage_request
self.gpu_type = gpu_type
Expand Down

0 comments on commit bd68e4e

Please sign in to comment.