/ Модель

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

Контекст
4 096 токенов
Параметры
147 млн
Лицензия
MIT
Архитектура
speck · dense
Базовая модель
Speck1-140M
Библиотека
transformers
Опубликована
25 авг 2026

Speck1.1-140M-Instruct

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

Компактная англоязычная инструктивная модель для генерации текста и простых диалогов, созданная дообучением Speck1-140M.

371скачиваний за 30 дней3лайкавеса обновлены15 сен 2026

Бенчмарки

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

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

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

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

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

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

Speck1.1-140M-Instruct — компактная англоязычная языковая модель Speck Labs для генерации текста и выполнения инструкций в формате диалога. Это дообученная версия Speck1-140M: модель с 146,7 млн параметров обучали один эпох на смеси SpeckChat2 из примерно 499 тысяч разговоров. Она использует гибридную архитектуру с групповым вниманием и управляемыми причинными свёртками; блоки также содержат слои SwiGLU. В Transformers доступны чат-шаблон с необязательным системным сообщением и контекст до 4096 токенов.

Модель подходит для простых англоязычных диалогов, коротких ответов и экспериментов с компактными языковыми моделями. Её возможности ограничены небольшим размером: следование инструкциям непоследовательно, длинные ответы могут повторяться или терять связность, а знания, рассуждения и многоязычность ограничены. Модель может галлюцинировать и ошибаться в коде и вычислениях; безопасность отдельно не оценивалась. Контекст конфигурации — 4096 токенов, однако проверена работа лишь до 2048. Лицензия — MIT.

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

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

Ограничения

У модели ограничены знания, рассуждения, кодирование и многоязычные возможности; следование инструкциям непоследовательно, а длинные ответы могут повторяться или терять связность. Она может галлюцинировать, отдельно не проходила оценку безопасности и проверена лишь до 2048 токенов, хотя конфигурация допускает 4096.

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

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

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

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

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

Открыть на Hugging Face

SpeckLabs

Speck1.1-140M-Instruct

Speck1.1-140M-Instruct is a 140.7M parameter English instruction-tuned language model. It was initialized from Speck1-140M, a hybrid model that interleaves global grouped-query attention with gated causal convolution, then fully fine-tuned for one epoch on the 500,000-conversation SpeckChat2 mixture.

The 1.1 release updates the instruction-tuning data and post-training run; the base architecture is unchanged. The model uses a native chat template with optional system messages and was trained with assistant-only loss.

Summary

PropertyValue
Parameters140,654,208
Base pretraining tokens5.0B
SFT training conversations499,000
SFT validation conversations1,000
Supervised assistant tokens319,181,221
SFT context tokens processed (padded)559,284,224
Non-padding SFT context tokens385,422,209
SFT sequence lengths256, 512, 1,024, 2,048
Configured max context4,096 (unvalidated beyond 2,048)
Vocabulary32,003 (Mistral v0.1 SentencePiece + 3 role tokens)
Release formatBF16 Safetensors
Final SFT validation loss / perplexity1.2358 / 3.441
CPU decode, batch 156.9 tok/s
RTX 3090 decode, batch 1243.6 tok/s

Architecture

The architecture is unchanged from Speck1-140M apart from 3 added role-token embeddings. It contains 18 residual blocks: 8 global attention + 10 gated causal convolution, each followed by a SwiGLU feed-forward.

ComponentValue
Hidden width768
Embedding width640
SwiGLU intermediate2,304
Attention heads (Q / KV)12 / 3
Head dimension64
Conv inner width384
Conv kernel sizes3, 5
RoPE theta10,000
RMSNorm epsilon1e-5

Input/output embeddings (640-wide) are tied and connect to the 768-wide residual stream through learned projections.

Chat template

Three special tokens were added to the base 32k vocabulary:

