Instructions to use KurniaKadir/hslbV with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KurniaKadir/hslbV with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KurniaKadir/hslbV")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KurniaKadir/hslbV") model = AutoModelForCausalLM.from_pretrained("KurniaKadir/hslbV", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KurniaKadir/hslbV with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KurniaKadir/hslbV" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KurniaKadir/hslbV", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KurniaKadir/hslbV
- SGLang
How to use KurniaKadir/hslbV with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "KurniaKadir/hslbV" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KurniaKadir/hslbV", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "KurniaKadir/hslbV" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KurniaKadir/hslbV", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KurniaKadir/hslbV with Docker Model Runner:
docker model run hf.co/KurniaKadir/hslbV
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
Model tree for KurniaKadir/hslbV
Base model
HuggingFaceTB/SmolLM3-3B-Base