539 GB
44 files
Updated about 1 month ago
Name
Size
.gitattributes1.52 kB
xet
LICENSE5.47 kB
xet
README.md1.58 kB
xet
config.json947 Bytes
xet
pytorch_model-00000-TP-common.safetensors2.15 GB
xet
pytorch_model-00001-TP-common.safetensors2.15 GB
xet
pytorch_model-00002-TP-common.safetensors16.5 kB
xet
pytorch_model-00003-TP-common.safetensors34.4 GB
xet
pytorch_model-00004-TP-common.safetensors34.4 GB
xet
pytorch_model-00005-TP-common.safetensors34.4 GB
xet
pytorch_model-00006-TP-000.safetensors17.2 GB
xet
pytorch_model-00006-TP-001.safetensors17.2 GB
xet
pytorch_model-00006-TP-002.safetensors17.2 GB
xet
pytorch_model-00006-TP-003.safetensors17.2 GB
xet
pytorch_model-00006-TP-004.safetensors17.2 GB
xet
pytorch_model-00006-TP-005.safetensors17.2 GB
xet
pytorch_model-00006-TP-006.safetensors17.2 GB
xet
pytorch_model-00006-TP-007.safetensors17.2 GB
xet
pytorch_model-00007-TP-000.safetensors17.2 GB
xet
pytorch_model-00007-TP-001.safetensors17.2 GB
xet
pytorch_model-00007-TP-002.safetensors17.2 GB
xet
pytorch_model-00007-TP-003.safetensors17.2 GB
xet
pytorch_model-00007-TP-004.safetensors17.2 GB
xet
pytorch_model-00007-TP-005.safetensors17.2 GB
xet
pytorch_model-00007-TP-006.safetensors17.2 GB
xet
pytorch_model-00007-TP-007.safetensors17.2 GB
xet
pytorch_model-00008-TP-000.safetensors17.2 GB
xet
pytorch_model-00008-TP-001.safetensors17.2 GB
xet
pytorch_model-00008-TP-002.safetensors17.2 GB
xet
pytorch_model-00008-TP-003.safetensors17.2 GB
xet
pytorch_model-00008-TP-004.safetensors17.2 GB
xet
pytorch_model-00008-TP-005.safetensors17.2 GB
xet
pytorch_model-00008-TP-006.safetensors17.2 GB
xet
pytorch_model-00008-TP-007.safetensors17.2 GB
xet
pytorch_model-00009-TP-common.safetensors1.07 GB
xet
pytorch_model-00010-TP-common.safetensors8.59 GB
xet
pytorch_model-00011-TP-common.safetensors8.59 GB
xet
pytorch_model-00012-TP-common.safetensors1.07 GB
xet
pytorch_model-00013-TP-common.safetensors1.06 MB
xet
pytorch_model-00014-TP-common.safetensors1.06 MB
xet
pytorch_model-00015-TP-common.safetensors1.06 MB
xet
pytorch_model-00016-TP-common.safetensors1.06 MB
xet
pytorch_model-00017-TP-common.safetensors8.4 MB
xet
tokenizer.tok.json7.72 MB
xet
README.md

Grok 2

This repository contains the weights of Grok 2, a model trained and used at xAI in 2024.

Usage: Serving with SGLang

  • Download the weights. You can replace /local/grok-2 with any other folder name you prefer.

    hf download xai-org/grok-2 --local-dir /local/grok-2
    

    You might encounter some errors during the download. Please retry until the download is successful.
    If the download succeeds, the folder should contain 42 files and be approximately 500 GB.

  • Launch a server.

    Install the latest SGLang inference engine (>= v0.5.1) from https://github.com/sgl-project/sglang/

    Use the command below to launch an inference server. This checkpoint is TP=8, so you will need 8 GPUs (each with > 40GB of memory).

    python3 -m sglang.launch_server --model /local/grok-2 --tokenizer-path /local/grok-2/tokenizer.tok.json --tp 8 --quantization fp8 --attention-backend triton
    
  • Send a request.

    This is a post-trained model, so please use the correct chat template.

    python3 -m sglang.test.send_one --prompt "Human: What is your name?<|separator|>\n\nAssistant:"
    

    You should be able to see the model output its name, Grok.

    Learn more about other ways to send requests here.

License

The weights are licensed under the Grok 2 Community License Agreement.

Total size
539 GB
Files
44
Last updated
May 31
Pre-warmed CDN
US EU US EU

Contributors