prachuryyaIITG/SampurNER_Bengali_MuRIL (MuRIL-large-cased backbone fine-tuned on the
SampurNER Bengali dataset for fine-grained named entity recognition) adapted and verified
on a single Huawei Ascend 910B NPU (npu:0) with PyTorch + torch_npu.
BertForTokenClassification, 133 Few-NERD style labels)npu:0: ~135 sentences/s (fp32, batch=2, max_len=256), vs ~4 sentences/s on CPUinference.py # run Bengali FgNER on Ascend NPU (npu:0 by default)
readme.md # this file
requirements.txt # python dependencies
assets/
agent_workflow.png # end-to-end adaptation workflow evidence
npu_device_call.png # NPU environment and device placement evidence
model_result.png # span results, consistency metrics and performance evidencepip install -r requirements.txt
python inference.py --device npu:0 \
--text "রবীন্দ্রনাথ ঠাকুর ১৮৬১ সালে কলকাতার জোড়াসাঁকোতে জন্মগ্রহণ করেন।"The script downloads the original weights from HuggingFace on first use (or point
--model at a local checkpoint directory), moves every tensor to the requested NPU
device, synchronizes with torch.npu.synchronize() before timing, and decodes subword
predictions into entity spans with text offsets and fine-grained labels such as
person-artist/author, location-GPE and organization-company.
Workflow log (environment check, route inspection, weight download, validation):

NPU device call proof (npu-smi info, model/input/output tensors all on npu:0,
no CPU fallback):

Model result (extracted spans, CPU/NPU consistency, throughput):

prachuryyaIITG/SampurNER_Bengali_MuRIL release.