Nordic PII Spans (Qwen3.5-4B), BF16
Finds personal data in Norwegian (Bokmål and Nynorsk) and Swedish text and lists every item with its category and the person it belongs to, so the text can be redacted or pseudonymised consistently. This repo is the BF16 safetensors build for vLLM. The model card with the categories, training data, full results and limits is in nordic-pii-spans-qwen3.5-4b, which also has the GGUF for Ollama.
{"spans":[{"label":"PERSON","text":"Kari Nordmann","ref":"p1"},{"label":"PHONE","text":"912 34 567","ref":"p1"}]}
Switch thinking off in every request: "chat_template_kwargs": {"enable_thinking": false}. The model was
trained to answer right after an empty reasoning block; with thinking on it reasons instead of answering.
Use with vLLM
vllm serve unified-analytics/nordic-pii-spans-qwen3.5-4b-BF16 --max-model-len 4096
Send the system prompt from prompt.json as the system message and the text as the user message:
curl http://localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "unified-analytics/nordic-pii-spans-qwen3.5-4b-BF16", "temperature": 0, "max_tokens": 1500,
"chat_template_kwargs": {"enable_thinking": false},
"messages": [{"role": "system", "content": "<system prompt from prompt.json>"},
{"role": "user", "content": "Ring Kari Nordmann på 912 34 567."}]}'
Or let the client do it, including character positions and redaction:
python nordic_pii.py spans --url http://localhost:8000 --span-api openai --model unified-analytics/nordic-pii-spans-qwen3.5-4b-BF16 "Ring Kari Nordmann på 912 34 567."
Results
The same fine-tuned weights in three formats, each scored on all 2,000 test texts and the 100 check texts (exact F1 / overlap F1 / personal text covered):
| Build | Repo | Runs on | Size | Test | Check |
|---|---|---|---|---|---|
| Q8_0 GGUF | nordic-pii-spans-qwen3.5-4b | Ollama, llama.cpp | 4.5 GB | 0.961 / 0.985 / 0.977 | 0.940 / 0.965 / 0.956 |
| BF16 safetensors | nordic-pii-spans-qwen3.5-4b-BF16 | vLLM, Transformers | 9.1 GB | 0.958 / 0.985 / 0.977 | 0.951 / 0.973 / 0.957 |
| NVFP4 (compressed-tensors) | nordic-pii-spans-qwen3.5-4b-NVFP4 | vLLM on NVIDIA Blackwell | 5.4 GB | 0.953 / 0.981 / 0.970 | 0.943 / 0.961 / 0.955 |
The GGUF runs through llama.cpp, the other two through vLLM 0.26, all on one RTX PRO 6000 Blackwell. BF16 and Q8_0 are equally accurate within noise; NVFP4 gives up about half a point to a point.
About this build
The full fine-tuned weights in BF16 safetensors (Qwen3_5ForConditionalGeneration): the 16-bit model the GGUF and the
NVFP4 build were made from. Use it with vLLM or Transformers, or as the starting point for further fine-tuning.
Qwen3.5-4B's vision tower is included unchanged; the model was trained on text only.
License
Apache 2.0, like the base model.