在GitHub 仓库页面,你可以点击 "Clone or download" 按钮,然后选择 "Download ZIP" 来下载源代码的压缩包。如果你熟悉 Git,也可以通过 Git 命令来克隆仓库: bash git clone https://github.com/xai-org/grok-1.git 查看源代码: 下载或克隆仓库后,你可以解压文件或使用你喜欢的代码编辑器打开仓库中的文件,查...
import torch from modelscope import AutoModelForCausalLM, snapshot_download from sentencepiece import SentencePieceProcessor ## model_dir = snapshot_download('colossalai/grok-1-pytorch', revision='v1.0.0') # tokenizer downloaded from the official grok-1 repository sp = SentencePieceProcessor(model_...
社区支持直接下载模型的repo: from modelscope import snapshot_downloadmodel_dir = snapshot_download("AI-ModelScope/grok-1") 03 Grok推理和评测 环境准备 Grok-1需要8卡A100运行。原始模型是Jax框架编写,因此使用魔搭默认镜像无法工作,为此需要使用Jax的镜像: docker pull ghcr.io/nvidia/jax:jax# 如果国内...
这里是用了hfd这个开源工具,可以做到高速稳定。 CLI-Tool for download Huggingface models and datasets with aria2/wget+git (github.com)gist.github.com/padeoe/697678ab8e528b85a2a7bddafea1fa4f 下载hfd: wget https://hf-mirror.com/hfd/hfd.shchmod a+x hfd.sh chmod a+x hfd.sh 2. 配置镜...
git clone https://github.com/xai-org/grok-1.git && cd grok-1pip install huggingface_hub[hf_transfer]huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False ...
Make sure to download the checkpoint and place ckpt-0 directory in checkpoint. Then, run pip install -r requirements.txt python run.py to test the code. The script loads the checkpoint and samples from the model on a test input. Due to the large size of the model (314B parameters),...
git clone https://github.com/xai-org/grok-1.git && cd grok-1pip install huggingface_hub[hf_transfer]huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False ...
git clone https://github.com/xai-org/grok-1.git && cd grok-1 pip install huggingface_hub[hf_transfer] huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False ...
gitclonehttps://github.com/xai-org/grok-1.git &&cdgrok-1pip install huggingface_hub[hf_transfer]huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False
git clone https://github.com/xai-org/grok-1.git && cd grok-1pip install huggingface_hub[hf_transfer]huggingface-cli download xai-org/grok-1 --repo-type model --include ckpt-0/* --local-dir checkpoints --local-dir-use-symlinks False ...