hslbV

A fine-tune of HuggingFaceTB/SmolLM3-3B, a 3B-parameter decoder-only language model. This version targets English, Malay, Indonesian, and Chinese, with a focus on chat-style assistant behaviour.

Model Details

Base model HuggingFaceTB/SmolLM3-3B
Architecture Llama-style transformer, 36 layers, hidden size 2048, GQA (16 heads / 4 KV heads)
Parameters ~3 B
Context length Up to 65,536 tokens (base model configuration)
Languages English (en), Malay (ms), Indonesian (id), Chinese (zh)
License Apache 2.0
Library transformers β‰₯ 4.53

Uses

Direct use

Chat and instruction-following in English, Malay, Indonesian, and Chinese. Use the tokenizer's chat template β€” do not concatenate messages by hand.

Out-of-scope use

  • High-stakes decisions (medical, legal, financial) without human oversight.
  • Code generation, where the base model has not been specifically tuned.
  • Any use that violates the base model's license terms.

Training Data

Describe the datasets used for this fine-tune here. Example format:

  • dataset-1 β€” N samples, language(s), preprocessing notes.
  • dataset-2 β€” N samples, language(s), preprocessing notes.

Training Procedure

Describe hardware, hyperparameters, and training duration here. Example:

  • Framework: transformers + trl (SFTTrainer)
  • Hardware: 1 Γ— A100 40 GB, bf16
  • Epochs: 3 Β· LR: 2e-5 Β· Batch size: 8 (with gradient accumulation)
  • Optimizer: AdamW Β· Scheduler: cosine

Evaluation

Real numbers only β€” leave this section out until you have them.

When you have results, add a model-index block back to the YAML header so the Hub renders them in the Eval Results widget:

model-index:
  - name: hslbV
    results:
      - task:
          type: text-generation
          name: Text Generation
        dataset:
          name: your-eval-set
          type: your-eval-set
        metrics:
          - name: Perplexity
            type: perplexity
            value: <real value>
          - name: Validation Loss
            type: loss
            value: <real value>

Usage

Install:

pip install "transformers>=4.53" "torch>=2.1" "accelerate"

Chat (recommended)

SmolLM3 uses a chat template and the <|im_end|> token (id 128012) as its end-of-sequence. apply_chat_template(..., add_generation_prompt=True) handles both automatically:

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "KurniaKadir/hslbV"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")

messages = [
    {"role": "user", "content": "Terangkan secara ringkas apa itu pembelajaran mesin."}
]
inputs = tok.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt",
).to(model.device)

out = model.generate(
    inputs,
    max_new_tokens=256,
    do_sample=True,
    temperature=0.7,
    top_p=0.95,
    eos_token_id=tok.convert_tokens_to_ids("<|im_end|>"),
)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))

Plain text generation

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "KurniaKadir/hslbV"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")

inputs = tok("Hello, my name is", return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Limitations

  • The base model is only ~3 B parameters β€” expect weaker reasoning and factual accuracy than 7 B+ models.
  • Fine-tuning on a small dataset can cause regressions in domains the base model handled well. Test on your own tasks before deploying.
  • Low-resource dialects (e.g. regional Malay/Indonesian variants, classical Chinese) may degrade compared to standard written forms.
  • The model can hallucinate facts and does not have a knowledge cutoff enforced by the template β€” verify important claims.

License

Apache 2.0, inherited from HuggingFaceTB/SmolLM3-3B.

Contact

Issues and questions: KurniaKadir/hslbV.

Downloads last month
400
Safetensors
Model size
3B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for KurniaKadir/hslbV

Finetuned
(188)
this model