Running Llama 3.1 405B Meta's Llama 3.1 405B model is no longer hosted by any public inference provider, according to a guide on a11ce.com, which provides instructions for running the model on an on-demand GPU instance for about $20 per hour and 10 minutes of setup. The guide details using vLLM with FP8 weights downloaded from a Cloudflare R2 bucket, and setting up a local API endpoint via SSH or Cloudflare Tunnel. a11ce.com /llama-3.1-405b.html Llama 3.1 405b base is no longer hosted by any public inference provider. This page has instructions for running it yourself on an on-demand GPU instance for ~$20/hr and 10 minutes of setup. df -h /dev/shm . API KEY=${API KEY:-$ openssl rand -hex 16 } echo "💜 api key is $API KEY" NVLS causes problems on some pods so just disable it export NCCL NVLS ENABLE=0 LLAMA=meta-llama/Llama-3.1-405B-FP8 WEIGHTSDIR=/dev/shm/llama This is a read-only token for an R2 bucket containing the weights R2 KEY ID=41f96e313f23edb542aa2d9f11f27d1f R2 ACCESS KEY=1864e92a4c9ac79581489dec9bf2e50b037fc47e35eb581ce46389cacfbdecb4 R2 ENDPOINT=https://47e39f6f60165d6392620a903e13d8b6.r2.cloudflarestorage.com echo "💜 downloading vllm" python3 -m pip install vllm fastsafetensors echo "💜 connecting to r2" curl -fsSL https://rclone.org/install.sh -o rclone-install.sh bash rclone-install.sh rclone config create r2 s3 provider=Cloudflare \ access key id=$R2 KEY ID \ secret access key=$R2 ACCESS KEY \ endpoint=$R2 ENDPOINT \ acl=private no check bucket=true echo "💜 downloading weights" mkdir -p $WEIGHTSDIR rclone copy --transfers 16 --multi-thread-streams 16 --multi-thread-cutoff 64M \ --progress r2:llama/Llama-3.1-405B-FP8/ "$WEIGHTSDIR"/ echo "💜 starting vllm" vllm serve "$WEIGHTSDIR" --tensor-parallel-size 4 --load-format fastsafetensors \ --max-model-len 65536 --allow-deprecated-quantization \ --served-model-name "$LLAMA" --api-key "$API KEY" ssh -N -L 8000:localhost:8000 root@