Instructions to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with PEFT:
Task type is invalid.
- Transformers
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K") model = AutoModelForCausalLM.from_pretrained("dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K
- SGLang
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K 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 "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K", max_seq_length=2048, ) - Docker Model Runner
How to use dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K with Docker Model Runner:
docker model run hf.co/dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K
Model Card for SFT-Biawak-8B-AGQ-9k-Unsloth
Model Details
Model Description
This model is a fine-tuned version of ismaprasetiyadi/Biawak-8B-Base. It was trained using Unsloth and LoRA (Low-Rank Adaptation) on the dtp-singleturn-AGQ-9k dataset.
The model is specifically optimized for Indonesian single-turn instruction following, utilizing the Qwen3 chat template structure. It leverages 4-bit quantization for memory efficiency during training and inference.
- Developed by: DTP2 Team
- Model type: Causal Language Model (LoRA Adapter)
- Language(s) (NLP): Indonesian (id)
- License: Apache-2.0
- Finetuned from model: ismaprasetiyadi/Biawak-8B-Base
Model Sources
- Repository: dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K
- Dataset: dtp-fine-tuning/dtp-singleturn-AGQ-9k
- Training Logs: View full W&B Report
Uses
Direct Use
The model is designed for Indonesian chat and instruction-following tasks. It performs best in single-turn question-answering scenarios involving general knowledge, reasoning, and cultural context provided by the AGQ dataset.
Out-of-Scope Use
- Long-context conversations: The model was fine-tuned on single-turn data; multi-turn performance may be inconsistent.
- High-stakes decision making: As an 8B model, it may hallucinate facts and should not be used for medical or legal advice without verification.
Bias, Risks, and Limitations
This model inherits the biases present in the base Biawak-8B model and the AGQ-9k dataset. While fine-tuning improves instruction adherence, users should be aware that the model can still generate plausible-sounding but incorrect information.
Recommendations
Users should verify important information generated by the model. It is recommended to use the qwen3 chat template for optimal performance.
How to Get Started with the Model
Use the code below to load the model and run inference:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# 1. Load Base Model
base_model_name = "ismaprasetiyadi/Biawak-8B-Base"
adapter_model_name = "YOUR_USERNAME/SFT-Biawak-8B-AGQ-9k-Unsloth"
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(adapter_model_name, trust_remote_code=True)
# 2. Load Adapter
model = PeftModel.from_pretrained(model, adapter_model_name)
# 3. Inference
messages = [
{"role": "user", "content": "Jelaskan sejarah singkat kemerdekaan Indonesia."}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training Details
Training Data
The model was trained on dtp-fine-tuning/dtp-singleturn-AGQ-9k.
- Size: ~9k examples
- Content: Indonesian general questions and instructions (Single Turn).
- Split: Train (90%) / Test (10%)
Training Procedure
The model was fine-tuned using the Unsloth library, which provides 2x faster training and ~60% less memory usage compared to standard Hugging Face implementations.
Training Hyperparameters
- Training regime: bf16 mixed precision (via Unsloth/LoRA)
- Quantization: 4-bit (nf4)
- LoRA Rank: 16
- LoRA Alpha: 32
- Target Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
- Batch Size: 8 per device (Effective batch size: 32 via Gradient Accumulation)
- Learning Rate: 2e-5 (Linear Schedule with 0.05 warmup)
- Epochs: 2
- Max Sequence Length: 8192
- Optimizer: adamw_8bit
Speeds, Sizes, Times [optional]
- Hardware: 1x NVIDIA A100 80GB
- Training Duration: ~10 hours
- GPU Memory Usage: Peaked at ~45GB (56% utilization)
Evaluation
Results
The model demonstrated stable convergence over 2 epochs.
- Final Training Loss: ~0.70
- Final Validation Loss: ~0.67
- Observation: The validation loss consistently decreased alongside training loss, indicating no overfitting occurred during the training process.
View the full training run plots and metrics on Weights & Biases
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: NVIDIA A100 80GB
- Hours used: 10 hours
- Cloud Provider: University Server / Private Infrastructure
- Compute Region: Indonesia
Framework versions
- Unsloth 2024.x
- Transformers 4.x
- Pytorch 2.x
- Datasets 2.x
- Tokenizers 0.x
- Downloads last month
- -
Model tree for dtp-fine-tuning/DTP_AGQ_Question_Diploy_9K
Base model
ismaprasetiyadi/Biawak-8B-Base