Views
No views yet
null. The model expects a layout-aware prompt
of the form [index@x,y] "text" with coordinates normalized to a 1000x1000 grid.google/gemma-4-E4B (4-bit NF4)pii_v5 (9,989 mobile UI screenshots from RICO-ScreenQA)| Metric | Value |
|---|---|
| Micro F1 | 0.586 |
| Macro F1 | 0.536 |
| JSON validity | 100% |
email_address 0.84 · phone_number 0.59 · address 0.56 ·
full_name 0.56 · account_balance 0.56 · transaction_amount 0.55 ·
username 0.47 · other_sensitive 0.42 · date_of_birth 0.28.1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
3from peft import PeftModel
4
5bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
6 bnb_4bit_compute_dtype=torch.bfloat16)
7base = AutoModelForCausalLM.from_pretrained("google/gemma-4-E4B",
8 quantization_config=bnb,
9 device_map="auto")
10model = PeftModel.from_pretrained(base, "tomasstankevicius/privacy-masker-gemma4-lora")
11tok = AutoTokenizer.from_pretrained("tomasstankevicius/privacy-masker-gemma4-lora")date_of_birth regresses on pii_v5 due to label noise (mixes date strings with
age integers).other_sensitive is structurally weak (mixes biometrics, credentials,
demographics).