Slovo-4B (LoRA)
adapter for 46 indigenous languages of Russia based on Qwen3-4B
2 min readupdated
Slovo-4B (LoRA) is a compact adapter by author MarkusMarrei built on top of the Qwen/Qwen3-4B language model. It adds support for Russian and 45 other indigenous languages of Russia (including Tatar, Bashkir, Yakut, Buryat, Chechen, Chuvash, and others) to the base model. Unlike heavy full checkpoints, this release provides only the LoRA weights (a small add-on to the base model) with a size of 132 MB. This solution is useful for developers and researchers who need to dynamically plug a language module into the standard Qwen3-4B or continue fine-tuning on their own data.
Key features
- Support for 46 languages of Russia, including rare and low-resource languages.
- The adapter weight is only 132 MB (about 34 million adapted parameters).
- Covers all 7 linear projections of attention layers and FFN at a matrix rank of r=64.
- Ready-to-use merged model versions are available (full FP16 and GGUF for local execution).
- The open Apache 2.0 license permits free use.
What you can do
- Plug and unplug the multilingual layer on the fly over a single Qwen3-4B instance in services and chatbots.
- Continue fine-tuning the adapter on specialized text corpora of minority languages.
- Use the accompanying GGUF version for local text generation, translation, and folklore processing in Ollama or LM Studio.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
tokenizer = AutoTokenizer.from_pretrained("MarkusMarrei/slovo-4b-lora")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B", torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "MarkusMarrei/slovo-4b-lora")
messages = [{"role": "user", "content": "Напиши пословицу на бурятском языке с переводом."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
Read more
DetailsTraining: 1 epoch (2125 steps) on 36,000 instruction pairs, loss decreased from 5.50 to 0.0446.
LoRA parameters: r=64, lora_alpha=128, lora_dropout=0.05.
Adapted ~34 million parameters of the base Qwen3-4B model.










Comments