Model reference · open weights
Terminal-RSI is an open-weight language model from Teriminal-RSI. Terminal-RSI-27B (BF16) weighs 55.6 GB; the smallest configuration that runs it is H100 80 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the Teriminal-RSI/Terminal-RSI-27B model card, 2026-10-25
What it is
| Released by | Teriminal-RSI |
|---|---|
| Released | 2026-10-21 |
| Parameters | 27.8B |
| VRAM | 55.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … L40S 48 GB 6 smaller cards | ||||
| A100 80 GB | 24 | 8 | all 256K | 78.2 GB |
| H100 80 GB | 17 | 6 | 215K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 36 | 12 | all 256K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 52 | 17 | all 256K | 107 GB |
| H200 141 GB | 88 | 30 | all 256K | 138 GB |
| B200 180 GB | 132 | 45 | all 256K | 176 GB |
| 2× L40S 48 GB tensor parallel | 33 | 11 | all 256K | 44.0 GB a card |
| 4× RTX 4090 24 GB tensor parallel | 34 | 11 | all 256K | 23.4 GB a card |
| 4× RTX 3090 24 GB tensor parallel | 34 | 11 | all 256K | 23.4 GB a card |
| 4× RTX 5090 32 GB tensor parallel | 70 | 24 | all 256K | 31.0 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 58.6 GB | 60.2 GB |
| 5 | 62.0 GB | 70.0 GB |
| 8 | 64.5 GB | 77.4 GB |
| 16 | 71.3 GB | 97.0 GB |
| 32 | 84.8 GB | 136 GB |
| 64 | 112 GB | 215 GB |
One card, with vLLM's small-card settings.
From the model card
Terminal-RSI-27B is a Qwen3.8-27B-based terminal-agent model released by the Terminal-RSI project. It is intended for repository inspection, code editing, dependency repair, scientific workflow reconstruction, and other multi-step tasks that require interaction with an executable environment and verification of the resulting state.
Terminal-RSI alternates Recursive Self-Rewrite (RSR) of verified execution trajectories with critic-inheriting Recursive Policy-Refine (RPR). The framework aims to turn successful exploration into reproducible behavior and partial progress into strictly verified task completion.
| Property | Value |
|---|---|
| Release name | Terminal-RSI-27B |
| Backbone named in the paper | Qwen3.8-27B |
| Serialized architecture | Qwen3_5ForConditionalGeneration (model_type: qwen3_5) |
| Parameters in exported tensors | 27,781,427,952, including the packaged vision components |
| Stored weight dtype | BF16 |
| Text layers / hidden size | 64 / 5,120 |
| Configured context capacity | 262,144 tokens |
| Weight format | Hugging Face Safetensors; 13 files referenced by the weight index |
| License | Apache-2.0; see LICENSE |
The paper describes the retained sequence:
Base → RSR-1 → RPR-1 → RSR-2 → RPR-2
These results refer to the paper's retained RPR-2 step-18 model; see the checkpoint distinction above.
| Benchmark / metric | Base | Paper's retained Terminal-RSI-27B |
|---|---|---|
| Terminal-Bench 4.0 — success (%) | 0.00 | 19.84 |
| Terminal-Bench 2.1 — success (%) | 51.70 | 86.52 |
| Terminal-Bench 3.0 — success (%) | 0.00 | 16.95 |
| Terminal-Bench Hard — success (%) | 31.00 | 79.00 |
| Four-suite equal-weight mean success (%) | 20.68 | 50.58 |
| LHTB — mean process reward | 0.21 | 0.37 |
| LHTB — mean strict completions / 46 tasks | 0/46 | 5/46 |
| SWR100 — success (%) | 3.00 | 6.00 |
Retained-stage scores are arithmetic means over three inference runs (Mean@3). The four-suite mean excludes LHTB and SWR100 and is not task-weighted. LHTB process reward and strict completion are separate metrics.
The paper reports:
0.60, top-p 0.95;8,192 generated tokens per turn and 96,000 input tokens per call;32,000 accumulated tokens;100,000 turns.Performance depends on the agent harness, tools, prompts, time budget, and verifier. A standalone chat example does not reproduce these agent evaluations. External frontier-model comparisons are omitted here because the paper notes incomplete primary-source/protocol reconciliation.
Use a Transformers version that supports Qwen3_5ForConditionalGeneration, plus PyTorch, Accelerate, and Safetensors. The packaged configuration records the export version as 5.8.0.dev0; configuration loading was checked locally with Transformers 5.17.0. Full model loading and GPU inference were not tested as part of packaging.
import torch
from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration
model_id = "Teriminal-RSI/Terminal-RSI-27B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = Qwen3_5ForConditionalGeneration.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a terminal assistant. Explain your next action; do not claim to have run commands."},
{"role": "user", "content": "How would you investigate a Python project whose tests fail because a dependency is missing?"},
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
outputs = model.generate(
**inputs,
max_new_tokens=1024,
do_sample=True,
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.