282 Downloads Updated 1 week ago
ollama run hartantoyohanes4/pns-qwen3-8b:v8
Updated 2 weeks ago
2 weeks ago
5eb0fb3cd0ac · 5.0GB
Model Qwen3-8B hasil fine-tuning untuk menjawab pertanyaan kepegawaian ASN Indonesia
(PNS dan PPPK) dengan konteks Pemerintah Kabupaten Banyumas.
| Item | Nilai |
|---|---|
| Base model | unsloth/Qwen3-8B (Apache 2.0) |
| Metode | QLoRA 4-bit, r=16, α=32, 1 epoch, train_on_responses_only |
| Dataset | 1.277 sampel: regulasi ASN, naskah dinas Banyumas (Perbup 58⁄2023), tool calling, abstain |
| Quantization | Q4_K_M — 5,03 GB |
| Context | 16.384 (:v9), 40.960 (:v9-max-ctx), 131.072 (:yarn-128k) |
| Tag | Konteks | Bobot | Catatan |
|---|---|---|---|
:v9-max-ctx |
40.960 | v9 | disarankan untuk GPU 12 GB (KV q8_0 ≈ 2,8 GB) |
:v9 / :latest |
16.384 | v9 | hemat RAM, CPU 8–9 GB |
:v8 |
16.384 | v8 | versi pra-perbaikan dataset |
:v8-32k |
32.768 | v8 | |
:max-ctx |
40.960 | v8 | konteks maksimal, bobot lama |
:yarn-128k |
131.072 | v8 + YaRN 3.2× | kualitas menurun di atas 40.960 |
# GPU 12 GB (RTX 3060): konteks 40.960, KV cache 8-bit agar muat di VRAM
export OLLAMA_FLASH_ATTENTION=1
export OLLAMA_KV_CACHE_TYPE=q8_0
ollama pull hartantoyohanes4/pns-qwen3-8b:v9-max-ctx
# CPU / RAM 8–9 GB: konteks 16.384
ollama pull hartantoyohanes4/pns-qwen3-8b:v9
Setelah ditarik, pastikan benar-benar jalan di GPU:
ollama run hartantoyohanes4/pns-qwen3-8b:v9-max-ctx "Siapa kamu?"
ollama ps # kolom PROCESSOR harus 100% GPU
<tool_call> + <tool_response>, termasuk multi-stepAngka gaji tidak boleh ditanyakan langsung ke model. Model dilatih memanggil tool, bukan menghafal 1.156 sel tabel. Selalu gunakan lookup deterministik:
ollama run hartantoyohanes4/pns-qwen3-8b:v9 "Berapa gaji pokok PNS golongan III/a masa kerja 0 tahun?"
# model akan meminta tool gaji_lookup; hasil exact: Rp2.785.700 (PP No. 5 Tahun 2024)
Hal yang sama berlaku untuk statistik ASN bulanan, nama pejabat aktif, dan nomor SK pribadi — gunakan RAG atau sumber resmi (JDIH BPK, JDIH BKN, bkpsdm.banyumaskab.go.id).
ollama run hartantoyohanes4/pns-qwen3-8b:v9-max-ctx "Apa bedanya PNS dan PPPK?"
ollama run hartantoyohanes4/pns-qwen3-8b:v9 "Di Banyumas, surat dinas pakai huruf apa?"
ollama run hartantoyohanes4/pns-qwen3-8b:v9 "Apa itu JATILAN NGAPAK?"
| RAM/VRAM | Tag yang disarankan |
|---|---|
| 8–9 GB (CPU) | :v9 — konteks 16k, ~2,8 tok/s |
| 12 GB GPU | :v9-max-ctx + OLLAMA_KV_CACHE_TYPE=q8_0, 15–25 tok/s |
| 24 GB+ | :yarn-128k bila benar-benar butuh >40k token |