Downloads · 30 days
13
28% of all-time downloads
sio5/gpt-oss-20b-format-lora
gpt-oss-20b-format-lora is a text generation model from sio5. 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.
This repository contains a QLoRA adapter for GPT-OSS-20B. It was trained to answer Korean prompts using the following three-part structure:
Downloads · 30 days
13
28% of all-time downloads
All-time downloads
46
Public
Repo size
44 MB
Likes
0
Public
Click a slice to open those files.
.json27.9 MB · 63%
From the Hugging Face model README
This repository contains a QLoRA adapter for GPT-OSS-20B. It was trained to answer Korean prompts using the following three-part structure:
요약
...
설명
...
다음 행동
...
Only the adapter is included. The base model is downloaded separately when the adapter is loaded.
This adapter is intended for experiments that require concise Korean answers organized into a summary, explanation, and a concrete next action. It can be used for local inference, demonstrations, and further PEFT training.
It is not intended to provide authoritative medical, legal, financial, or safety-critical advice.
Install Unsloth and load the adapter directly from the Hub:
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="sio5/gpt-oss-20b-format-lora",
max_seq_length=512,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "user", "content": "새 프로젝트를 시작할 때 무엇부터 해야 해?"},
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=False,
reasoning_effort="low",
)
prompt += "<|start|>assistant<|message|>"
inputs = tokenizer(
prompt,
add_special_tokens=False,
return_tensors="pt",
).to(model.device)
with torch.inference_mode():
output_ids = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
pad_token_id=tokenizer.eos_token_id,
)
new_tokens = output_ids[0, inputs["input_ids"].shape[1] :]
response = tokenizer.decode(new_tokens, skip_special_tokens=False)
response = response.split("<|return|>", maxsplit=1)[0].strip()
print(response)
The explicit assistant message prefix matches the prompt/completion boundary used during supervised fine-tuning.
The adapter was trained on 20 manually authored, single-turn Korean examples.
Every target answer contains the exact headings 요약, 설명, and 다음 행동
in that order. The examples cover general productivity, software engineering,
security, planning, and everyday tasks.
No personal or private user conversations were included.
q_proj, k_proj, v_proj, o_projTraining was performed locally on one NVIDIA GeForce RTX 5090. The recorded training runtime was 175.8 seconds.
The adapter was evaluated on 15 held-out Korean prompts that were not included in the training set. The evaluation checked whether all three headings appeared on their own lines and in the required order.
| Metric | Result |
|---|---|
| Format adherence | 15/15 (100%) |
| First logged training loss | 13.9844 |
| Final logged training loss | 1.2626 |
| Minimum logged training loss | 1.0610 |
| Mean training loss | 2.9348 |
