Downloads · 30 days
14
22% of all-time downloads
cyqwill/sger-qwen3.5-9b-name-matching
sger-qwen3.5-9b-name-matching is a machine learning model from cyqwill. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
在 Qwen/Qwen3.5-9B 基础上分两阶段 LoRA 微调后的合并模型,用于印度 KYC 场景:
Downloads · 30 days
14
22% of all-time downloads
All-time downloads
63
Public
Repo size
20 MB
Likes
0
Public
Click a slice to open those files.
.json20 MB · 100%
From the Hugging Face model README
在 Qwen/Qwen3.5-9B 基础上分两阶段 LoRA 微调后的合并模型,用于印度 KYC 场景:
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
model = AutoModelForImageTextToText.from_pretrained(
"cyqwill/sger-qwen3.5-9b-name-matching",
torch_dtype=torch.bfloat16,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("cyqwill/sger-qwen3.5-9b-name-matching")
prompt = (
"<|im_start|>system\n"
"You are an expert system for KYC name matching in India. Determine if Name 1 and Name 2 refer to the same person. "
"Account for spelling variations, abbreviations, token reordering, merged tokens, and honorifics (-bhai, -ji).<|im_end|>\n"
"<|im_start|>user\n"
'[Few-Shot Examples]\n'
'Name 1: "kirtan singh" | Name 2: "singhkirtan" -> Yes\n'
'Name 1: "ramesh patel" | Name 2: "rameshbhai patel" -> Yes\n'
'Name 1: "vipin" | Name 2: "bipin" -> No\n'
'[Target]\n'
'Name 1: "अनिल रजनी यादव" | Name 2: "रजनी अनिल यादव" -> Match?<|im_end|>\n'
"<|im_start|>assistant\n"
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=8)
print(tokenizer.decode(out[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
测试集(9581 对姓名):
| 指标 | 数值 |
|---|---|
| Precision | 0.9997 |
| Recall | 0.9997 |
| F1 | 0.9997 |
| Accuracy | 0.9998 |