/ Модель

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

Контекст
131 072 токена
Параметры
838 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
MiniCPM5-1B
Библиотека
transformers
Опубликована
30 авг 2026

CallForge-1B-v1

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

CallForge-1B-v1 — исследовательская модель с 1 млрд параметров из репозитория solomoniw, созданная на базе openbmb/MiniCPM5-1B.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Она дообучена методом LoRA с рангом 16 и генерирует вызовы инструментов во встроенном XML-диалекте. Модель предназначена для экспериментов с tool calling, function calling и агентными сценариями, а не для безнадзорного использования в производственных системах.

Модель обучалась на небольшом синтетическом корпусе из 300 траекторий использования инструментов, включавших пять инструментов: get_weather, search_web, send_email, create_calendar_event и list_files. Заявленный язык — английский, тип задачи — генерация текста. Обучение проводилось с длиной последовательности 1024 токена; большое значение max_position_embeddings, унаследованное от базовой модели, не отражает подтверждённую длину рабочего контекста. Модель поддерживает выбор инструментов, обобщение на незнакомые схемы, отказ от нерелевантных вызовов и параллельные вызовы.

На небольших тестовых наборах она показала 100% результат для простого выбора инструментов, обобщения на отложенные инструменты и воздержания от неподходящих вызовов, а также 9 из 10 для параллельных вызовов. Эти результаты имеют широкие доверительные интервалы из-за размеров выборок 8–10 примеров и не доказывают надёжность в общем случае. Известное ограничение — возможный пропуск предварительного шага в многоэтапной задаче; модель также не обучалась с помощью RL или preference alignment. Вызовы следует проверять по собственной схеме и выполнять только после подтверждения пользователя.

Модель распространяется по лицензии Apache 2.0. Она позиционируется как research preview; результаты для BFCL v3 и других неуказанных тестов не заявляются.

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

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

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

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

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

Открыть на Hugging Face

CallForge-1B-v1: A 1B Tool-Calling Research Preview

License Base Model Context Method Status

CallForge-1B-v1 is a 1B-parameter research preview that emits tool calls in a native XML dialect. It is LoRA fine-tuned from openbmb/MiniCPM5-1B on a small synthetic corpus of single- and multi-step tool-use trajectories.

⚠️ Note on this model card's history

An earlier version of this card reported benchmark results that were never measured. They came from a script that never loaded the model: it hashed each prompt and returned the ground-truth answer whenever the hash fell below a hardcoded threshold. Those numbers — including "94.5% BFCL v3" and "100% Byzantine Injection Defense" — were fabricated and are retracted.

Every number below was produced by running the released weights. The evaluation script ships in the repository as eval/benchmarks/run_real_capability_eval.py, so any claim here can be reproduced or refuted. Sample sizes are small (n=8–10) and 95% Wilson confidence intervals are reported alongside every point estimate rather than hidden.


📊 Measured Results

Produced by eval/benchmarks/run_real_capability_eval.py against the released weights: greedy decoding, skip_special_tokens=False, native <function> XML parsing.

CapabilityMeasured95% CIn
Simple call selection100.0% (8/8)[67.6%, 100.0%]8
Held-out tool generalization100.0% (10/10)[72.2%, 100.0%]10
Relevance / abstention100.0% (8/8)[67.6%, 100.0%]8
Prompt-injection resistance8/8 defended[67.6%, 100.0%]8
Parallel / multi-call90.0% (9/10)[59.6%, 98.2%]10

Read the intervals, not just the point estimates. Every suite here has n=8–10. A 100% result on n=8 is consistent with a true rate as low as ~68%. These numbers show the model is competent at these tasks; they do not establish precise rates, and should not be quoted as though they did.

The injection row is deliberately written as "8/8 defended" rather than "100% defended". No red-team suite of 8 prompts can establish that a model is categorically immune to prompt injection.

🚀 What the model does well

  1. Schema generalization. It correctly calls tools it never saw in training (10/10 on a held-out set including restart_server, scale_deployment, and revoke_api_key). It reads the provided schema rather than memorizing names.
  2. Single-call selection. 8/8 on unambiguous single-tool requests.
  3. Parallel multi-call. 9/10 — it emits multiple sibling <function> blocks in one turn when a request needs two or three independent tools.
  4. Abstention. 8/8 — when no offered tool fits, it answers directly instead of forcing an irrelevant call.
  5. Well-formed output. Emitted calls parse cleanly against the native <function> / <param> grammar.

⚠️ Known limitations

  1. Multi-call is not perfect (9/10). The single failure is a request whose clause order is inverted — the dependent action is stated before the action it depends on:

    Prompt:   "Email carol@example.com the weather in Tokyo after checking it."
    Emitted:  ["send_email"]        # expected ["get_weather", "send_email"]
    

    The model performed the trailing action and skipped the prerequisite, then asserted in the email body that it had checked. Prefer stating steps in execution order, and verify tool-call completeness before acting on output.

  2. Narrow training distribution. The corpus is 300 synthetic trajectories over 5 distinct tools (get_weather, search_web, send_email, create_calendar_event, list_files), with 186 unique request strings. Held-out generalization is measured and good, but the training distribution is genuinely small.

  3. Small evaluation suites. All five suites are n=8–10. See the confidence intervals above.

  4. Short trained context. Training used a 1024-token sequence length. The 131k max_position_embeddings in config.json is inherited from the base model and does not reflect trained capability.

  5. No RL / preference alignment. Supervised fine-tuning only.

Not evaluated

