CoolFace
Modelpublic

mrshu/tildeopen-30b-64k-sk-alpaca-slovak-it

sourceHugging Facecc-by-4.0updated 5mo agoView on Hugging Face
0likes23downloads
Model Card

TildeOpen-30B-64K Alpaca Slovak IT

TildeOpen-30B-64K Alpaca Slovak IT is an instruction-tuned Slovak assistant model based on TildeAI/TildeOpen-30b-64k. It was trained with a LoRA supervised fine-tuning recipe on Slovak Alpaca-style instruction data and then merged into full model weights for direct transformers loading.

This repository contains the merged full-weight checkpoint. The adapter-only artifact is available separately at `mrshu/tildeopen-30b-64k-sk-alpaca-slovak-it-lora`.

The model is designed to answer in Slovak by default while still attempting to follow explicit user requests for another language or a specific output format.

Intended Use

This model is intended for Slovak instruction following, Slovak question answering, drafting, rewriting, summarization-style prompts, and general assistant workflows where Slovak is the primary language.

It can also respond to English prompts and translation-style requests, but language control is not guaranteed. Use additional application-level checks for strict formatting, policy compliance, or high-reliability translation.

Do not use this model as the sole source for medical, legal, financial, safety, or other high-stakes decisions. It has not been safety aligned, red-teamed, or moderated for production deployment.

Model Details

FieldValue
Base modelTildeAI/TildeOpen-30b-64k
Base revisione4c6ad4d87756665566e8e3fd9a23d3a413f2489
Release repository`mrshu/tildeopen-30b-64k-sk-alpaca-slovak-it`
Companion adapter`mrshu/tildeopen-30b-64k-sk-alpaca-slovak-it-lora`
ArchitectureLlama-compatible causal language model
Tuned artifactMerged full-weight checkpoint
Fine-tuning methodPEFT LoRA, then merged
Base context length65,536 tokens
Training sequence length4,096 tokens
Checkpoint dtypebfloat16
LicenseCC-BY-4.0

Training Data

The model was instruction-tuned on `saillab/alpaca-slovak-cleaned`, a Slovak Alpaca-style instruction dataset.

Dataset preparation converted each example into a chat-style conversation with system, user, and assistant messages. Empty instruction/output examples were excluded, and duplicate instruction/input/output triples were removed across the prepared splits.

SplitRows
Prepared train41,601
Prepared held-out10,401

This run trained from the prepared train split and used Axolotl val_set_size: 0.02 for evaluation. The data preparation used dataset revision 058172466eb1d6a28b161f29c74350911d154161.

Each training conversation used this system prompt:

text
Si užitočný asistent. Riaď sa jazykom a požadovaným formátom používateľa. Ak používateľ nežiada iný jazyk, odpovedaj po slovensky.

Prompt Format

The training run used a simple Slovak chat format:

text
<|endoftext|>Systém: {system}

Používateľ: {user}
Asistent: {assistant}<|endoftext|>

For generation, append Asistent: after the user message.

Training Recipe

The model was trained with supervised fine-tuning using PEFT LoRA. Only the assistant turns were included in the training loss.

SettingValue
LoRA rank / alpha / dropout32 / 64 / 0.05
Target modulesq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Sequence length4096
Sample packingenabled
Epochs1
Effective batch size16
Micro batch size1
Gradient accumulation16
Learning rate7.5e-5
Schedulercosine
Warmup ratio0.06
Optimizerfused AdamW
Precisionbfloat16
Gradient checkpointingenabled
Seed42

Results

Training LossEpochStepValidation LossPPL
No log001.21543.3715
0.97960.3251500.98302.6725
0.96730.65011000.96032.6126
0.95860.97521500.95682.6033
0.95860.99471530.95662.6028

Final training loss was 0.9799.

Usage

python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "mrshu/tildeopen-30b-64k-sk-alpaca-slovak-it"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

system = (
    "Si užitočný asistent. Riaď sa jazykom a požadovaným formátom "
    "používateľa. Ak používateľ nežiada iný jazyk, odpovedaj po slovensky."
)
user = "Stručne vysvetli, čo je LoRA."

prompt = f"<|endoftext|>Systém: {system}\n\nPoužívateľ: {user}\nAsistent:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    do_sample=True,
    temperature=0.7,
    top_p=0.95,
)

generated = outputs[0][inputs["input_ids"].shape[-1]:]
print(tokenizer.decode(generated, skip_special_tokens=True))

Limitations

  • —The supervised fine-tuning data is translated instruction data, so the model may inherit translation artifacts, unnatural phrasing, or source-dataset biases.
  • —The checkpoint is a merged LoRA fine-tune. Runtime behavior may differ slightly from applying the adapter dynamically, depending on the loading stack and inference backend.
  • —The model is biased toward Slovak responses. Explicit requests for another language may work, but they are not guaranteed.
  • —Strict JSON, exact labels, citations, and other constrained formats should be validated outside the model.
  • —The model may hallucinate facts, produce unsafe content, or follow malicious instructions.

Training Framework

  • —Axolotl 0.16.1
  • —PEFT 0.19.1
  • —Transformers 5.5.0
  • —PyTorch 2.11.0+cu126
  • —Datasets 4.5.0
  • —Tokenizers 0.22.2