赞
踩
git clone https://github.com/xai-org/grok-1.git
# 新建虚拟环境
conda create --prefix=D:\CondaEnvs\grok1 python=3.11
conda activate D:\CondaEnvs\grok1
pip install huggingface_hub[hf_transfer]
pip install -U "huggingface_hub[cli]"
huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False
上面的方法报错,这时候需要一些魔法
$env:HTTP_PROXY="socks5://127.0.0.1:1081"
$env:HTTPS_PROXY="socks5://127.0.0.1:1081"
# git lfs install
# git clone https://huggingface.co/xai-org/grok-1
huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False
中间网络波动需要多尝试几次
模型太大了,电脑配置太低空间不足
下载完成之后运行即可
pip install -r requirements.txt
python run.py
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。