昇腾 NPU (torch-npu) 适配版。LFM2.5-VL 多模态视觉语言模型,单图 + 文本提示推理。
# CLI 单图推理
python inference.py --img test_input.png --prompt "Describe this image in one sentence."
# FastAPI 服务 (POST /predict 上传图片)
python inference.py --server./model_weights/LiquidAI/LFM2.5-VL-450M(本地优先,推理不联网)npu:0(torch_npu),无任何 CUDA 依赖