/ Модель

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

Контекст
32 768 токенов
Параметры
1,5 млрд
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-1.5B-Instruct
Библиотека
transformers
Опубликована
30 июл 2026

sakthai-context-1.5b-merged-v2

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

Компактная дообученная модель Qwen2.5 для генерации текста и структурированных вызовов инструментов при локальном запуске.

56скачиваний за 30 дней0лайковвеса обновлены1 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • custom

    ratio

    Результат

    100

    text-generation 100
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

  • sakthai-bench-v2

    arguments

    Результат

    44,2

    text-generation 34,9text-generation 34,2
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

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

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

SakThai Context 1.5B Merged V2 — это дообученная и объединённая модель на основе Qwen2.5-1.5B-Instruct, опубликованная House of Sak. Она предназначена для генерации текста и структурированных вызовов инструментов и функций в диалоговых сценариях, в том числе при локальном запуске на CPU или периферийном устройстве. Модель содержит 1,5 млрд параметров, использует архитектуру Qwen2 и имеет контекстное окно 32 768 токенов. Доступны веса SafeTensors и GGUF Q4_K_M; для работы с вызовами инструментов требуется XML-блок описания инструментов в системном запросе.

Карточка сообщает о результатах внутренних тестов, но они не прошли независимую проверку. Модель компактнее варианта на 7B параметров, однако уступает ему в рассуждениях; точность формирования аргументов вызова инструментов ограничена. Поведение при вызовах инструментов проверялось на английском языке, поддержка других языков для этой задачи не подтверждена. Лицензия — Apache 2.0.

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

  • вызов функций с JSON-аргументами в диалоговом ассистенте
  • выбор инструмента по запросу пользователя
  • многошаговые диалоги с несколькими вызовами инструментов
  • локальный запуск текстового ассистента на CPU или периферийном устройстве

Ограничения

Для вызова инструментов требуется XML-блок описания инструментов в системном запросе. Результаты тестов внутренние и независимо не проверялись; точность аргументов вызовов ограничена, а поведение при вызовах инструментов на других языках не подтверждено.

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

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

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

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

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

Открыть на Hugging Face

SakThai Context 1.5B — Merged V2


Model Description

SakThai Context 1.5B Merged V2 is a merged full-weight checkpoint of Qwen2.5-1.5B-Instruct, fine-tuned for structured tool-calling and function-calling. It fills the mid-weight slot between the edge-focused 0.5B and the high-capability 7B. Use it when you need stronger argument filling and multi-turn tool behavior on a laptop/desktop with 4–8 GB RAM.

What makes it special:

  • 🧠 1.5B parameters — stronger reasoning than 0.5B, smaller than 7B.
  • 🗳️ Trained for structured <tool> / <tool_call> output.
  • 📦 GGUF Q4_K_M + BF16 safetensors included.
  • ✅ Benchmarks available: Bench v2 selection 34.9%, arguments 44.2%, strict 34.2%; internal smoke test 100% multi-tool correctness / valid JSON.
  • 🔁 Rebuilt merged weights, ready for CPU inference with llama.cpp or transformers.

Requirements

Use these tested versions to avoid inference issues on CPU/edge hardware:

torch>=2.2
transformers>=4.45
sentencepiece>=0.2
protobuf>=3.20
accelerate>=0.27

For GGUF inference:

llama-cpp-python>=0.2.80

Quick Start

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "Nanthasit/sakthai-context-1.5b-merged-v2"
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float32, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)

messages = [
  {"role": "system", "content": "<tools>\n[{\"name\": \"get_weather\", \"description\": \"Get current weather\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}}}]\n</tools>"},
  {"role": "user", "content": "What's the weather in Bangkok?"},
]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Ollama

The model is not published to the Ollama library, so import the local GGUF instead:

ollama create sakthai:1.5b-v2 -f Modelfile

Modelfile:

FROM ./sakthai-1.5b-q4_k_m.gguf

GGUF (llama.cpp)

# Option A — huggingface-cli
huggingface-cli download Nanthasit/sakthai-context-1.5b-merged-v2 --include "*.gguf" --local-dir ./
# Option B — direct wget
wget https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged-v2/resolve/main/sakthai-1.5b-q4_k_m.gguf

llama-cli -m sakthai-1.5b-q4_k_m.gguf \
  --prompt "<|system|>You are SakThai-Agent.<|user|>What's the weather in Bangkok?<|assistant|>" -n 256

Hugging Face Inference Providers (free-tier available)

Use the hosted Inference API with huggingface_hub.InferenceClient:

from huggingface_hub import InferenceClient

client = InferenceClient(model="Nanthasit/sakthai-context-1.5b-merged-v2")
messages = [
  {"role": "system", "content": "<tools>\n[{\"name\": \"get_weather\", \"description\": \"Get current weather\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}}}]\n</tools>"},
  {"role": "user", "content": "What's the weather in Bangkok?"},
]
response = client.chat_completion(messages=messages, max_tokens=256)
print(response.choices[0].message.content)

Tool-Calling Format

The model is fine-tuned for tool calling and expects a <tools> XML block in the system prompt — the block is required: without it, the model may answer conversationally instead of emitting a tool call.

Verified output format

System: <tools>
[
  {"name": "get_weather", "description": "Get current weather", "parameters": {"type": "object", "properties": {"location": {"type": "string"}}}}
]
</tools>
User: What's the weather in Bangkok?
Assistant: <tool>get_weather</tool>

For calls with arguments, the bundled chat_template.jinja renders the standard Qwen <tool_call> JSON form:

<tool_call>
{"name": "get_weather", "arguments": {"location": "Bangkok"}}

