请求加入做种队列,或现在用 pf download TheCoderScientist/GarudaCoder-27B-ID-lora 获取(CLI 指南)。
QLoRA adapter (r=8, alpha=8) on top of Qwen3.8-27B (unsloth 4-bit build) — successor of GarudaCoder-7B-Coder-ID-lora. Fine-tuned on a curated high-quality Indonesian coding dataset. Focus: explaining the reasoning before writing code, honesty about uncertainty (anti-hallucination), and Indonesian developer context. All model output is in Indonesian.
IMPORTANT — avoid stuck downloads: the HF Xet backend is known to stall at the
Reconstructing (incomplete total...)stage (xet-core#850). Disable Xet before any imports:
import os
os.environ["HF_HUB_DISABLE_XET"] = "1" # MUST be the very first cell/line
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
"TheCoderScientist/GarudaCoder-27B-ID-lora",
max_seq_length=1024, load_in_4bit=True,
)
FastModel.for_inference(model)
pesan = [
{"role": "system", "content": "<copy the system prompt from the section below — use verbatim>"},
{"role": "user", "content": "Kenapa [[0]*3]*3 di Python bikin semua baris ikut berubah?"},
]
inputs = tokenizer.apply_chat_template(pesan, tokenize=True, add_generation_prompt=True, return_tensors="pt").to("cuda")
out = model.generate(input_ids=inputs, max_new_tokens=1024, temperature=0.3, do_sample=True)
print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16)
base = AutoModelForCausalLM.from_pretrained(
"unsloth/Qwen3.8-27B-unsloth-bnb-4bit", quantization_config=bnb, device_map="auto")
model = PeftModel.from_pretrained(base, "TheCoderScientist/GarudaCoder-27B-ID-lora")
tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3.8-27B-unsloth-bnb-4bit")
Use verbatim — the model was trained with it; without it, reasoning quality degrades.
Kamu adalah GarudaCoder, asisten coding berbahasa Indonesia yang teliti. Utamakan kebenaran teknis dan kode yang dapat diuji. Jelaskan ringkasan alasan yang dapat diaudit sebelum solusi, nyatakan asumsi dan edge case yang relevan, dan jangan mengarang fakta, API, versi, atau angka. Jika informasi tidak cukup, ajukan pertanyaan klarifikasi. Untuk informasi yang berubah atau bersifat lokal, minta atau gunakan sumber yang dapat diverifikasi. Tolak praktik berbahaya dan tawarkan alternatif yang aman. Jangan tampilkan chain-of-thought privat.
{
"max_new_tokens": 1024,
"do_sample": true,
"temperature": 0.7,
"top_p": 0.8,
"top_k": 20,
"repetition_penalty": 1.0
}
training/manifest_qwen38.json.| Symptom | Cause | Fix |
|---|---|---|
Download stuck at Reconstructing (incomplete total...) |
hf_xet stall bug | HF_HUB_DISABLE_XET=1 before imports, or pip uninstall hf-xet |
| CUDA out of memory on a single T4 | 27B in 4-bit needs ~2×16 GB | use 2 GPUs or a 24 GB+ GPU |
| English / shallow answers | system prompt not used | use the system prompt above verbatim |
| KeyError / adapter won't attach | wrong base model | use unsloth/Qwen3.8-27B-unsloth-bnb-4bit (pinned revision in manifest) |
有文件?提交种子。
发布种子adapter_model.safetensors 223 MiBcheckpoint-80/adapter_model.safetensors 223 MiBcheckpoint-91/adapter_model.safetensors 223 MiBcheckpoint-80/optimizer.pt 114 MiBcheckpoint-91/optimizer.pt 114 MiBcheckpoint-80/rng_state.pth 14.3 KiBcheckpoint-91/rng_state.pth 14.3 KiBcheckpoint-80/training_args.bin 5.6 KiBcheckpoint-91/training_args.bin 5.6 KiBcheckpoint-80/scheduler.pt 1.4 KiBcheckpoint-91/scheduler.pt 1.4 KiBunsloth/Qwen3.8-27B-unsloth-bnb-4bit