whatisgithub

What is streaming?

seal-rg/streaming — explained in plain English

Analysis updated 2026-05-18

32PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

Research code for a paper that trains language models to think in several parallel streams at once instead of one sequential stream, testing gains in speed, security, and transparency.

Mindmap

mindmap
  root((streaming))
    What it does
      Parallel thought streams
      Multi-stream LLM training
      Paper code release
    Tech stack
      Python
      Qwen models
      PyTorch
    Use cases
      Reproduce paper results
      Prompt injection resistance
      Reasoning monitorability
    Audience
      AI researchers
      LLM safety teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the paper's efficiency, security, and monitorability experiments on Qwen models.

USE CASE 2

Train a language model to read new input while solving a problem at the same time using multi-stream packing.

USE CASE 3

Study whether multi-stream training makes a model more resistant to prompt injection attacks.

USE CASE 4

Build a monitoring stream that audits a model's reasoning for safety concerns while it generates output.

What is it built with?

PythonQwenPyTorch

How does it compare?

seal-rg/streamingautolearnmem/automembilly-ellis/exr-imageio-poc
Stars323232
LanguagePythonPythonPython
Setup difficultyhardhardmoderate
Complexity5/55/53/5
Audienceresearcherresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires GPU infrastructure to train Qwen-family models, each section is a separate self-contained setup.

So what is it?

This repository contains the research code for a paper exploring a new approach to how large language models, the AI systems behind tools like ChatGPT, process information. Normally these models work in a single, sequential stream of thought, generating one token of text at a time. This research investigates running multiple parallel streams simultaneously so the model can, for example, continue reading new input while simultaneously solving a problem, or monitor its own reasoning for safety issues while generating a response. The code is organized into three sections matching the paper's experiments. The first looks at whether parallel streams improve efficiency on reasoning and question-answering benchmarks. The second examines whether this approach can make models more resistant to prompt injection attacks, where malicious instructions hidden in documents try to hijack the model's behavior. The third explores whether having dedicated monitoring streams makes the model's internal reasoning more observable and auditable from the outside. This is a research-grade Python codebase aimed at AI researchers who want to reproduce results from the paper or build on the multi-stream training approach.

Copy-paste prompts

Prompt 1
Explain what the three experimental sections, efficiency, security, and monitorability, each test in this repo.
Prompt 2
Walk me through running the Section 5 efficiency training script on a Qwen3 model.
Prompt 3
Help me understand why the model classes are named Medusa even though this isn't standard speculative decoding.
Prompt 4
Show me how the 10-stream data format used in Section 7 differs from the format in Sections 5 and 6.

Frequently asked questions

What is streaming?

Research code for a paper that trains language models to think in several parallel streams at once instead of one sequential stream, testing gains in speed, security, and transparency.

What language is streaming written in?

Mainly Python. The stack also includes Python, Qwen, PyTorch.

How hard is streaming to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is streaming for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.