Cicero 是 100M 参数拉丁语大语言模型(12 层 GPT 架构,32000 词表,从零训练)。本仓完成其在昇腾 Ascend910 NPU 上的真实推理适配与 CPU/NPU 精度对拍。
checkpoint_step_033000.pt(1273 MB,SHA-256 见 validation/weight.sha256)idx [1,64](vocab 32000,前向 logits)cls_default_noretrieval.json 配置(noretrieval 模式,避免 CUDA-only retrieval 依赖)| 指标 | CPU | NPU (Ascend910 npu:0) |
|---|---|---|
| 平均延迟 | 296.64 ms | 187.60 ms |
| 输出 shape | [1,64,32000] | [1,64,32000] |
精度对拍(CPU vs NPU,fp32):
| 指标 | 值 |
|---|---|
| cosine similarity | 0.99999999 |
| max_abs_error | 7.306e-04 |
| mean_abs_error | 9.474e-05 |
| precision_pass | true |



python3 inference.py --device cpu # CPU 推理
python3 inference.py --device npu # NPU 推理(需 Ascend910 + torch_npu)依赖:torch、transformers、numpy、huggingface_hub、kditransform(LimiX 推理所需)。