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 / code /scripts /server /run_form31b_retest.sh
dllwa's picture
Initial release
3ca95cd
Raw History Blame Contribute Delete
1.68 kB
#!/bin/bash
# ๋ชฉํ‘œ 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