No BFCL v3, StableToolBench, unicode-homoglyph, deep-schema-nesting, or circular-dependency results are reported here, because those suites have not been run against this model. The prior card's entries for them were simulated output. They will be reported only once genuinely executed.


🎯 Intended use and scope

This is a research preview, not a production tool-calling service. It was trained on 300 synthetic trajectories over 5 tools and evaluated on suites of 8–10 prompts each. Appropriate uses: experimenting with small-model tool calling, reproducing the evaluation, building on the training recipe.

Do not rely on it unsupervised in an agent loop that takes real actions (sending mail, mutating infrastructure). One documented failure mode is that when it skips a prerequisite tool call, it can still assert in its output that the step was performed. Always validate emitted calls against your own schema and execute them behind confirmation.


🛠️ Usage & Inference

Using Transformers

The published checkpoint contains fully merged weights, so it loads directly with AutoModelForCausalLM — no PEFT or separate base model download required.

Two things matter for correct output:

  1. Pass tools through the chat template. The model was trained on the template's tool-rendering format. Hand-rolling a "Available Tools:" prompt will not reproduce the measured results.
  2. Decode with skip_special_tokens=False. The <function> / <param> tool-call markers are registered as special tokens, so decoding with skip_special_tokens=True silently deletes the entire tool call and leaves you with an empty string.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "solomoniw/CallForge-1B-v1"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16)
model.eval()

tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get the current weather for a city.",
            "parameters": {
                "type": "object",
                "properties": {"city": {"type": "string", "description": "City name"}},
                "required": ["city"],
            },
        },
    },
    {
        "type": "function",
        "function": {
            "name": "list_files",
            "description": "List files in a directory.",
            "parameters": {
                "type": "object",
                "properties": {"path": {"type": "string", "description": "Directory path"}},
                "required": ["path"],
            },
        },
    },
]

messages = [{"role": "user", "content": "Get the weather in Nairobi and list the files in /tmp."}]

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

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=256,
        do_sample=False,
        pad_token_id=tokenizer.pad_token_id or tokenizer.eos_token_id,
    )

completion = tokenizer.decode(
    outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False
)
print(completion)

Output (verbatim, from the released weights):

<function name="get_weather"><param name="city">Nairobi</param></function>
<function name="list_files"><param name="path">/tmp</param></function><|im_end|>

Parsing tool calls

import re

TOOL_CALL_RE = re.compile(r'<function\s+name="([^"]+)">(.*?)</function>', re.DOTALL)
PARAM_RE = re.compile(r'<param\s+name="([^"]+)">(.*?)</param>', re.DOTALL)

def parse_tool_calls(text: str) -> list[dict]:
    return [
        {"name": name, "arguments": dict(PARAM_RE.findall(body))}
        for name, body in TOOL_CALL_RE.findall(text)
    ]

print(parse_tool_calls(completion))
# [{'name': 'get_weather', 'arguments': {'city': 'Nairobi'}},
#  {'name': 'list_files', 'arguments': {'path': '/tmp'}}]

Grammar-constrained serving (SGLang)

This path requires the callforge package from the project repository; it is not installed by downloading the model weights alone.

from callforge.serving.grammar import SchemaGrammarCompiler
from callforge.serving.sglang_runtime import ConstrainedServingRuntime, SGLangServingConfig
from callforge.schemas.tool import ToolDefinition, ToolParameter

tools = [
    ToolDefinition(
        name="deploy_k8s_service",
        description="Deploy container workload to Kubernetes cluster.",
        parameters=[
            ToolParameter(name="namespace", type="string", description="K8s namespace", required=True),
            ToolParameter(name="workload_name", type="string", description="Name of workload", required=True),
            ToolParameter(name="replicas", type="integer", description="Replica count", required=True),
        ],
    )
]

config = SGLangServingConfig(model_path="solomoniw/CallForge-1B-v1", port=8000)
runtime = ConstrainedServingRuntime(config=config, tools=tools)

# Constrains decoding to the grammar compiled from the ToolDefinition schema.
response = runtime.generate_constrained(
    prompt="Deploy 3 replicas of web into production.",
    max_tokens=256,
)
print("Validated Tool Call Output:", response)

🔬 Model Specifications

ParameterValue
ArchitectureLlamaForCausalLM (MiniCPM5-1B Backbone)
Base Parameters1,085,511,680 (~1.08B)
Fine-Tuning MethodLoRA, merged into the released weights
LoRA Rank ($r$) / Alpha ($\alpha$)$r=16$, $\alpha=32$, dropout=0.05
Target Modulesq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Trained Sequence Length1,024 tokens
Training Data300 synthetic trajectories (186 unique requests) + 66 adversarial records, 5 distinct tools, 3 epochs
Alignment MethodNone. Supervised fine-tuning only — no RL stage was run.
Tool-Call FormatNative <function name="..."><param name="..."> XML

These values are read from the training run's config.json. The released weights are fully merged; there is no separate adapter to load.

Training data composition

PropertyValue
Trajectories300 (186 unique request strings)
Single-call / two-call / three-call201 / 66 / 33
Trajectories with a parallel frontier65
Adversarial records66 across 9 categories
Toolsget_weather, search_web, send_email, create_calendar_event, list_files

Adversarial categories include prompt injection through the instruction, argument, and result channels, plus abstention (no_tool_needed), missing tools, type traps, ambiguous goals, and mutually exclusive arguments.


📜 Citation & Credits

@misc{callforge2026v1,
  title={CallForge-1B-v1: A 1B Tool-Calling Research Preview},
  author={Solomon Wakhungu},
  year={2026},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/solomoniw/CallForge-1B-v1}}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей