/ Модель

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

Контекст
131 072 токена
Параметры
3,2 млрд
Размер весов
6,4 ГБ
Лицензия
Llama 3.2
Архитектура
llama · dense
Базовая модель
Llama-3.2-3B-Instruct
Библиотека
transformers
Опубликована
8 окт 2026

Llama-3.2-3B-AgentInstruct

Генерация текстаТекст → текст

Дообученная на траекториях AgentInstruct модель Llama 3.2 на 3,2 млрд параметров для выполнения текстовых агентных задач в цикле ReAct.

214скачиваний за 30 дней0лайковвеса обновлены8 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Rumiii/Llama-3.2-3B-AgentInstruct — языковая модель на архитектуре Llama, разработанная на основе Meta Llama-3.2-3B-Instruct и дообученная командой Rumiii для поведения агента. Модель обрабатывает текстовые задания в цикле ReAct: формулирует мысль, предлагает одно действие, учитывает ответ среды и продолжает до завершения задачи. Размер — 3,2 млрд параметров, нативный контекст — 131 072 токена.

Модель предназначена для агентных сценариев с командами оболочки, SQL-запросами и действиями в текстовой среде. Она обучена на 1 866 траекториях из набора zai-org/AgentInstruct и перенимает форматы действий и поведение агента, а не новые знания о мире. Используется текстовый протокол ReAct; встроенный JSON-вызов инструментов Llama не поддерживается. Для применения нужны внешний исполнитель действий и передача модели результатов среды. Модель распространяется по лицензии llama3.2.

Качество проверялось только в небольших неформальных тестах, без формальных бенчмарков. Модель с 3 млрд параметров может ошибаться в многошаговых задачах, поэтому её действия следует проверять; наилучшие результаты ожидаются с промптами в формате AgentInstruct.

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

  • выполнение команд в Linux-оболочке с учетом вывода команд
  • составление SQL-запросов для ответов по таблицам
  • выполнение заданий в текстовой симуляции бытовой среды
  • многошаговое решение задач с внешними инструментами через протокол ReAct

Ограничения

Проверялась только в небольших неформальных тестах, без формальных бенчмарков; в многошаговых задачах может ошибаться, поэтому действия нужно проверять. Настроена на формат AgentInstruct, использует текстовый ReAct-протокол и не поддерживает встроенный JSON-вызов инструментов Llama.

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

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

Открыть на Hugging Face

image

Llama-3.2-3B-AgentInstruct

Llama-3.2-3B-AgentInstruct is Llama-3.2-3B-Instruct fine-tuned to act as an agent. Given a task, it reasons step by step ("Think"), takes one action ("Act"), reads the environment's response, and repeats until the task is solved.

Dataset

Training used zai-org/AgentInstruct, a curated set of 1,866 ReAct-style trajectories across six real-world agent tasks:

TaskTrajectoriesWhat the agent does
Operating System195Solves tasks in a Linux shell using bash
Database538Writes SQL to answer questions over tables
ALFWorld336Completes household tasks in a text-based world
WebShop351Searches and selects products on a shopping site
Mind2Web122Chooses actions to navigate real websites
Knowledge Graph324Answers questions by querying a knowledge graph

The trajectories were generated with GPT-4 and filtered by reward, so only successful runs are kept. Every action is paired with a written thought, which gives the model its reasoning supervision.

Training

Fine-tuned with QLoRA and merged into the base weights (16-bit). Loss was computed only on the assistant's turns, and every conversation was used in full with no truncation. The model's native Llama 3 chat template was used throughout.

What the model can do

  • Follow the Think/Act loop and stop cleanly when the task is done.
  • Use the output of previous steps (command results, search results, errors) to decide the next action.
  • Adapt to new tasks within the same families, such as new shell commands or new SQL questions.

It learns the agent behavior and output formats, not new world knowledge. It uses a plain-text ReAct protocol and does not use Llama's native JSON tool-calling. For best results, prompt it in the style of the original AgentInstruct tasks.

Usage

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

repo = "Rumiii/Llama-3.2-3B-AgentInstruct"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float16, device_map="auto")

instructions = """You are an assistant that will act like a person, I'will play the role of linux(ubuntu) operating system. Your goal is to implement the operations required by me or answer to the question proposed by me. For each of your turn, you should first think what you should do, and then take exact one of the three actions: "bash", "finish" or "answer".

1. If you think you should execute some bash code, take bash action, and you should print like this:

Think: put your thought here.

Act: bash

```bash
# put your bash code here
```

2. If you think you have finished the task, take finish action, and you should print like this:

Think: put your thought here.

Act: finish

3. If you think you have got the answer to the question, take answer action, and you should print like this:

Think: put your thought here.

Act: answer(Your answer to the question should be put in this pair of parentheses)

If the output is too long, I will truncate it. Attention, your bash code should not contain any input operation. Once again, you should take only exact one of the three actions in each turn.

Now, my problem is:

"""

task = "How many lines are there in the file notes.txt in the current directory?"
messages = [{"role": "user", "content": instructions + task}]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, add_special_tokens=False, return_tensors="pt").to(model.device)

output = model.generate(
    **inputs,
    max_new_tokens=512,
    do_sample=False,
    eos_token_id=tokenizer.convert_tokens_to_ids("<|eot_id|>"),
)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Example output:

Think: I need to find the number of lines in the file notes.txt. I can use the wc -l command.

Act: bash

```bash
wc -l notes.txt
```

To run it as an agent, execute the returned bash command, append the assistant's reply to messages, add your command's output as the next user message in the form The output of the OS:\n<output>, and generate again until the model replies with Act: answer(...) or Act: finish.

Safety note: run any model-generated commands inside a sandbox or container.

Limitations

  • Evaluated only on small informal tests, not on formal agent benchmarks.
  • A 3B model can make mistakes in multi-step tasks; verify its actions before relying on them.
  • Tuned for the AgentInstruct task formats; other prompt styles may work less reliably.

Built with Llama.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
5654d59

0 моделей