Llama-3.1-8B-Instruct
Meta's efficient 8B open-weight instruction-tuned language model featuring a 128K context window and grouped-query attention, widely suited for single-GPU high-throughput serving, domain fine-tuning, and retrieval-augmented generation.
What you can do
- Knowledge-base RAG question answering
- Domain-specific LoRA and SFT tuning
- High-throughput classification and summarization
Input & output
- Input
- Text instructions, RAG context passages, and chat messages up to 128K tokens
- Output
- Concise natural-language answers, summaries, structured JSON, and code snippets
Try a prompt like this
Given the following API error logs, classify each failure into network timeout, authentication error, or schema mismatch, and output a JSON summary table.
Things to know
Requires ~16GB VRAM in BF16 (fits a single 24GB GPU with room for long KV cache, or ~6GB in INT4); Chinese proficiency benefits from bilingual LoRA/SFT fine-tuning, under the Llama 3.1 Community License.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
LLM-Research/Meta-Llama-3.1-8B-Instruct
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="LLM-Research/Meta-Llama-3.1-8B-Instruct",
messages=[{"role": "user", "content": "Given the following API error logs, classify each failure into network timeout, authentication error, or schema mismatch, and output a JSON summary table."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide