Researchers trained a Bosnian language model from scratch — BH-Language-AI's bs-llm-375m-4b — using a custom 65,536-token BPE byte-level tokenizer (fertility 1.45) and a 375.4M-parameter decoder-only Transformer (308.3M non-embedding) with 24 layers, d_model 1024, 16 heads, RMSNorm, RoPE, SwiGLU, tied embeddings, and 1024 sequence length. Training ran on LUMI-G (8× AMD MI250X) for 4B tokens drawn from fineweb-2 bos_Latn (11.56B tokens available) and fineweb-edu (2.04B tokens), representing ~53% of the Chinchilla-optimal budget for this parameter count. Held-out validation bits-per-byte measured 0.8955 (seed 2027) and 0.90345 (seed 1337), a 0.9% seed-to-seed difference. On 30 tool-calling tasks the model achieved 100% correct calls and 100% valid schema; 50-item classification macro-F1 reached 0.6615; ijekavica clean transcription scored 66.7% on 30 samples. A 2B-token run of the same recipe yielded 90% tool-call accuracy and 0.41 F1, confirming monotonic improvement with data. The team notes the small test sets (30/50/30 items) make 1–2 item differences noisy, identifies ijekavica as a weak spot, and clarifies the model targets tool use, classification, and transcription — not chat. This is their first fully owned pipeline (tokenizer, data, training); a 1.5B-parameter, 30B-token run is planned. Models: https://huggingface.co/BH-Language-AI/bs-llm-375m-4b-sft and bs-llm-375m-2b.
Read original
dev.to