Downloads · 30 days
156
11% of all-time downloads
Squeal-Studio/squeal_ai_20m-instruct
squeal_ai_20m-instruct is a text generation model from Squeal-Studio. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
squealai20m-instruct is a compact ~20M parameter language model, fine-tuned for instruction following on Russian-language data. It belongs to the squealai model family by Squeal Studio.
Downloads · 30 days
156
11% of all-time downloads
All-time downloads
1.5K
Public
Parameters
20.1M
182 MB on disk
Likes
0
Public
Click a slice to open those files.
.onnx101 MB · 55%
From the Hugging Face model README
squeal_ai_20m-instruct is a compact ~20M parameter language model, fine-tuned for instruction following on Russian-language data. It belongs to the squeal_ai_ model family by Squeal Studio.
This is the instruct version of squeal_ai_20m-base, fine-tuned with Supervised Fine-Tuning (SFT) on an instruction dataset. No RLHF or DPO alignment stage was applied.
Research and Educational Model. This model is designed for research, educational purposes, and experimentation. Given its parameter count and training data volume, performance on complex instructions or factual tasks will be limited.
| Parameter | Value |
|---|---|
| hidden_size | 352 |
| num_hidden_layers | 8 |
| num_attention_heads | 8 |
| num_key_value_heads | 4 |
| intermediate_size | 1024 |
| max_position_embeddings | 1024 |
| vocab_size | 24,000 |
User: / Bot: prompt structurechat_template.jinja is included; prompts must be manually formatted as shown belowThis model does not use tokenizer.apply_chat_template. Prompts must follow the plain-text format below:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Squeal-Studio/squeal_ai_20m-instruct")
tokenizer = AutoTokenizer.from_pretrained("Squeal-Studio/squeal_ai_20m-instruct")
prompt = "User: Как поднять настроение?\nBot:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
User: ... \nBot: format shown above and may behave unpredictably with other prompt structuresApache 2.0
Our WebSite: https://squealstudio.ru