gpuos

Chat · Free plan

Run Llama 3.1 8B on your own GPU

Llama 3.1 8B is a chat catalog model (8B dense) managed with Ollama. Catalog memory is estimated at 7 GB with Q4_K_M for a short context (4–8K tokens). Validate output quality and memory use with your workload on your hardware.

Deploy the catalog Ollama tag on your machine and verify the pulled model's quantization. Once deployed, gpuos serves it as llama-3.1-8b through the hosted gpuos gateway, with API keys, optional token quotas and usage metering. Request and response payloads pass through that gateway.

Parameters
8B dense
Quantization
Q4_K_M
Est. VRAM (4–8K ctx)
≈ 7 GB
Catalog context
128K tokens
License
Llama 3.1 Community License
Engine
Ollama
Ollama tag
llama3.1:8b
API
/v1/chat/completions

Llama's license requires attribution and adds use and commercial conditions. Review it before use.

Compare GPU memory for Llama 3.1 8B

Catalog estimate at Q4_K_M, not a measured benchmark. Chat estimates assume a short context; embedding memory depends on input and batch size. The comparison includes a 5% screening margin; it does not establish runtime performance. More in how much VRAM an LLM needs.

Check this estimate against your GPU with the VRAM calculator

Call Llama 3.1 8B with the OpenAI SDK

Use the supported chat completions endpoint with your gpuos base URL, API key and deployed model id. Validate any model-specific features your app needs. Setup for LangChain, Continue, Open WebUI and more is in integrations.

Python
from openai import OpenAI

client = OpenAI(base_url="https://gpuos.si/v1", api_key="gpuos_key_…")
stream = client.chat.completions.create(
    model="llama-3.1-8b",
    messages=[{"role": "user", "content": "Summarize our refund policy."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")
Node.js
import OpenAI from "openai"

const client = new OpenAI({ baseURL: "https://gpuos.si/v1", apiKey: process.env.GPUOS_API_KEY })
const reply = await client.chat.completions.create({
  model: "llama-3.1-8b",
  messages: [{ role: "user", content: "Summarize our refund policy." }],
})
console.log(reply.choices[0].message.content)
curl
curl https://gpuos.si/v1/chat/completions \
  -H "Authorization: Bearer $GPUOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "llama-3.1-8b", "messages": [{"role": "user", "content": "Hello"}]}'

Questions

How much VRAM does Llama 3.1 8B need?
The catalog estimate is 7 GB at Q4_K_M for a short context (4–8K tokens). The RTX 4060 Ti 8 GB clears this estimate with screening headroom in the comparison list. This is a planning estimate, not a tested hardware requirement. Validate context length, batch size and concurrent requests on your node.
Can I use Llama 3.1 8B commercially?
Llama 3.1 8B is released under the Llama 3.1 Community License. Llama's license requires attribution and adds use and commercial conditions. Review it before use.
Is Llama 3.1 8B compatible with the OpenAI API?
Through gpuos, Llama 3.1 8B uses the supported /v1/chat/completions endpoint with the model id "llama-3.1-8b". Configure your OpenAI-compatible client with the gpuos base URL and API key. Check model-specific features and any other API operations your app needs before switching.
Which gpuos plan includes Llama 3.1 8B?
Llama 3.1 8B is in the base catalog, available on the free Community plan (1 node, 1 GPU).

Related models

Plan your Llama 3.1 8B deployment with gpuOS

Create a free workspace and follow the quickstart to connect a node. Start with a Community model, or upgrade inside your workspace for the full catalog.