fengzii/roberta-base-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

FacebookAI/roberta-base 昇腾 NPU 适配

环境信息

  • 硬件: Ascend910 (Ascend910_9362)
  • 软件: CANN 8.5.1, PyTorch 2.9.0 + torch_npu 2.9.0.post1, Python 3.11
  • NPU内存: 627.7 MB (float32)

适配步骤

export HF_ENDPOINT=https://hf-mirror.com
pip install transformers
python3 inference.py

验证结果

  • 推理: 3/3 测试通过
  • last_hidden_state shape: [1, 1, 768]
  • NPU内存: 627.7 MB
  • NPU设备: Ascend910_9362

自验报告

  • 日期: 2026-08-11 | 硬件: Ascend 910 (Ascend910_9362)
  • 验证: 3/3 测试通过
  • NPU内存: 627.7 MB (float32)