Instructions to use Jackrong/Llama-3.1-8B-Instruct-Elite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jackrong/Llama-3.1-8B-Instruct-Elite") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jackrong/Llama-3.1-8B-Instruct-Elite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Use Docker
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jackrong/Llama-3.1-8B-Instruct-Elite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/Llama-3.1-8B-Instruct-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
- SGLang
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Jackrong/Llama-3.1-8B-Instruct-Elite" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/Llama-3.1-8B-Instruct-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Jackrong/Llama-3.1-8B-Instruct-Elite" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/Llama-3.1-8B-Instruct-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Ollama:
ollama run hf.co/Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
- Unsloth Studio
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Jackrong/Llama-3.1-8B-Instruct-Elite to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Jackrong/Llama-3.1-8B-Instruct-Elite to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jackrong/Llama-3.1-8B-Instruct-Elite to start chatting
- Pi
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Docker Model Runner:
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
- Lemonade
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3.1-8B-Instruct-Elite-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Jackrong/Llama-3.1-8B-Instruct-Elite with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Jackrong/Llama-3.1-8B-Instruct-Elite:Q4_K_M
Run Hermes
hermes
- Atomic Chat
Llama-3.1-8B-Instruct-Elite
Abstract
A bilingual (Chinese/English) instruction-tuned model based on Llama-3.1-8B-Instruct. It follows the training recipe of Llama-3.2-3B-Elite (Qwen-3-235b-a22b-Instruct-2507 as teacher for distillation + SFT), but intentionally reduces emojis (From Qwen3 teacher) while retaining and reinforcing professional formatting (e.g., bolded subheadings, bullet lists, clear paragraphs) to produce answers that are cleaner, more stable, and easier to read.
Table of Contents
- Highlights
- Model Overview
- Training & Data
- Quickstart
- Prompting & Output Conventions
- Use Cases & Limitations
- Deployment & Quantization
- License
- Acknowledgments
- Citation
- Changelog
Highlights
- Professional and clean: fewer emojis by default; outputs emphasize bolded subheadings + bullet lists, making content easy to copy and further edit.
- Stable structure: Consistent formatting for sectioned reports, step checklists, comparison tables, and key-point summaries.
- Bilingual / mixed text friendly: Strong terminology coherence and clear hierarchy for Chinese, English, and mixed ChineseโEnglish scenarios.
- Stronger instruction-following: Higher adherence to constraints such as โno emojis,โ โonly output key-point tables,โ and โpreserve Markdown heading levels.โ
- Controllable verbosity: Defaults to less verbosity, focusing on key information while keeping necessary context.
Base:
meta-llama/Llama-3.1-8B-Instruct; Training paradigm: Teacher distillation + SFT.
Model Overview
- Parameters: 8B
- Tasks: Instruction following / Dialogue generation / Q&A / Summarization / Structured output
- Languages: Chinese & English (robust for mixed ChineseโEnglish)
- Goal: Deliver concise, professional, and format-friendly content on modest compute (reduced emojis; keep bolded subheadings, bullet lists, and other formatting enhancements).
Training & Data
- Data size: About 80,000 high-quality instructionโresponse pairs (Chinese/English mix covering Q&A, summarization, expository writing, structured output, procedural steps, etc.).
- Method: Distillation from a teacher model + SFT; explicit format/style control (fewer emojis; emphasize headings/lists/bold).
- Compute: Single A100; LoRA/QLoRA can complete several epochs within a short time.
- Style & constraints: Fewer emojis; strengthened bold subheadings, bullet lists, bold key terms, and clear paragraph hierarchy.
If a distilled-data subset is released, add links and stats here (sample counts / language ratios / filtering rules).
Quickstart
Transformers (recommended)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Jackrong/Llama-3.1-8B-Instruct-Elite"
tok = AutoTokenizer.from_pretrained(model_id, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "Write clean, professional answers with bolded subheadings and structured lists; avoid emojis."},
{"role": "user", "content": "่ฏท็จ่ฆ็น่ฏดๆๅฆไฝไผๅๅจ่ฎกๅ๏ผไฝฟๅ
ถๆดๅฏๆง่กใ"}
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
)
print(tok.decode(outputs[0], skip_special_tokens=True))
vLLM
from vllm import LLM, SamplingParams
llm = LLM(model="Jackrong/Llama-3.1-8B-Instruct-Elite", dtype="bfloat16")
params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=512)
prompt = "ๅๅบ 5 ๆกๅฏๆง่ก็ๅจ่ฎกๅไผๅๅปบ่ฎฎ๏ผ็จๅ ็ฒๅฐๆ ้ข+่ฆ็นๅ่กจ๏ผใ"
outputs = llm.generate([prompt], params)
print(outputs[0].outputs[0].text)
llama.cpp (GGUF: Q4_K_M)
./main -m Llama-3.1-8B-Instruct-Elite.Q4_K_M.gguf -p "ไปฅ่ฆ็น่ฏดๆ๏ผๅฆไฝๅฐๆๆฏๆ็ซ ๆนๅๅพๆดไธไธไธๅนฒๅ๏ผ"
Prompting & Output Conventions
- Organize with concise headings and bolded subheadings; bold key terms and conclusions where helpful.
- Use bullet lists for steps and key points; avoid emojis by default.
- Sampling tips:
temperature=0.6โ0.8,top_p=0.9โ0.95.
Use Cases & Limitations
Use cases: Chinese/English or mixed bilingual Q&A, summarization, instructional/technical/business writing; structured outputs (plans, steps, tables, FAQs, meeting minutes).
Limitations: For high-factuality tasks that require up-to-date information, pair with retrieval; for medical/legal/financial or other high-risk scenarios, use human review; do not use for illegal or harmful purposes.
License
- Model weights: Llama 3.1 Community License (same as base).
- Code/scripts: May use Apache-2.0 or similar; the weight license remains unchanged.
Acknowledgments
- Meta for Llama-3.1 and the broader ecosystem
- Open-source community contributions to distillation, SFT, evaluation, and deployment
- Training recipe and practices adapted from Llama-3.2-3B-Elite
Citation
@misc{JackrongL31_8B_Elite,
title = {Jackrong/Llama-3.1-8B-Instruct-Elite},
author = {Jackrong},
year = {2025},
url = {https://huggingface.co/Jackrong/Llama-3.1-8B-Instruct-Elite}
}
Changelog
- v1.0: Initial release. ~80k samples; trained on a single A100; provides GGUF Q4_K_M; fewer emojis; strengthened bold subheadings and bullet lists; training recipe aligned with 3.2-3B-Elite.
- Downloads last month
- 2
4-bit
Model tree for Jackrong/Llama-3.1-8B-Instruct-Elite
Base model
meta-llama/Llama-3.1-8B