Run this model with HF Jobs

Run dllwa/gemma4-form-report-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/dllwa/gemma4-form-report-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/dllwa/gemma4-form-report-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

gemma4-form-report-lora β€” μ„œμ‹ λ³΄κ³ μ„œ μž‘μ„± LoRA (Gemma 4 31B)

빈 μ„œμ‹(ν–‰μ • λ¬Έμ„œ ν…œν”Œλ¦Ώ)κ³Ό μ‚¬μš©μžμ˜ μš”μ²­ κΈ€(λ©”λͺ¨Β·κ΅¬μ–΄Β·ν‘œ λΆ™μ—¬λ„£κΈ° λ“±)을 μ£Όλ©΄, μ„œμ‹ ꡬ쑰λ₯Ό κ·ΈλŒ€λ‘œ 두고 μš”μ²­μ— μžˆλŠ” κ°’λ§Œ ν•΄λ‹Ή 칸에 μ±„μš΄ λ¬Έμ„œ μ΄ˆμ•ˆμ„ λŒλ €μ£ΌλŠ” LoRA μ–΄λŒ‘ν„°λ‹€.

  • base: google/gemma-4-31B-it (bf16, μ–‘μžν™” μ—†μŒ)
  • 방식: LoRA (r 16 Β· alpha 32 Β· dropout 0.05 Β· all-linear), 2에폭 ν•™μŠ΅(2,074μŠ€ν…)
  • ν•™μŠ΅ 데이터: dllwa/gemma4-form-report-data β€” 곡곡데이터포털 CSV 54μ’…(μ΄μš©ν—ˆλ½ 'μ œν•œ μ—†μŒ')μ—μ„œ λ§Œλ“  8,296건
  • ν•™μŠ΅Β·λ°μ΄ν„° 쑰립·생성·채점 μ½”λ“œ: 이 μ €μž₯μ†Œμ˜ code/ (μž¬ν˜„ μ ˆμ°¨λŠ” code/README.md)

μž‘μ—… κ·œμΉ™ (ν•™μŠ΅ν•œ 계약)

  1. μš”μ²­μ— μžˆλŠ” κ°’λ§Œ ν•΄λ‹Ή 칸에 μ±„μš΄λ‹€.
  2. μš”μ²­μ— μ—†λŠ” 칸은 빈칸으둜 남긴닀(μ§€μ–΄λ‚΄μ§€ μ•ŠλŠ”λ‹€).
  3. μš”μ²­μ— μžˆμ–΄λ„ μ„œμ‹μ— 칸이 μ—†λŠ” λ‚΄μš©μ€ 버린닀.

μ‚¬μš©λ²•

μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ 없이, μ‚¬μš©μž ν„΄ ν•˜λ‚˜μ— μ§€μ‹œλ¬Έ + 빈 쀄 + [μ„œμ‹] + μ„œμ‹ + [μš”μ²­] + μš”μ²­μ„ λ„£λŠ”λ‹€(ν•™μŠ΅κ³Ό 같은 ν˜•μ‹).

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "google/gemma-4-31B-it"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "dllwa/gemma4-form-report-lora")

instruction = ("μ£Όμ–΄μ§„ μ„œμ‹μ„ κ·ΈλŒ€λ‘œ 따라 λ¬Έμ„œ μ΄ˆμ•ˆμ„ μž‘μ„±ν•˜λΌ. μš”μ²­μ— μžˆλŠ” κ°’λ§Œ ν•΄λ‹Ή 칸에 μ±„μš°κ³ , "
               "μš”μ²­μ— μ—†λŠ” 칸은 빈칸으둜 남겨라. μš”μ²­μ— μžˆμ–΄λ„ μ„œμ‹μ— 칸이 μ—†λŠ” λ‚΄μš©μ€ 버렀라.")
form = """회의 개졜 κ³„νš
1. 회의λͺ… :
2. μΌμ‹œ :
3. μž₯μ†Œ :
4. μ°Έμ„λŒ€μƒ :
5. μ•ˆκ±΄ :
   -
6. 쀀비사항 :"""
request = "12μ›” 1일 μ˜€μ „ 10μ‹œ 3μΈ΅ μ†ŒνšŒμ˜μ‹€μ—μ„œ 2027λ…„ μ£Όμš”μ—…λ¬΄κ³„νš μž‘μ„± μ„€λͺ…νšŒ. 각 κ³Ό μ„œλ¬΄ λ‹΄λ‹Ήμž λŒ€μƒ, μ•ˆκ±΄μ€ μž‘μ„± μ§€μΉ¨ μ•ˆλ‚΄λž‘ 제좜 일정 곡유."

user = instruction + "\n\n[μ„œμ‹]\n" + form + "\n[μš”μ²­]\n" + request
prompt = tok.apply_chat_template([{"role": "user", "content": user}], add_generation_prompt=True, tokenize=False)
ids = tok(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**ids, max_new_tokens=1536, do_sample=False)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))

ꢌμž₯ 생성 쑰건: greedy Β· repetition_penalty 1.0 Β· seed 42 Β· μ΅œλŒ€ 생성 1,536토큰 Β· ν”„λ‘¬ν”„νŠΈ ν•œλ„ 4,096토큰.

ν•™μŠ΅

ν•­λͺ© κ°’
데이터 pairs10_train.jsonl 8,296건 (검증 μ†μ‹€μš© pairs6_val.jsonl 237건)
LoRA r 16 Β· alpha 32 Β· dropout 0.05 Β· all-linear Β· bias none
ν•™μŠ΅λ₯  2e-4 Β· cosine Β· μ›Œλ°μ—… λΉ„μœ¨ 0.03
배치 2 Γ— λˆ„μ  4 (유효 8) Β· μ΅œλŒ€ μ‹œν€€μŠ€ 길이 1536
에폭 2 (2,074μŠ€ν…) Β· seed 42

평가

같은 μž…λ ₯을 31B base λͺ¨λΈκ³Ό λ‚˜λž€νžˆ 비ꡐ해 μ„œμ‹ ꡬ쑰λ₯Ό μœ μ§€ν•˜λ©° 칸을 μ±„μš°λŠ” λ™μž‘μ„ ν™•μΈν–ˆλ‹€.

유의 사항

  • ν•™μŠ΅μ— μ“΄ μ„œμ‹κ³Ό λΉ„μŠ·ν•œ 양식에 맞좰져 μžˆλ‹€.
  • μ΄ˆμ•ˆ 도ꡬ닀. κ²€ν†  없이 κ·ΈλŒ€λ‘œ λ‚΄λ³΄λ‚΄λŠ” μš©λ„λ‘œλŠ” μ“°μ§€ μ•ŠλŠ”λ‹€.

λΌμ΄μ„ μŠ€

μ–΄λŒ‘ν„°λŠ” Apache 2.0. base λͺ¨λΈ μ‚¬μš©μ€ Gemma 4 λΌμ΄μ„ μŠ€λ₯Ό λ”°λ₯Έλ‹€.

λ³Έ 성과물은 정보톡신산업진ν₯원(NIPA) '2026λ…„ κ³ μ„±λŠ₯μ»΄ν“¨νŒ… 지원사업'의 GPU μžμ›μ„ 지원받아 μˆ˜ν–‰ν•˜μ˜€λ‹€.

Downloads last month
32
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for dllwa/gemma4-form-report-lora

Adapter
(407)
this model

Dataset used to train dllwa/gemma4-form-report-lora