Downloads · 30 days
14
22% of all-time downloads
acidsound/gyeongsang_dialect_gemma-4-e4b-it-LoRA
gyeongsang_dialect_gemma-4-e4b-it-LoRA is a text generation model from acidsound. Use it when you need the model to write or continue text. It is set up for peft.
This repository contains a LoRA adapter fine-tuned from google/gemma-4-e4b-it for a narrow text-rewriting task:
Downloads · 30 days
14
22% of all-time downloads
All-time downloads
64
Public
Repo size
202 MB
Likes
0
Public
Click a slice to open those files.
.safetensors170 MB · 84%
From the Hugging Face model README
This repository contains a LoRA adapter fine-tuned from google/gemma-4-e4b-it for a narrow text-rewriting task:
This is an adapter-only release. You need the base model google/gemma-4-e4b-it to use it.
google/gemma-4-e4b-itPEFT LoRA16160.0Unsloth + PEFT + TransformersThis adapter is intended for:
This adapter is not intended for:
The best-performing eval path used a plain single-turn rewrite prompt with a strict instruction not to add reasoning.
Minimal usage pattern:
당신은 경상도 방언을 표준 한국어로 바꾸는 전문가입니다.
의미를 보존하고, 불필요한 추가나 생략 없이 표준어 문장만 답하세요.
방언: <input sentence>
표준어:
Greedy decoding worked better than sampling for this task.
Final full-run evaluation was performed on internal dev, test, and hard_test splits.
| split | rows | char_similarity | critical_error_rate | number_preservation | format_contamination_rate |
|---|---|---|---|---|---|
| dev | 4002 | 0.9436 | 0.0265 | 1.0000 | 0.0000 |
| test | 4001 | 0.9433 | 0.0280 | 0.9615 | 0.0000 |
| hard_test | 2048 | 0.9337 | 0.0381 | 1.0000 | 0.0000 |
Interpretation:
5171940023612.06s0.2783prompt_completion_textstrictTrueThe adapter was selected from an adaptive loop that tuned prompt format, eval format, LoRA settings, and recovery behavior across multiple iterations before the final full run.
The training task uses Korean dialect-to-standard sentence pairs derived from Gyeongsang dialect data.
High-level properties:
Example with transformers + peft:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
base_model_id = "google/gemma-4-e4b-it"
adapter_id = "acidsound/gyeongsang_dialect_gemma-4-e4b-it-LoRA"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_id)
prompt = (
"당신은 경상도 방언을 표준 한국어로 바꾸는 전문가입니다.\\n"
"의미를 보존하고, 불필요한 추가나 생략 없이 표준어 문장만 답하세요.\\n\\n"
"방언: 와 이리 춥노 밖에 바람이 억수로 분다\\n"
"표준어:"
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
repetition_penalty=1.05,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
google/gemma-4-e4b-it model.