InternLM/Sage-Interaction
HF Paper ↗A 9B full-duplex audio-video frontend that delegates tasks without pausing conversation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Sage-Interaction is a 9B-parameter model built on MiniCPM-o 4.5. It serves as the frontend in a split runtime: it continues consuming audio and video while responding, and it can send longer-running reasoning or tool-oriented tasks to a separate backend. Delegated work runs asynchronously, so the frontend can handle new input while waiting and incorporate completed results into a later response.
The runnable integration lives under demo/. The Python 3.12 setup installs dependencies from requirements.txt and pins flash-attn==2.8.3. The backend integration point is an OpenAI-compatible API, selected through backend_base_url and backend_model_name. Training uses scenario-grounded trajectories generated through multi-agent role-play and asymmetric supervision to account for denser audio and sparser video signals.
Key Capabilities & Differentiators
The frontend supports interruptions, brief acknowledgments, background speech, and proactive responses to evolving video. The reported FD-Bench v1.5 average is 80.73, with 96.94 for resuming after a brief acknowledgment versus 61.00 when the user is talking to others. The 1.29 s turn-taking latency comes from FD-Bench v1, not v1.5.
Daily Delegation scores 80.47 F1 and 4.13/5 for response quality; Time Speak scores 85.96 F1 with 1.019 s reminder latency. For proactive video response, the model scores 21.6 mIoU on Charades and 42.3 PAUC on ProactiveQA. These figures are useful for selecting acceptance tests, but they do not predict latency across your network, browser, GPU, and chosen delegation backend.
Trade-offs & Limitations
Compared with a sequential speech-to-text → LLM → text-to-speech pipeline, Sage-Interaction is built to keep listening while speaking and while delegated work is in flight. A sequential stack remains easier to swap and diagnose stage by stage if turn-based voice is enough. Compared with a managed realtime API, the local frontend gives you deployment control at the cost of NVIDIA GPU provisioning, CUDA setup, and live-session capacity testing.
A self-hosted frontend is not an offline system by itself. An external delegation API adds network and backend latency and may receive task data; an internal endpoint is an option to validate, not a guarantee that all backend features will work. Evaluate overlapping speech, representative video sessions, and slow or failed delegation calls before committing to production. The repository is Apache-2.0; check the checkpoint, base model, and backend terms separately.
Hardware & Deployment Guide
The demo targets Linux with Python 3.12, a BF16-capable NVIDIA GPU, and CUDA Toolkit 12.8. From demo/, install requirements.txt, install flash-attn==2.8.3 with --no-build-isolation, and run scripts/prepare_environment.py. Download the checkpoint from Hugging Face or ModelScope into models/sage-interaction.
Copy config.example.json to config.local.json, set the backend URL and model, then run bash start_demo.sh --config config.local.json --gpu 0 --instances 1. Supply the backend key when prompted or via SAGE_BACKEND_API_KEY, then grant browser microphone access. The demo guide covers multi-GPU workers and remote access. No minimum VRAM or GitHub release is listed: measure peak memory and latency before scaling, and pin the repository commit and checkpoint revision for repeatable deployments.
flash-attn==2.8.3.demo/start_demo.sh accepts --config, --gpu, and --instances; the demo guide covers multi-GPU workers.GPU-backed voice and live-video assistants that must handle interruptions and remain responsive while a separate backend works on longer tasks.
Turn-based voice is sufficient, you need CPU-only deployment, or you require a verified offline workflow without provisioning and testing a local delegation backend.
Quick Start & Installation
git clone https://github.com/InternLM/Sage-Interaction.git cd Sage-Interaction/demo python3.12 -m venv .venv && source .venv/bin/activate mkdir -p .cache/tmp && export TMPDIR="$PWD/.cache/tmp" PIP_NO_CACHE_DIR=1 python -m pip install --upgrade pip setuptools wheel packaging ninja python -m pip install -r requirements.txt python -m pip install flash-attn==2.8.3 --no-build-isolation python scripts/prepare_environment.py
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Sage-Interaction ★ | 110 | +42 | — | Apache-2.0 | A 9B full-duplex audio-video frontend that delegates tasks without pausing conve |
| ChatTTS | 40.1k | +24 | Python | AGPL-3.0 | Local autoregressive TTS for expressive Chinese and English dialogue |
| F5-TTS | 15.7k | +45 | Python | MIT | Flow-matching Diffusion Transformer for local, reference-conditioned speech synt |
| whisper | 114.1k | +548 | Python | MIT | Local encoder-decoder Transformer for multilingual speech transcription and tran |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/InternLM/Sage-Interaction.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Sage-Interaction
What runs locally, and where do delegated tasks execute?
backend_base_url and backend_model_name in config.local.json; provide credentials at startup or through SAGE_BACKEND_API_KEY. API compatibility alone does not establish equivalent tool support or task quality across backends.How should I size a GPU for the demo?
flash-attn==2.8.3. Begin with --gpu 0 --instances 1 on representative live inputs. Measure peak VRAM, turn-taking latency, and response stability before increasing worker count or concurrency.Can I use it commercially and keep interaction data on premises?
When is this preferable to a voice pipeline or a managed realtime API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy