LimiX-16M 是基于 RaBEL tokenization 与 readout-aligned routing 的 2M 参数表格基础模型(TFM),用于表格分类/回归。本仓完成其在昇腾 Ascend910 NPU 上的真实推理适配与 CPU/NPU 精度对拍。
inference.predictor.LimiXPredictor,GitHub: limix-ldm-ai/LimiX)LimiX-16M.ckpt(63 MB,SHA-256 见 validation/weight.sha256)X [64,10](分类任务,32 个测试样本)cls_default_noretrieval.json 配置(noretrieval 模式,避免 CUDA-only retrieval 依赖)| 指标 | CPU | NPU (Ascend910 npu:0) |
|---|---|---|
| 平均延迟 | 1688.90 ms | 644.46 ms |
| 输出 shape | [32] | [32] |
精度对拍(CPU vs NPU,fp32):
| 指标 | 值 |
|---|---|
| cosine similarity | 0.99999965 |
| max_abs_error | 9.539e-04 |
| mean_abs_error | 3.395e-04 |
| 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 推理所需)。