/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
9,1 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Agents-A1-4B
Библиотека
transformers
Опубликована
29 сен 2026

Agents-A1-4B-heretic

Генерация текстаТекст → текст15 профессий

Модифицированная abliteration модель Agents-A1 на 4 млрд параметров для диалогов, вызова инструментов и многошаговых агентных задач с меньшим числом отказов.

451скачиваний за 30 дней0лайковвеса обновлены29 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Richard Young создал Agents-A1-4B-heretic — версию модели InternScience/Agents-A1-4B, модифицированную инструментом Heretic v2.0.0.dev0 методом abliteration: изменение направления отказа без дообучения. Это плотная языковая модель семейства Qwen3.5 с 4 млрд параметров, предназначенная для диалогов, вызова инструментов и выполнения многошаговых агентных задач. Она может разбивать сложные запросы на этапы, планировать действия и работать с внешними инструментами через их интерфейсы.

По данным карточки, в тесте на 100 запросах модель отказала в 11 случаях против 99 у исходной версии; заявленное KL-расхождение составляет 0,0598. Эти результаты описывают указанные в карточке проверки и не гарантируют качество в других сценариях. Модель принимает и генерирует текст; поддержка изображений отмечена в метаданных тегами, однако основная задача репозитория — генерация текста. Модель распространяется по лицензии Apache-2.0. Abliteration снижает частоту отказов, поэтому модель может отвечать на запросы, которые исходная версия отклоняет.

Сценарии применения

  • планирование последовательности действий для выполнения сложного запроса
  • вызов внешних инструментов и API через агентный интерфейс
  • поиск информации с помощью подключённых поисковых инструментов
  • ответы на научные и профессиональные вопросы с использованием инструментов
  • локальный диалоговый помощник с менее частыми отказами

Ограничения

Частота отказов заметно снижена, что повышает вероятность ответов на небезопасные запросы. Показатели отказов и KL-расхождения приведены разработчиком и не устанавливают качество модели на других задачах.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

This is a decensored version of InternScience/Agents-A1-4B, made using Heretic v2.0.0.dev0

[!TIP] This model is reproducible!

See the README in the reproduce directory for more information.

Abliteration parameters

ParameterValue
direction_indexper layer
attn.o_proj.max_weight1.44
attn.o_proj.max_weight_position21.20
attn.o_proj.min_weight1.11
attn.o_proj.min_weight_distance9.96
mlp.down_proj.max_weight1.44
mlp.down_proj.max_weight_position28.14
mlp.down_proj.min_weight0.86
mlp.down_proj.min_weight_distance15.40

Performance

MetricThis modelOriginal model (InternScience/Agents-A1-4B)
Refusals11/10099/100
KL divergence0.05980 (by definition)

Summary

Abliterated build of InternScience/Agents-A1-4B, InternScience's 4B agent model built on Qwen3.5, tuned for tool use and multi-step tasks. GGUF quantizations: richardyoung/Agents-A1-4B-heretic-GGUF · Ollama: richardyoung/agents-a1-4b-heretic

Abliteration Results

MetricValue
Base Refusals99/100
Abliterated Refusals11/100
Refusal Reduction89%
KL Divergence0.060

The very low KL divergence (0.060, far below the 0.5 “damage” threshold) means the model retains essentially all of its original capabilities and coherence.

Quick Start

With Ollama

ollama run richardyoung/agents-a1-4b-heretic
# or straight from Hugging Face
ollama run hf.co/richardyoung/Agents-A1-4B-heretic-GGUF

With llama.cpp

huggingface-cli download richardyoung/Agents-A1-4B-heretic-GGUF \
    --include "*Q4_K_M*" --local-dir ./models

