Downloads · 30 days
5
6% of all-time downloads
ripkiiiii/nala-qwen3-4b
nala-qwen3-4b is a text generation model from ripkiiiii. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Nala is a QLoRA fine-tune of Qwen/Qwen3-4B trained on Indonesian government regulation Q&A pairs.
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
81
Public
Repo size
805 MB
Likes
1
Public
Click a slice to open those files.
.pt529 MB · 54%
From the Hugging Face model README
Nala is a QLoRA fine-tune of Qwen/Qwen3-4B trained on Indonesian government regulation Q&A pairs.
Use case: AI assistant for government contractors — reading tender documents (RKS), understanding procurement regulations, and navigating Indonesian bureaucratic law.
Part of Deflated — a personal AI research studio.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, pipeline
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16,
)
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-4B",
quantization_config=bnb_config,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("ripkiiiii/nala-qwen3-4b")
model = PeftModel.from_pretrained(base_model, "ripkiiiii/nala-qwen3-4b")
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=256)
messages = [{"role": "user", "content": "Apa dasar hukum pemberian tunjangan kepada pegawai negeri sipil di daerah?"}]
output = pipe(messages)
print(output[0]["generated_text"][-1]["content"])
Built by Muhammad Rifky — Digital PR student at Telkom University, building AI things with free compute and a lot of waiting.
Read the build log: deflated.xyz/blog