Published June 4, 2026 | Version v0.3.0

streamrelay: WebSocket Relay for Real-Time Streaming from Batch HPC Executors

  • 1. EDMO icon University of Illinois at Chicago

Description

streamrelay is a domain-agnostic Python library for streaming incremental output from batch HPC jobs to remote clients in real time. It implements a dual-channel relay pattern: a producer (running inside the HPC job) connects outbound to a relay server and forwards output token by token; a consumer (the client) connects outbound to the same channel and receives output as it is generated. Neither side accepts inbound connections, making the pattern firewall-transparent.

While demonstrated for LLM token streaming via vLLM, the library is not LLM-specific and generalizes to any HPC job that produces incremental output, such as simulations, data pipelines, or scientific workflows.

PyPI: https://pypi.org/project/streamrelay/

Source code: https://github.com/uicacer/streamrelay

Files

uicacer/streamrelay-v0.3.0.zip

Files (822.6 kB)

Name Size Download all
md5:a767923d76d00281dbbf39016af88d4a
822.6 kB Preview Download

Additional details

Related works