/ Модель

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

Контекст
4 096 токенов
Параметры
25,2 млн
Лицензия
Apache 2.0
Архитектура
bananamind2_mini · dense
Базовая модель
BananaMind-2-Mini
Библиотека
transformers
Опубликована
22 июл 2026

BananaMind-2-Mini-Chat

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

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

226скачиваний за 30 дней3лайкавеса обновлены22 июл 2026

Бенчмарки

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

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

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

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

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

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

BananaMind-2-Mini-Chat — компактная диалоговая языковая модель BananaMind, созданная полным дообучением BananaMind-2-Mini на наборе HuggingFaceTB/smol-smoltalk. Это декодерный Transformer с 25,2 млн параметров, контекстом 4096 токенов и пользовательским байтовым BPE-токенизатором на 8192 токена, учитывающим цифры. Модель поддерживает системные инструкции, многоходовые диалоги и генерацию с KV-кэшем; обучалась следовать инструкциям, при этом функция потерь применялась к ответам ассистента и завершающему токену EOS.

Модель предназначена для локальных чат-экспериментов, обучения и сравнения методов настройки небольших языковых моделей. В самооценке на 300 примерах она показала лучшее качество на простых заданиях и многоходовых диалогах, но результат на сложных заданиях был слабым. Возможны галлюцинации, ошибки в арифметике и коде, а также повторяющиеся продолжения; не подходит для решений с высокими ставками. Для загрузки требуется Transformers с разрешённым пользовательским кодом. Лицензия — Apache-2.0.

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

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

Ограничения

Небольшая модель может галлюцинировать, ошибаться в арифметике и коде и повторять текст; не предназначена для решений с высокими ставками. По самооценке модели качество резко снижается на сложных заданиях.

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

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

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

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

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

Открыть на Hugging Face

BananaMind 2 Mini Chat

BananaMind-2-Mini-Chat

BananaMind-2-Mini-Chat is the instruction-tuned version of BananaMind-2-Mini. It was fully fine-tuned on HuggingFaceTB/smol-smoltalk with loss applied only to assistant tokens and the assistant-ending EOS token.

The model has 25,178,752 parameters, a 4,096-token context window, and a custom 8,192-token digit-aware byte-level BPE tokenizer. It supports system prompts, multi-turn conversations, and KV-cached generation.

Model Details

FieldValue
Parameters25,178,752
Base modelBananaMind/BananaMind-2-Mini
ArchitectureBananaMind2Mini decoder-only Transformer
Layers14
Hidden size384
Intermediate size1,024
Attention heads6
KV heads2
Head dimension64
AttentionGrouped-query attention with QK norm
MLPSwiGLU
Position embeddingsRoPE, theta 100,000
Vocabulary size8,192
Context length4,096
EmbeddingsTied input/output embeddings
Generation cacheKV cache supported
Weight formatsafetensors
Training typeFull-parameter supervised fine-tuning

Benchmarks

BananaMind Instruct Bench 1.1

Self-reported results from the official BananaMind Instruct Bench 1.1 script. This is a 300-example, difficulty- and category-weighted instruction benchmark. Generation was deterministic with repetition_penalty=1.1 and seed 42.

ModelOverall ELOGeneralMulti-turnSystem PromptsContext RecallCode
BananaMind-2-Medium-Chat7875348726661,0851,291
BananaMind-2-Mini-Chat654389812743924667
Supra 1.5 50M Instruct*647520804590860780
BananaMind-2-Nano-Chat643353796600978885
Supra 1.0 50M Instruct*520531405590794667

Detailed BananaMind-2-Mini-Chat result

ScopeExamplesPassedWeighted ScoreELO
Overall300409.64%654
General12063.42%389
Multi-turn751916.84%812
System Prompts6078.95%743
Context Recall30817.89%924
Code1500.00%667
DifficultyExamplesPassedWeighted ScoreELO
Easy1003334.62%821
Medium10077.45%593
Hard10000.00%296

* Supra 1.5 used the benchmark's Alpaca-style fallback, with conversation context supplied through its ### Input field. Supra 1.0 used the same fallback and a copied checkpoint with 3.0x linear RoPE scaling, extending its context from 1,024 to 3,072 tokens without additional long-context training so it could fit the benchmark inputs.

These scores are self-evaluated and may vary with the benchmark revision, Transformers version, dtype, hardware, and generation settings.

Instruction Tuning

FieldValue
DatasetHuggingFaceTB/smol-smoltalk
Dataset splittrain
Dataset rows460,341
Epochs1
Final optimizer step3,193
Packed tokens processed470,782,108
Supervised assistant tokens360,967,001
Sequence length4,096
Micro batch12
Gradient accumulation3
Effective batch36 sequences
Peak learning rate2e-4
Warmup100 steps
LR scheduleConstant after warmup
OptimizerAdamW
Betas0.9, 0.95
Weight decay0.1
Gradient clipping1.0
Seed1337

System and user messages were retained as context but masked from the loss. All parameters were trainable; no LoRA modules or adapters were used.

Chat Template

The tokenizer includes a Jinja template for system, user, and assistant messages:

<BOS><|system|>
{system message}
<|user|>
{user message}
<|assistant|>
{assistant response}<EOS>

The role markers use the existing tokenizer vocabulary. Fine-tuning did not add new tokens.

Usage

This model uses custom architecture code and must be loaded with trust_remote_code=True.

pip install -U transformers safetensors torch
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "BananaMind/BananaMind-2-Mini-Chat"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" and torch.cuda.is_bf16_supported() else torch.float32

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

messages = [
    {"role": "system", "content": "You are a concise and helpful assistant."},
    {"role": "user", "content": "Write one Python line that prints 2 + 3."},
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt",
    return_dict=True,
)
inputs = {name: tensor.to(device) for name, tensor in inputs.items()}

with torch.inference_mode():
    output = model.generate(
        **inputs,
        max_new_tokens=192,
        do_sample=False,
        repetition_penalty=1.1,
        eos_token_id=tokenizer.eos_token_id,
        pad_token_id=tokenizer.eos_token_id,
        use_cache=True,
    )

new_tokens = output[0, inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))

For multi-turn chat, append the generated assistant response and the next user message to messages, then render the chat template again.

Suggested Generation Settings

  • do_sample=False
  • repetition_penalty=1.1
  • max_new_tokens=128 to 256
  • use_cache=True

Small models can hallucinate facts, fail arithmetic, produce invalid code, or enter repetitive continuations. Keep a finite generation limit and do not use the model for high-stakes decisions.

Repository Files

FileDescription
config.jsonTransformers model configuration
model.safetensorsFine-tuned model weights
tokenizer.jsonCustom 8,192-token tokenizer
tokenizer_config.jsonTokenizer metadata
chat_template.jinjaSystem/user/assistant chat template
generation_config.jsonGeneration configuration
configuration_bananamind2mini.pyCustom Transformers config class
modeling_bananamind2mini.pyCustom Transformers model class
sft_metadata.jsonFine-tuning provenance and token counts
banner.pngModel-card banner

Intended Use

This model is intended for compact-model research, local chat experiments, educational demonstrations, and instruction-tuning comparisons.

License

Apache 2.0

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

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

GPU в ailist

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

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

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

Класс архитектуры
BananaMind2MiniForCausalLM
Ревизия весов
121fb22

0 моделей