Skip to content

Commit

Permalink
Remove client-side check for minimum CPU core request (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
devennavani committed Aug 5, 2024
1 parent ae94f8d commit ddcfb4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions modal/_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ def convert_fn_config_to_resources_config(
gpu: GPU_T,
ephemeral_disk: Optional[int],
) -> api_pb2.Resources:
if cpu is not None and cpu < 0.1:
raise InvalidError(f"Invalid fractional CPU value {cpu}. Cannot have less than 0.10 CPU resources.")
gpu_config = parse_gpu_config(gpu)
milli_cpu = int(1000 * cpu) if cpu is not None else None
if memory and isinstance(memory, int):
Expand Down
23 changes: 0 additions & 23 deletions test/cpu_test.py

This file was deleted.

0 comments on commit ddcfb4f

Please sign in to comment.