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

distilbert/distilroberta-base 昇腾 NPU 适配

环境信息

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

适配步骤

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

自验报告

  • 日期: 2026-08-12 | 硬件: Ascend 910 (Ascend910_9362)
  • 验证: 3/3 测试通过
  • last_hidden_state shape: [1, 4, 768]