cd /news/large-language-models/running-llama-3-1-405b · home topics large-language-models article
[ARTICLE · art-114620] src=a11ce.com ↗ pub= topic=large-language-models verified=true sentiment=· neutral

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.

read1 min views1 publishedAug 28, 2026
Running Llama 3.1 405B
Image: source

[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"

export NCCL_NVLS_ENABLE=0

LLAMA=meta-llama/Llama-3.1-405B-FP8
WEIGHTSDIR=/dev/shm/llama

R2_KEY_ID=41f96e313f23edb542aa2d9f11f27d1f
R2_ACCESS_KEY=1864e92a4c9ac79581489dec9bf2e50b037fc47e35eb581ce46389cacfbdecb4
R2_ENDPOINT=https://47e39f6f60165d6392620a903e13d8b6.r2.cloudflarestorage.com

echo "💜 down 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 "💜 down 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@<IP> -p <PORT>

using the IP and port under "SSH over exposed TCP" to forward localhost:8000 to the server.http://localhost:8000/v1/completions

with the model name meta-llama/Llama-3.1-405B-FP8

and the API key that was printed at the start of the script. ²²If you lose your API key, ctrl-Z to vllm, run echo $API_KEY

, then fg

to resume vllm. For example (on your local machine):

curl http://localhost:8000/v1/completions \
  -H "Authorization: Bearer <KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model": "meta-llama/Llama-3.1-405B-FP8", "prompt": "The capital of Poland is", "max_tokens": 32}'

https://<WORDS>.trycloudflare.com/v1/completions

:

curl -sL -o /usr/local/bin/cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
chmod +x /usr/local/bin/cloudflared
cloudflared tunnel --url http://localhost:8000 2>&1 | grep --line-buffered -o 'https://[a-z-]*\.trycloudflare\.com'

See the notes page for more details and other methods.

You can respond to this page on twitter, mastodon, or bluesky.

── more in #large-language-models 4 stories · sorted by recency
── more on @meta 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/running-llama-3-1-40…] indexed:0 read:1min 2026-08-28 ·