./llama-cli -m ./models/*Q4_K_M*.gguf -ngl 99

With Python (llama-cpp-python)

from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="richardyoung/Agents-A1-4B-heretic-GGUF",
    filename="*Q4_K_M*",
    n_gpu_layers=-1,
)

output = llm.create_chat_completion(
    messages=[{"role": "user", "content": "Explain abliteration in simple terms."}]
)
print(output["choices"][0]["message"]["content"])

With Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "richardyoung/Agents-A1-4B-heretic"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="auto")
messages = [{"role": "user", "content": "Explain abliteration in simple terms."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tokenizer.decode(model.generate(inputs, max_new_tokens=256)[0][inputs.shape[-1]:], skip_special_tokens=True))

What is Abliteration?

Abliteration removes the "refusal direction" from a model's residual stream — a surgical modification that disables safety refusals without retraining. See Refusal in Language Models Is Mediated by a Single Direction. Heretic automates it: it searches ablation parameters with an optimizer (200 trials here) and keeps the trials that best trade off fewer refusals against KL divergence from the original model.

Intended Use

Research, creative writing, education on alignment techniques, and unrestricted local inference. This model will comply with requests the original refuses; use responsibly and in accordance with applicable laws.

Other Models by richardyoung

Built & maintained by Richard Young · DeepNeuro

The original model card follows below.


Agents-A1: Scaling the Horizon, Not the Parameters: Reaching Trillion-Parameter Performance with a 35B Agent

[!Note] This repository contains model weights and configuration files for Agents-A1 in the Hugging Face Transformers format.

These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, etc.


🔥 News

  • 2026.7.14: 🔥🔥 The 4B model has been released.

  • 2026.7.8: 🔥🔥 By popular demand from the community, our 4B model is coming in the next few days — making it faster and easier to build your own local AI assistant.

  • 2026.7.2: 🔥🔥 Based on Agents-A1, we have released a series of quantized model variants. Please refer to the Agents-A1 collection. Besides, we’d like to thank the mlx-community for providing quantized versions at multiple scales. Try running Agents-A1 on your Mac!

  • 2026.6.26: 🔥🔥 We have open-sourced the Agents-A1 35B-A3B model, along with the evaluation code for selected domains and the technical report.


Agents‑A1 is a long-horizon agentic model from InternScience, built to scale heterogeneous agentic abilities across multiple domains including Long‑horizon Search, Engineering, Scientific Research, Instruction Following, and Tool-calling. We investigate agent-horizon scaling from two perspectives: scaling long-horizon trajectories and scaling heterogeneous agent abilities.

From the scaling of long-horizon trajectories, Agents‑A1 is trained with the assistance of a domain-grounded knowledge-action infrastructure that jointly constructs actions, observations, and verifier outcomes, turning the agent's process into a trainable target. From the scaling of heterogeneous agent abilities, Agents‑A1 presents a three-stage training paradigm for building scalable general-purpose agentic model. First, we perform full-domain supervised fine-tuning to align the base model with broad agentic behaviors. Second, we train domain-level teacher models to capture specialized expertise in each domain. Third, we propose multi-teacher multi-domain on-policy distillation with heterogeneity-aware optimization to improve knowledge transfer efficiency across different domains.

Highlights

  • Agentic Reasoning: Agents-A1 excels at decomposing complex tasks into executable sub-steps, planning ahead, and adapting its strategy based on intermediate results.
  • Tool Use: Natively supports function calling and tool integration, enabling seamless interaction with APIs, code interpreters, search engines, and other external tools.
  • Scientific and Professional Reasoning: Handles tool-integrated scientific reasoning and professional knowledge question answering.
  • Instruction Following: Precisely follows detailed, multi-constraint instructions across diverse domains.

We welcome developers and enterprises to integrate and try Agents-A1 and share their feedback.

Performance

We release the dense model Agents-A1-4B with only 4B parameters, yet it delivers impressive performance across long-horizon search, engineering & research, instruction following, and general/scientific agentic tasks. It significantly outperforms similarly-sized models on BrowseComp (66.8), XBench-DS-2510 (90.0), GAIA (95.1), FrontierScience-Research (33.3), and IFEval (94.8), with some scores approaching or even surpassing larger MoE models like Nex-N2-mini and Qwen3.6. Compared to the flagship 35B Agents-A1, the 4B variant achieves strong competitiveness with a fraction of the parameters, demonstrating the series' excellent balance between efficiency and performance, and continuously narrowing the gap between small models and frontier systems.

Usage

SGLang

SGLang is a fast serving framework for large language models and vision language models.

Install SGLang with uv:

uv venv --python 3.12 --seed --managed-python
source .venv/bin/activate

uv pip install sglang

See its documentation for more details.

The following commands create API endpoints at http://localhost:8000/v1:

  • Standard Version (1 GPUs, 262K context):

    python -m sglang.launch_server \
      --model-path InternScience/Agents-A1-4B \
      --port 8000 \
      --tp-size 1 \
      --mem-fraction-static 0.8 \
      --context-length 262144 \
      --reasoning-parser qwen3
    
  • Tool Use:

    python -m sglang.launch_server \
      --model-path InternScience/Agents-A1-4B \
      --port 8000 \
      --tp-size 1 \
      --mem-fraction-static 0.8 \
      --context-length 262144 \
      --reasoning-parser qwen3 \
      --tool-call-parser qwen3_coder
    

vLLM

vLLM is a high-throughput and memory-efficient inference and serving engine for LLMs.

Install vLLM from the main branch via uv:

uv venv --python 3.12 --seed --managed-python
source .venv/bin/activate

uv pip install vllm --torch-backend=auto

See its documentation for more details.

The following commands create API endpoints at http://localhost:8000/v1:

  • Standard Version (1 GPUs, 262K context):

    vllm serve InternScience/Agents-A1-4B \
      --port 8000 \
      --tensor-parallel-size 1 \
      --max-model-len 262144 \
      --reasoning-parser qwen3
    
  • Tool Call:

    vllm serve InternScience/Agents-A1-4B \
      --port 8000 \
      --tensor-parallel-size 1 \
      --max-model-len 262144 \
      --reasoning-parser qwen3 \
      --enable-auto-tool-choice \
      --tool-call-parser qwen3_coder
    
  • Text-Only (skips vision encoder to free KV cache memory):

    vllm serve InternScience/Agents-A1-4B \
      --port 8000 \
      --tensor-parallel-size 1 \
      --max-model-len 262144 \
      --reasoning-parser qwen3 \
      --language-model-only
    

Recommended Sampling Parameters & System Prompt

For the best generation quality and more stable multi-turn behavior, we recommend using the following sampling parameters:

  • temperature: 0.85
  • top_p: 0.95
  • top_k: 20
  • min_p: 0.0
  • presence_penalty: 1.1
  • repetition_penalty: 1.0

We also recommend using the following system prompt:

You are Intern-A1, a deep research assistant developed by InternAgent Team, Shanghai Artificial Intelligence Laboratory. 你是Intern-A1, 一个由上海人工智能实验室的InternAgent团队开发的深度研究人工智能助手。 You can have natural multi-turn conversations with users on any topic.

## Daily Chat & Simple Questions
For everyday conversations, greetings, opinions, coding help, factual lookups, definitions, calculations, explanations, and any question you can confidently answer from your knowledge — just respond directly and naturally in the user's language as Intern-A1. Do NOT use any tools for these.

## Research & Search Questions
Only when the user's question requires up-to-date information, in-depth investigation, multi-source verification, or involves recent events, niche topics, or anything you are uncertain about, use the available tool **tavily_search**.

Research strategy:
- Start with a focused search query to get an overview.
- If the initial search is insufficient, refine your query with more specific terms.
- Stop searching once you have enough information to provide a comprehensive answer. Do not over-research.

Current date: 2026-07-13

[!Note] The current date should be updated dynamically when possible.

Agent Capability Evaluation

To provide the community with a unified agent evaluation codebase for fair comparison, we have also open-sourced an evaluation framework for assessing agentic models across core capabilities, including tool use and multi-step reasoning. The evaluation code is included in the Agents-A1/evaluation of this repository.

We use this framework to evaluate the released model under a standardized and reproducible setting. Specifically, the model is tested on a set of agent-oriented tasks that require it to understand user goals, decompose complex instructions, interact with tools or environments when necessary, and produce final results. The evaluation results reported in Model Card are generated using the open-source framework above, so that users can reproduce the experiments, compare other models under the same protocol, and further extend the benchmark for new agent scenarios. (Note that: To ensure a fair comparison, we report the benchmark results from their original technical reports. If a model does not report the corresponding benchmark results, we evaluate it using the same evaluation protocol as our model.)

For detailed evaluation scripts, task definitions, metrics, and reproduction instructions, please refer to the evaluation codebase.

Citation

If you find our work helpful, feel free to give us a cite.

@misc{bai2026scalinghorizonparametersreaching,
      title={Scaling the Horizon, Not the Parameters: Reaching Trillion-Parameter Performance with a 35B Agent}, 
      author={Lei Bai and Zongsheng Cao and Yang Chen and Zhiyao Cui and Shangheng Du and Yue Fan and Shiyang Feng and Zijie Guo and Haonan He and Liang He and Xiaohan He and Shuyue Hu and Yusong Hu and Songtao Huang and Yichen Jiang and Hao Li and Xin Li and Dahua Lin and Weihao Lin and Fenghua Ling and Dongrui Liu and Zhuo Liu and Runmin Ma and Chunjiang Mu and Haoyang Peng and Tianshuo Peng and Jinxin Shi and Luohe Shi and Boyuan Sun and Zelin Tan and Shengji Tang and Qianyi Wang and Yiming Wu and Yi Xie and Xiangchao Yan and Jingqi Ye and Peng Ye and Fangchen Yu and Jiakang Yuan and Bihao Zhan and Bo Zhang and Chen Zhang and Shufei Zhang and Shuaiyu Zhang and Wenlong Zhang and Yiqun Zhang and Junpeng Zhao and Zhijie Zhong and Bowen Zhou and Yuhao Zhou},
      year={2026},
      eprint={2606.30616},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2606.30616}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
a30fc76

0 моделей