Skip to content

Commit 16c110c

Browse files
committed
chore: udpate examples
1 parent 5a370f0 commit 16c110c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

examples/foo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import time
2+
23
print("hello world")
34
while True:
4-
time.sleep(1)
5+
time.sleep(1)

examples/start_vllm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313
import httpx
14+
1415
import pylet
1516

1617

@@ -41,7 +42,7 @@ def main():
4142
# 3. Wait for vLLM to be ready (model loading takes time)
4243
print("Waiting for vLLM to load model...")
4344
with httpx.Client(timeout=300) as http:
44-
for attempt in range(60): # up to 5 minutes
45+
for _attempt in range(60): # up to 5 minutes
4546
try:
4647
resp = http.get(f"http://{instance.endpoint}/v1/models")
4748
if resp.status_code == 200:
@@ -50,6 +51,7 @@ def main():
5051
except httpx.ConnectError:
5152
pass
5253
import time
54+
5355
time.sleep(5)
5456
else:
5557
print("Timeout waiting for vLLM")

0 commit comments

Comments
 (0)