Architecture

PropertyValue
Base modelQwen/Qwen2.5-1.5B-Instruct
Parameters1.5B (1,500,000,000)
Hidden size1,536
Layers28
Attention heads12 (grouped-query, 2 KV heads)
Intermediate size8,960
Context window32,768 tokens
Vocab size151,936
PrecisionBF16 (safetensors) / GGUF Q4_K_M
RoPE theta1,000,000

Training Details

DetailValue
Base modelQwen/Qwen2.5-1.5B-Instruct
MethodSFT → merged to full weights
Training datasakthai-combined-v6/v7 + irrelevance-supplement
HardwareFree T4 GPU (Kaggle / Colab)

Evaluation

SettingSelectionArgumentsStrictValid JSONMulti-tool
SakThai Bench v234.9%44.2%34.2%——
Internal smoke test———100%100%

Notes:

  • Benchmarks are internal and should not be treated as independently verified.
  • model-index uses verified: true only because the corresponding .eval_results/ files are present in the repo.

Deployment

CPU-only

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "Nanthasit/sakthai-context-1.5b-merged-v2"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float32,
    device_map="cpu",
    low_cpu_mem_usage=True,
)
model.eval()
messages = [
  {"role": "system", "content": "<tools>\n[{\"name\": \"get_weather\", \"description\": \"Get current weather\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}}}]\n</tools>"},
  {"role": "user", "content": "What's the weather in Bangkok?"},
]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
with torch.no_grad():
    out = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(out[0], skip_special_tokens=True))

Edge / llama.cpp

huggingface-cli download Nanthasit/sakthai-context-1.5b-merged-v2 --include "*.gguf" --local-dir ./
llama-cli -m sakthai-1.5b-q4_k_m.gguf --prompt "<|system|>You are SakThai-Agent.<|user|>What's the weather in Bangkok?<|assistant|>" -n 256

1.5B vs 7B Tradeoffs

Property1.5B Merged V27B Merged
Parameters1.5B7B
SafeTensors2.9 GB14.2 GB
GGUF Q4_K_M~1.3 GB~4.6 GB
RAM needed~3 GB~8 GB
Tool selection34.9%Higher
Best useLaptop/desktop, balanced CPU inferenceHigh-power workstation/server

If you need stronger tool argument accuracy and more headroom, use the 7B Merged. If you need the smallest footprint, use the 0.5B Merged.


Limitations

  • Smaller than 7B — still has reasoning limits compared to larger checkpoints.
  • Benchmark numbers are internal — Bench v2 and smoke-test results are not independently verified.
  • Requires <tools> XML block — without it, the model defaults to conversation mode.
  • English-only behavior — untested in other languages for tool calls.
  • Argument accuracy is lower than selection — Arguments Accuracy 44.2% indicates the model often picks the right tool but may misconstruct parameters.

SakThai Model Family

All 26 public models in the family, sorted by downloads (live counts, verified 2026-08-01):

ModelSizeDownloadsRole
Context 1.5B Merged3.8 GB1,894Flagship tool-calling
Context 0.5B Merged1.3 GB1,730Lightweight / edge
Context 7B Merged14.2 GB1,055Full-power reasoning
Embedding Multilingual448.8 MB651Cross-lingual embeddings
Context 7B 128K—643128K YaRN adaptation
Context 7B Tools19.3 MB5277B tool-calling adapter
Context 1.5B Tools8.3 MB504Tool-calling adapter
Context 1.5B Merged V22.9 GB354v2 merged
Vision 7B3.8 GB337Image-to-text
Plus 1.5B LoRA70.5 MB306rsLoRA adapter
Context 0.5B Tools942.3 MB474Edge tool-calling
TTS Model134.8 MB268TTS, 15 langs
Plus 1.5B2.9 GB297General assistant
Context 1.5B Tools V270.5 MB192v2 tool-calling adapter
Coder 1.5B1.0 GB173Code generation
Coder Browser2.9 GB259Browser automation
Coder Browser GGUF6.6 GB153Browser GGUF
Coder Browser LoRA70.5 MB55Browser adapter
Embedding104.7 MB23Private embedding
Plus 1.5B Coder—0Coding assistant
SFT Out4.1 MB0TRL SFT adapter output
Context 0.5B Tools SFT8.3 MB0SFT pilot adapter
Context 0.5B Tools SFT V28.3 MB0SFT v2 adapter
Bench V2—0Benchmark scaffold
Pipeline—0Automation scripts
Eval Results—0Companion eval data

Full collection


The House of Sak 🏠

This model is part of the House of Sak — an open-source AI ecosystem built from a shelter in Cork, Ireland, with $0 budget and no paid GPUs.

"We are one family — and becoming more." — Beer (beer-sakthai)


Support

  • ⭐ Leave a like
  • 🐛 Report issues on GitHub
  • 🔄 Share with anyone building accessible AI on CPU/edge
  • 🍴 Fork and experiment — Apache 2.0

Citation

@misc{sakthai-context-1.5b-merged-v2,
  title = {SakThai Context 1.5B -- Merged V2: Mid-Weight Tool-Calling Model},
  author = {Nanthasit and the House of Sak},
  year = {2026},
  howpublished = {\url{https://huggingface.co/Nanthasit/sakthai-context-1.5b-merged-v2}},
  note = {Apache 2.0, fine-tuned from Qwen/Qwen2.5-1.5B-Instruct}
}

License

Apache 2.0. Qwen2.5 base model per its original license.


Built from a shelter in Cork, Ireland. Built with love, tears, and zero budget — to the world.

Family downloads API-verified (2026-08-01T10:23Z).

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей