alt.freeweights.text / Terminal-RSI-27B
From: Teriminal-RSI <huggingface.co/Teriminal-RSI>Newsgroups: alt.freeweights.textSubject:

Terminal-RSI-27B

Date: 2026-11-15Commit: dcee3ffSigned: 2DC28CC7B26A283B ✓

Text generation model with 27.8B parameters. Safetensors weights, 55.6 GB in all. Published by Teriminal-RSI under Apache-2.0.

27.8B params55.6GBTerminal-RSI-27Bsafetensorspermissive
FactsParams27.8BSize55.6 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Teriminal-RSI/Terminal-RSI-27B
# manifest sha256 74306aac4366… · 55.6 GB · 26 files
$ fw verify ./Terminal-RSI-27B Teriminal-RSI/Terminal-RSI-27B
From sourceHosted (signed)Teriminal-RSI/Terminal-RSI-27BLast check: 2026-11-15 03:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
55.6 GB
Weights
55.6 GB (safetensors)
Parameters
27.8B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
26, each with a sha256
Publisher
Teriminal-RSI
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:25 UTCpassed

Model card

From the publisher at commit dcee3ff. Shown as plain text with links; images open at the publisher.

Terminal-RSI-27B#

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.

Model details#

PropertyValue
Release nameTerminal-RSI-27B
Backbone named in the paperQwen3.8-27B
Serialized architectureQwen3_5ForConditionalGeneration (model_type: qwen3_5)
Parameters in exported tensors27,781,427,952, including the packaged vision components
Stored weight dtypeBF16
Text layers / hidden size64 / 5,120
Configured context capacity262,144 tokens
Weight formatHugging Face Safetensors; 13 files referenced by the weight index
LicenseApache-2.0; see LICENSE

Training approach#

The paper describes the retained sequence:

Base → RSR-1 → RPR-1 → RSR-2 → RPR-2

  • Recursive Self-Rewrite (RSR): Discover verified trajectories across complementary harnesses, rewrite them into runbooks, screen for leakage and compatibility, and execute them afresh. Accepted public trajectories provide actor-only supervised updates; critic weights are carried through the rewrite stage.
  • Recursive Policy-Refine (RPR): Recalibrate an inherited critic with the actor frozen, then jointly optimize actor and critic using PPO. The initial Warm-up Critic Model is prepared separately from the four critic-only calibration updates at the start of each refinement phase.
  • Family Dense Reward (FDR): Normalize verifier-measured partial progress across task families. The paper uses FDR in RPR-1 and the ordinary RPR-2 branch.
  • Success-Prioritized Reward (SPR): Combine a strict-success bonus with bounded partial-progress credit. The paper's retained Long-Reward RPR-2 branch uses SPR.
  • Turn-Boundary Skip-Observation GAE (TB-GAE): Formulate credit assignment over generated tokens while skipping observation recursion nodes and applying decay across interaction-turn boundaries. This is a methodological contribution, not an independently established component-level performance gain. The paper explicitly notes that deployment of the estimator requires checkpoint/configuration evidence; its documented first phase uses standard GAE with unit discount and trace factors.

Paper-reported evaluation#

These results refer to the paper's retained RPR-2 step-18 model; see the checkpoint distinction above.

Benchmark / metricBasePaper's retained Terminal-RSI-27B
Terminal-Bench 4.0 — success (%)0.0019.84
Terminal-Bench 2.1 — success (%)51.7086.52
Terminal-Bench 3.0 — success (%)0.0016.95
Terminal-Bench Hard — success (%)31.0079.00
Four-suite equal-weight mean success (%)20.6850.58
LHTB — mean process reward0.210.37
LHTB — mean strict completions / 46 tasks0/465/46
SWR100 — success (%)3.006.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.

Evaluation harness#

The paper reports:

  • temperature 0.60, top-p 0.95;
  • up to 8,192 generated tokens per turn and 96,000 input tokens per call;
  • structured JSON actions and explicit thinking mode disabled;
  • linear interaction history with proactive summarization triggered at 32,000 accumulated tokens;
  • benchmark-specific termination and time limits, with a configured upper bound of 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.

Loading the model#

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,
        temperature=0.6,
        top_p=0.95,
    )
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

This example generates text only. Actual terminal execution requires an external agent loop that validates actions, runs commands in a sandbox, returns observations, and checks completion. The BF16 weight files alone occupy approximately 55.56 GB (51.75 GiB); inference additionally requires memory for activations, runtime buffers, and the KV/state cache. Long-context inference may need substantially more memory.

All 13 indexed Safetensors files are required, including model-missing-from-origin-00001.safetensors and model-missing-from-origin-00002.safetensors. These are part of the checkpoint, not optional leftovers.

Intended use and limitations#

Intended uses include research on terminal agents, repository repair, code execution, scientific workflow reconstruction, and long-horizon reinforcement learning with executable verification.

  • Run generated commands in an isolated environment with restricted credentials, network access, and filesystem permissions. Do not give an autonomous agent unrestricted access to production systems.
  • The model can produce incorrect code, unsafe commands, misleading explanations, or false claims of completion. Use independent tests and protected verifiers rather than relying on self-reported success.
  • Benchmark gains do not establish general-purpose reliability, safety, or applicability to every repository or task family.
  • The recursive-stage comparisons are not compute-matched component ablations. The paper separates observed performance from unsupported causal attribution.
  • No new benchmark runs, full inference validation, or independent safety evaluation were performed for this upload.

中文简介#

Terminal-RSI-27B 是基于 Terminal-RSI 论文所述方法基于 Qwen3.8-27B 为基座的终端智能体模型,面向代码仓库检查、依赖修复、科学工作流重建和需要真实执行与验证的多步骤任务。Terminal-RSI 通过递归自重写(RSR)与继承 critic 的递归策略精炼(RPR)交替迭代,结合任务家族进度奖励与优先严格成功的奖励设计,将局部进展转化为可验证的任务完成。

Citation#

@article{yang2026terminalrsi,
  title = {Terminal-RSI: Recursive Self-Improving Terminal Agents via Recursive Self-Rewrite and Policy-Refine},
  author = {Yang, Junyao and Li, Zongxia and Shi, Yucheng and Li, Zhongzhi and Wang, Ruhan and Zhou, Ruiwen and Mi, Haitao and Yan, Shuicheng and Liang, Leowei},
  journal = {arXiv preprint arXiv:2610.22192},
  year = {2026}
}

Files

26 files · 55.6 GBWeights 55.6 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 26 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
LICENSE11.5 KBbbedc3fda3305820b977265f01b8619d87570a6739de3a5582c3464840f1e57a
README.md8.98 KB4df2179cb9cb335bc8d99216fd3a6b05bf9ce6ce8b771c4bca4850bee3ccd8c5
chat_template.jinja8.95 KBc3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041
config.json4.31 KB191e0af232104ed8b65258cf3fb2b842e288008baca7633c11b82a1ac7203aab
generation_config.json202 Be70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e
merges.txt3.35 MBa9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d
model-00001-of-00011.safetensors5.27 GBd9f10481a66d2e452e47cd1df17bd7b4c7c5da2e38e5dce31d0b287f2224ccbd
model-00002-of-00011.safetensors5.32 GB63cc1a0e4f86fc1a9f5547ca4f0fe53559bb5f4578ad2ad59dde83c13f5f40ae
model-00003-of-00011.safetensors5.35 GB9c8e657b5a06ec8a61bbd5733672ad0196d70b2fd8042f3b857e93ca1c77e181
model-00004-of-00011.safetensors5.24 GB3a9190ef08ebff1eb2cf10a3448b200f857d3f493af7b9cc134a254e5474d10d
model-00005-of-00011.safetensors5.35 GB159978fbf54e6bececca4489174866c20eaa5c8af034c3646ea4f73ec94c1f0a
model-00006-of-00011.safetensors2.94 GB8ecb2232e35b034e7c0b1e3f73d4f789b5c387457ed0cf5dcc39e35d050f9751
model-00007-of-00011.safetensors5.33 GBddbf72ffd21612c97d0fcf97959ddaee1e7537023e75b736cd73ad64b9790802
model-00008-of-00011.safetensors5.28 GB620f1d2257bf936db18fda3b8a805d8429c49f07ca631ec1dadbc658f21e95a2
model-00009-of-00011.safetensors5.25 GB081642fae0180691ed49cf23a1f0db5587b68f43d01bb34f7fccfe1929ed3fcc
model-00010-of-00011.safetensors5.25 GB163635eac01166827fe4c7c85aa912b95a8141c4b97af43acf595c21c6e2c8a2
model-00011-of-00011.safetensors3.19 GBf147b2b034762902148acd164e8683d38db7440e3f8419e0b3806daadbccd572
model-missing-from-origin-00001.safetensors921 MBef7ccc6d74936c63ee52d99a437fd9870708da7b383edab27ab0419fc669b9a8
model-missing-from-origin-00002.safetensors849 MB1d8268aa85ace093a561e3e7b63b9d390dac1cd55a90cd55b5ec509c3c9da9fe
model.safetensors.index.json116 KBd14930a4f9ae87928600b49fa9dacd80837cf487e1fac8817577f69d0493d362
preprocessor_config.json390 B27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516
tokenizer.json12.8 MB0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3
tokenizer_config.json17.9 KBb11349aafa7cdc6a320767cf7ceb29ed82f7eda5d65e8e0819e76f0ce947bf27
video_preprocessor_config.json385 B7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13
vocab.json6.72 MBce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
dcee3ff8a4 pinned now2026-11-15 03:25 UTC26 files · 55.6 GB

Use it

$ fw get Teriminal-RSI/Terminal-RSI-27B
# manifest sha256 74306aac4366… · 55.6 GB · 26 files
$ fw verify ./Terminal-RSI-27B Teriminal-RSI/Terminal-RSI-27B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Teriminal-RSI/Terminal-RSI-27B.json --dir ./Terminal-RSI-27B $ python3 fw.py verify ./Terminal-RSI-27B ./Teriminal-RSI__Terminal-RSI-27B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Teriminal-RSI/Terminal-RSI-27B --revision dcee3ff8a4e59c8c852852f0cbdbe708e5ecd276 --local-dir ./Terminal-RSI-27B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("Teriminal-RSI/Terminal-RSI-27B", revision="dcee3ff8a4e59c8c852852f0cbdbe708e5ecd276") model = AutoModelForCausalLM.from_pretrained("Teriminal-RSI/Terminal-RSI-27B", revision="dcee3ff8a4e59c8c852852f0cbdbe708e5ecd276", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve Teriminal-RSI/Terminal-RSI-27B --revision dcee3ff8a4e59c8c852852f0cbdbe708e5ecd276

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
bbedc3fda3305820b977265f01b8619d87570a6739de3a5582c3464840f1e57a
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: Teriminal-RSI <huggingface.co/Teriminal-RSI>Newsgroups: alt.freeweights.textSubject: Terminal-RSI-27BDate: 2026-11-15Commit: dcee3ffSigned: 2DC28CC7B26A283B ✓
Upstream
Teriminal-RSI/Terminal-RSI-27B
Pinned commit
dcee3ff8a4e59c8c852852f0cbdbe708e5ecd276
Manifest
Terminal-RSI-27B.json · .minisig
Manifest sha256
74306aac4366e0d47bcd15fb8403a0595bf263bfe48f35c7edb791fb13e3d5db
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Teriminal-RSI/Terminal-RSI-27B.json $ curl -O https://freeweights.allternit.com/manifests/Teriminal-RSI/Terminal-RSI-27B.json.minisig $ minisign -Vm Terminal-RSI-27B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Teriminal-RSI/Terminal-RSI-27B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Terminal-RSI-27B.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Terminal-RSI-27B. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B