# Repository Briefing: InternLM/Sage-Interaction
> Source: https://repoforai.com/repo/InternLM/Sage-Interaction (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/InternLM/Sage-Interaction
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Multi-language
- **License**: Apache-2.0
- **Engineering Health**: B+ (70/100 · Maintenance 35/35 · Adoption 4/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: GPU, API, Self-Hosted
- **Momentum**: 110 ★ total (+10 24h / +42 7d) · 3 forks
- **When to Use**: Best for: GPU-backed voice and live-video assistants that must handle interruptions and remain responsive while a separate backend works on longer tasks. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Model: 9B-parameter frontend based on MiniCPM-o 4.5, with weights on Hugging Face and ModelScope.
- Audio interaction: 80.73 average on FD-Bench v1.5 and 1.29 s turn-taking latency on FD-Bench v1; these are different benchmark versions.
- Delegation: Asynchronous execution through an OpenAI-compatible backend; Daily Delegation scores 80.47 F1 and 4.13/5 response quality.
- Live video: Supports proactive responses and visually grounded delegation; scores 21.6 mIoU on Charades and 42.3 PAUC on ProactiveQA.
- Installation: Linux, Python 3.12, a BF16-capable NVIDIA GPU, CUDA Toolkit 12.8, and `flash-attn==2.8.3`.
- Launch: `demo/start_demo.sh` accepts `--config`, `--gpu`, and `--instances`; the demo guide covers multi-GPU workers.
```

## Quick Start / Clone
```bash
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
```
