华为升腾910b3 八卡 跑deepseek-r1 671b

 适配Dockerfile

参考项目:https://github.com/zhongTao99/ollama

:[Ascend ] add ascend npu support by zhongTao99 · Pull Request #5872 · ollama/ollama · GitHubIt's a draft for ascend npu support, It can get gpu info for npu, and need to be optimizationfix:#5315The pre-builded ollama that support Huawei Atlas A2 series as the backend can be obtained fr...https://github.com/ollama/ollama/pull/5872https://github.com/ollama/ollama/pull/5872

直接docker 拉取镜像:
 

docker pull leopony/ollama:latest
docker save -o ollama.tar leopony/ollama:latest

docker 镜像转 singularity 镜像:
 

singularity build ollama.sif oci-archive:ollama.tar
singularity exec \
  --contain \
  --bind /dev/davinci0:/dev/davinci0 \
  --bind /dev/davinci_manager:/dev/davinci_manager \
  --bind /dev/devmm_svm:/dev/devmm_svm \
  --bind /dev/hisi_hdc:/dev/hisi_hdc \
  --bind /usr/local/dcmi:/usr/local/dcmi \
  --bind /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
  --bind /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
  --bind /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
  --bind /etc/ascend_install.info:/etc/ascend_install.info \
  --bind /share/home/lyzeng24/.ollama:/share/home/lyzeng24/.ollama \
  --network-args "portmap=11434:11434/tcp" \
  ollama.sif /bin/bash
  
-c "source /usr/local/Ascend/ascend-toolkit/set_env.sh && /bin/bash"

ollama serve &

虽然能顺利识别华为升腾NPU,也能成功加载但是无法推理。

可能原因:
ollama_Atlas_A2_series_cann8.0.rc2.bin.gz

不适配910b3,是A2编译的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值