代码拉取完成,页面将自动刷新
在autodl 上面使用。 https://www.autodl.com/create
选择 pytroch 2.1 版本,python3.10
先创建相关配置的容器,然后克隆本项目,执行运行某些模型脚本:
git clone https://gitee.com/fly-llm/candle-run-llm.git
#下载 candle 项目
git clone https://github.com/huggingface/candle.git
# 临时替换
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
export RUSTUP_HOME=/root/autodl-tmp/cargo
export CARGO_HOME=/root/autodl-tmp/cargo
source "/root/autodl-tmp/cargo/env"
export HF_HOME=/root/autodl-tmp/hf_cache
模型地址:https://hf-mirror.com/Qwen/Qwen1.5-0.5B-Chat
python3 download.py Qwen/Qwen1.5-0.5B-Chat
cargo run --example qwen --features cuda -- --model-id Qwen/Qwen1.5-0.5B-Chat --prompt 北京景点推荐
cargo run --example qwen -- --model-id Qwen/Qwen1.5-0.5B-Chat --prompt 北京景点推荐
模型地址:https://hf-mirror.com/Qwen/Qwen1.5-4B-Chat
python3 download.py Qwen/Qwen1.5-4B
cargo run --example qwen --features cuda -- --model-id Qwen/Qwen1.5-4B-Chat --prompt 北京景点推荐
模型地址:https://hf-mirror.com/01-ai/Yi-6B-Chat-4bits
python3 download.py 01-ai/Yi-6B-Chat-4bits
cargo run --example yi --features cuda -- --model-id 01-ai/Yi-6B --prompt 北京景点推荐
模型地址:https://hf-mirror.com/THUDM/chatglm3-6b
python3 download.py THUDM/chatglm3-6b
python3 download.py lmz/candle-chatglm
cargo run --example chatglm --features cuda -- --prompt 北京景点推荐
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。