Skip to content

Commit 4fe5f79

Browse files
authored
feature: Upgrade pydantic deps (#45)
* Upgrade pydantic deps * Make db connection unique Signed-off-by: Rashid Kaleem <4079439+arekay@users.noreply.github.com>
1 parent f1f1662 commit 4fe5f79

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

requirements/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ orjson==3.11.0
1515
pyzmq==27.0.2
1616
uvloop==0.21.0
1717
datasets==4.1.1
18-
pydantic==2.11.7
19-
pydantic_core==2.33.2
18+
pydantic==2.12.0
19+
pydantic_core==2.41.1
2020
msgspec==0.19.0
2121

2222
# Needed to do tokenization for OSL reporting

src/inference_endpoint/commands/benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import signal
2626
import tempfile
2727
import time
28+
import uuid
2829
from pathlib import Path
2930
from urllib.parse import urljoin
3031

@@ -610,7 +611,7 @@ def _run_benchmark(
610611
dataloader,
611612
sample_issuer,
612613
scheduler,
613-
name="cli_benchmark",
614+
name=f"cli_benchmark_{uuid.uuid4().hex[0:8]}",
614615
stop_sample_issuer_on_test_end=False,
615616
report_dir=config.report_dir,
616617
tokenizer_override=tokenizer,

src/inference_endpoint/commands/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def run_probe_command(args: argparse.Namespace) -> None:
179179
or len(received_ids) == num_expected
180180
):
181181
logger.info(
182-
f" Processed {len(received_ids)}/{num_expected} responses"
182+
f" Processed {len(received_ids)}/{num_expected} responses : {query_id} : {result.response_output[:100]}"
183183
)
184184

185185
except Exception as e:

0 commit comments

Comments
 (0)