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.
Instructions to use dllwa/gemma4-form-report-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dllwa/gemma4-form-report-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-4-31B-it") model = PeftModel.from_pretrained(base_model, "dllwa/gemma4-form-report-lora") - Notebooks
- Google Colab
- Kaggle
Download code/scripts/server/run_form31b_retest.sh from dllwa/gemma4-form-report-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.68 kB
-
https://huggingface.co/dllwa/gemma4-form-report-lora/resolve/main/code/scripts/server/run_form31b_retest.sh
- Command line
-
hf download hf://dllwa/gemma4-form-report-lora/code/scripts/server/run_form31b_retest.sh
-
curl -L -o run_form31b_retest.sh https://huggingface.co/dllwa/gemma4-form-report-lora/resolve/main/code/scripts/server/run_form31b_retest.sh
1.68 kB
| # ๋ชฉํ 1 ์ฌ์ธก์ 10๊ฑด(2ํ ์์ , probe_retest_1124.jsonl) โ 31B base ยท 31B LoRA(2ep) (2026-11-24, ์ฌ์ฉ์ ์ง์). | |
| # ์์ฑ ์กฐ๊ฑด(greedy ยท rp 1.0 ยท seed 42 ยท ์ต๋ 1536 ยท ํ๋กฌํํธ 4096). ๋ ์ฅ ๋ถํ , ์ํ 0.32. | |
| # ๊ธฐ๋: setsid nohup bash scripts/server/run_form31b_retest.sh >/dev/null 2>&1 & | |
| B=/home/work/data_resource | |
| cd $B/admin-llm || exit 1 | |
| M=$B/models/gemma-4-31B-it | |
| OUT=runs/exp_form31b_retest | |
| DATA=data/realdoc/probe_retest_1124.jsonl | |
| CK=runs/2026-11-24_D_form11_31b_r16_2ep/checkpoint-2074 | |
| PY=$B/envs/lora/bin/python | |
| mkdir -p $OUT | |
| if [ "${1:-}" != "--locked" ]; then | |
| OURS=$(pgrep -f "^$PY" | xargs -r ps -o cmd= -p 2>/dev/null | grep -v "train_lora_vl" | grep -v "compile_worker" || true) | |
| if [ -n "$OURS" ]; then echo "์ฐ๋ฆฌ ๊ณ์ด ์ก ์์ โ ์ค๋จ: $OURS" >> $OUT/chain.log; exit 1; fi | |
| echo "WAIT_LOCK $(date '+%F %T')" >> $OUT/chain.log | |
| exec flock /tmp/lora_tune.lock bash "$0" --locked | |
| fi | |
| echo "LOCKED $(date '+%F %T')" >> $OUT/chain.log | |
| cp .commit_hash $OUT/commit_hash 2>/dev/null | |
| export PYTHONPATH=$B/admin-llm/pyshim PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | |
| G="$PY -u src/eval/generate.py --model $M --seed 42 --repetition_penalty 1.0 --mem_fraction 0.32 --batch 10 --attn sdpa --max_prompt_len 4096 --max_new_tokens 1536 --stream --data $DATA --n 10" | |
| $G --out $OUT/base31.jsonl > $OUT/base31.log 2>&1 && echo "DONE_base31 $(date '+%F %T')" >> $OUT/chain.log \ | |
| && $G --adapter $CK --out $OUT/lora31.jsonl > $OUT/lora31.log 2>&1 && echo "DONE_lora31 $(date '+%F %T')" >> $OUT/chain.log \ | |
| && echo "CHAIN_DONE $(date '+%F %T')" >> $OUT/chain.log || echo "FAIL $(date '+%F %T')" >> $OUT/chain.log | |