RoleTokenID
System`<system
User`<user
Assistant`<assistant

A rendered conversation has the following form:

<s><|system|>
{optional system message}</s>
<|user|>
{user message}</s>
<|assistant|>
{assistant response}</s>

The system message is optional and may appear only first. Remaining roles must alternate between user and assistant. No default system prompt is injected. During generation, the prompt ends after <|assistant|>\n, and </s> terminates the response.

Usage

Speck1.1-140M-Instruct works with the Transformers Auto classes through its bundled custom model and tokenizer code. Set trust_remote_code=True when loading it.

pip install "transformers==5.1.0" torch sentencepiece safetensors
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "specklabs/Speck1.1-140M-Instruct"
device = "cuda" if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=dtype,
).to(device)

messages = [
    {"role": "system", "content": "You are a concise assistant."},
    {"role": "user", "content": "What is the capital of France?"},
]

encoded = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    return_tensors="pt",
)
input_ids = encoded["input_ids"] if hasattr(encoded, "keys") else encoded
input_ids = input_ids.to(device)

output = model.generate(
    input_ids=input_ids,
    attention_mask=torch.ones_like(input_ids),
    max_new_tokens=64,
    do_sample=False,
    pad_token_id=tokenizer.eos_token_id,
)
generated = output[0, input_ids.shape[1] :]
print(tokenizer.decode(generated, skip_special_tokens=True))

The bundled generation path is validated for single-prompt greedy decoding. Direct forward passes support right-padded batches when use_cache=False.

Evaluation

The quality columns combine the Open SLM Leaderboard at revision 2eafcfc647b667e67f3b0288e9b67da497a78052 and BananaMind Base Bench 1.1 at revision d4aade51312889e8580963e1ce960c6eaef1a450. No chat template or generation was used for the three Speck evaluations.

Benchmarks and speed

ModelParamsTraining tokensOpen SLM Int IndexBananaMind Base Bench 1.1 EloCPU prefillCPU decodeRTX 3090 prefillRTX 3090 decodeBF16 memory @2KBF16 state @2K
BananaMind-2-Pro139M100B24.9611312,190 tok/s43.0 tok/s64,060 tok/s140.3 tok/s325.1 MiB60.0 MiB
SmolLM2-135M135M~2T27.1311192,201 tok/s47.4 tok/s64,814 tok/s157.7 tok/s301.6 MiB45.0 MiB
GPT-X2.5-135M135M75B25.1711062,042 tok/s47.2 tok/s55,346 tok/s125.0 tok/s302.6 MiB45.0 MiB
Supra2-100M-Base101M30B19.4110303,362 tok/s56.0 tok/s113,326 tok/s298.1 tok/s216.0 MiB24.0 MiB
Speck1-140M141M5B18.159652,252 tok/s55.1 tok/s74,323 tok/s247.3 tok/s281.3 MiB12.0 MiB
Speck1-140M-Instruct141M5B + 317M SFT17.7510012,285 tok/s55.3 tok/s73,398 tok/s246.7 tok/s280.3 MiB12.0 MiB
Speck1.1-140M-Instruct141M5B + 559M SFT17.9010022,315 tok/s56.9 tok/s74,941 tok/s243.6 tok/s280.3 MiB12.0 MiB

Open SLM Int Index means the chance-normalized Intelligence Index reported by the Open SLM Leaderboard. BananaMind Base Bench 1.1 Elo means the overall Elo reported by BananaMind Base Bench 1.1. Speed and memory values are local batch-1 measurements described below. Reference models saw 6-400x more pretraining tokens, so this is a parameter-adjacent comparison, not a compute-matched one.

Inference speed

Speed was measured locally at batch 1 with eager PyTorch, model-native caches, last-token logits, and tokenization excluded. Prefill uses 512 tokens. Decode measures 64 greedy cached steps after a 448-token prefix and includes argmax. CPU runs use FP32 with 16 threads; RTX 3090 runs use BF16. Reported throughput is calculated from the median duration.

The Speck1.1 measurements used PyTorch 2.9.1 and Transformers 5.1.0 on an Intel Core i7-13700K and NVIDIA GeForce RTX 3090. The CPU run used 2 warmups and 7 measurements; the GPU run used 50 prefill warmups, 25 decode warmups, and 20 measurements. At the benchmark sequence lengths, the CUDA last-token projection preserved full-logit greedy token selection with cosine similarity of 1.0 and mean absolute difference below 5.4e-6.

Memory is unique live BF16 model tensor storage plus cache/state tensor storage after a 2,048-token prefill at batch 1. Speck1.1 uses 268.3 MiB for unique model tensors and 12.0 MiB for state, or 280.3 MiB combined. This excludes framework RSS, CUDA allocator reservations, and temporary operator workspace. FP32 CPU tensor memory is approximately twice the reported BF16 model-tensor memory. For another context length N, approximate memory as model tensor memory + State@2K x N / 2,048; Speck's small convolution history is fixed rather than context-scaled. The BF16 Safetensors weight file is 281.3 MB.

Limitations

  • At 140.7M parameters, the model has limited knowledge, reasoning, coding, and multilingual capacity.
  • Instruction following is inconsistent, especially for exact formatting, arithmetic, strict brevity, and system-prompt constraints.
  • Longer generations can become repetitive or incoherent.
  • It can hallucinate facts and produce incorrect code or calculations.
  • Mostly English: multilingual ability is weak and unvalidated.
  • No dedicated safety alignment, red-team evaluation, or misuse evaluation was performed.
  • Validated only up to 2,048 tokens despite a 4,096-token config.
  • Pretraining and instruction data are web-derived, user-authored, or synthetic and may contain bias, errors, unsafe content, personal information, or copyrighted text.
  • The bundled Transformers generation path currently supports single-prompt greedy decoding only.

Reproducibility

Full training and evaluation code: github.com/alkinun/speck

The released checkpoint is training step 8,534.

Citation

@misc{alkinun2026speck11instruct,
  author       = {alkinun},
  title        = {Speck1.1-140M-Instruct: Instruction Tuning a Compact Hybrid Attention-Convolution Language Model},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/specklabs/Speck1.1-140M-Instruct}},
  url          = {https://github.com/alkinun/speck}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
SpeckForCausalLM
Ревизия весов
6e56601

0 моделей