SiameseUIE is a general information extraction model based on prompt + text construction, using pointer network for segment extraction.
iic/nlp_structbert_siamese-uie_chinese-base| Item | Value |
|---|---|
| NPU | Ascend910B4 |
| CANN | 8.5.1 |
| PyTorch | 2.9.0+cpu |
| torch_npu | 2.9.0.post1 |
| Python | 3.11.14 |
CPU vs NPU cosine similarity:
| Metric | Value |
|---|---|
| Cosine Similarity | 0.999999 |
Output shape: [1, 25, 768]
Output sample: [-0.0664, -0.0068, 0.0638, 0.0330, -0.0122]
SUCCESSpython3 inference.py
python3 evaluate.pyinference.py - NPU inference scriptevaluate.py - CPU vs NPU cosine similarity evaluation