Meta Llama 3.1 8B

Meta

llama

The latest in Meta's long-running Llama series, Llama 3.1 is another jack of all trades and master of some, now in 8 languages and up to 128k tokens.

Model info

Model

Meta Llama 3.1 8B

Author

Meta

Arch

llama

Parameters

8B

Format

gguf

Size on disk

about 4.92 GB

Download and run Meta Llama 3.1 8B

Open in LM Studio to view download options

Download llama-3.1-8b from the terminal

Download the model using lms — LM Studio's developer CLI.

lms get llama-3.1-8b
If you don't have it yet, get it by running npx lmstudio install-cli

Call llama-3.1-8b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama-3.1-8b",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes." },
      { "role": "user", "content": "Introduce yourself." }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": true
  }'

Next Steps: Build! 🔨

Learn more