Compare commits

...
Author SHA1 Message Date
187b7a438c fix env server deadlock (#1801)
Release / Push CUDA image to Docker (push) Canceled after 0s
* fix(deps): bump verifiers to e629347 (ZMQ env server deadlock fix)

The ZMQ env server used asyncio.wait_for around recv_multipart which
has a race condition in CPython's Task cancellation that silently
discards consumed messages. The verifiers fix replaces it with a
zmq.asyncio.Poller.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* use spawn method

* bump to commit on main

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 05:06:00 -08:00
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ override-dependencies = [
[tool.uv.sources]
torch = { index = "pytorch-cu128" }
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "786d300" }
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "ad77074" }
torchtitan = { git = "https://github.com/pytorch/torchtitan", rev = "a1fdd7e" }
dion = { git = "https://github.com/samsja/dion.git", rev = "d891eeb" }
transformers = { git = "https://github.com/huggingface/transformers.git", rev = "609e3d5" }
+5 -2
View File
@@ -1,8 +1,8 @@
import asyncio
import logging
import multiprocessing as mp
from collections.abc import Awaitable, Callable
from itertools import cycle
from multiprocessing import Process
from typing import Any
import verifiers as vf
@@ -33,7 +33,10 @@ def spawn_env_server(
Mirrors vf.Environment.start_server().
"""
address = address or f"tcp://127.0.0.1:{get_free_port()}"
Process(
# Use spawn to avoid inheriting file descriptors (e.g. sockets) from
# the parent process, which has caused hangs when multiple env server
# subprocesses share the same fds.
mp.get_context("spawn").Process(
target=ZMQEnvServer.run_server,
args=(
env_id,
Generated
+2 -2
View File
@@ -2358,7 +2358,7 @@ requires-dist = [
{ name = "torchtitan", git = "https://github.com/pytorch/torchtitan?rev=a1fdd7e" },
{ name = "transformers", git = "https://github.com/huggingface/transformers.git?rev=609e3d5" },
{ name = "uvloop", specifier = ">=0.21.0" },
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=786d300" },
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ad77074" },
{ name = "vllm", url = "https://github.com/vllm-project/vllm/releases/download/v0.16.0/vllm-0.16.0-cp38-abi3-manylinux_2_31_x86_64.whl" },
{ name = "wandb", specifier = ">=0.24.2" },
]
@@ -3687,7 +3687,7 @@ wheels = [
[[package]]
name = "verifiers"
version = "0.1.11.dev0"
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=786d300#786d300bf5aab105279fc542dda838beafcb025e" }
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ad77074#ad77074e6e8585242425aabd598fc102584a0777" }
dependencies = [
{ name = "anthropic" },
{ name = "datasets" },