runpod / runpod-python

🐍 | Python library for RunPod API and serverless worker SDK.
https://pypi.org/project/runpod/
MIT License
172 stars 59 forks source link

Requesting a pod for cpu via python sdk seems not possible #314

Open Lhemamou opened 4 months ago

Lhemamou commented 4 months ago

Describe the bug When I want to create a only cpu pod, it's needed to choose a gpu_type_id but when i test all the gpu_type_id with gpu_count=0 , I have not access to any server.

To Reproduce `list_gpus=[x['id'] for x in runpod.get_gpus()]

for gpu in list_gpus: try: runpod.create_pod(name="test_pod",image_name="docker/image", gpu_count=0,gpu_type_id=gpu, container_disk_in_gb=20, min_vcpu_count=2,min_memory_in_gb=8,ports="8080/http;22/tcp") break except runpod.error.QueryError as e: print(e)`

-> print statement : There are no longer any instances available with the requested specifications. Please refresh and try again.

Expected behavior A clear and concise description of what you expected to happen. Expect to obtain a cpu only server

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here. python==3.10.12 runpod==1.6.2

frankvp11 commented 1 month ago

Are there any updates on this issue and when it might be fixed? I too am running into a similar issue but then with the gpus itself (not trying to have only cpus)

zaddy6 commented 2 weeks ago

I have the same issue and it pretty annoying