remove un-needed

This commit is contained in:
Eugene Klitenik
2025-10-29 13:06:33 -04:00
parent e27dc68dea
commit d09122de4a
2 changed files with 1 additions and 15 deletions
+1 -1
View File
@@ -46,5 +46,5 @@ RUN --mount=type=secret,id=HF_TOKEN,required=false \
python3 /src/download_model.py; \
fi
# Start the handler
CMD ["python3", "/src/handler.py"]
-14
View File
@@ -3,20 +3,6 @@ import runpod
from utils import JobInput
from engine import vLLMEngine, OpenAIvLLMEngine
# Detect number of visible GPUs
gpu_count = torch.cuda.device_count()
# Fallback to 1 if none detected
if gpu_count < 1:
gpu_count = 1
# Set the environment variable
os.environ["TENSOR_PARALLEL_SIZE"] = str(gpu_count)
print(f"Detected {gpu_count} GPU(s)")
print(f"Set TENSOR_PARALLEL_SIZE={os.environ['TENSOR_PARALLEL_SIZE']}")
vllm_engine = vLLMEngine()
OpenAIvLLMEngine = OpenAIvLLMEngine(vllm_engine)