Instructions to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-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-Chinese-Elite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-Elite:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-Elite:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-Elite:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-Elite:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
Use Docker
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
- SGLang
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-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-Chinese-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-Chinese-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite with Ollama:
ollama run hf.co/Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
- Unsloth Studio
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-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-Chinese-Elite to start chatting
- Pi
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-Elite:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite with Docker Model Runner:
docker model run hf.co/Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
- Lemonade
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3.1-8B-Instruct-Chinese-Elite-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-Elite:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Jackrong/Llama-3.1-8B-Instruct-Chinese-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-Chinese-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-Chinese-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"
Llama-3.1-8B-Instruct-Chinese-Elite
ๆ่ฆ
ๅบไบ Llama-3.1-8B-Instruct ็ไธญ่ฑๅ่ฏญๆไปคๅพฎ่ฐๆจกๅใๆฒฟ็จ Llama-3.2-3B-Elite ็่ฎญ็ปๆนๆณ๏ผ Qwen-3-235b-a22b-Instruct-2507 ๆๅธๆจกๅ่ธ้ฆ + SFT๏ผ๏ผไฝๆๆๅๅฐ่กจๆ
็ฌฆๅท๏ผๅๆถไฟ็ๅนถๅผบๅ่พๅบๆ ผๅผ็ไธไธๅบฆ๏ผๅฆๅฐๆ ้ขๅ ็ฒใ่ฆ็นๅ่กจใๆธ
ๆฐๆฎต่ฝ๏ผ๏ผไปฅ่ทๅพๆดๅนฒๅใ็จณๅฎใๆ่ฏป็ๅ็ญใ
็ฎๅฝ
- ๆจกๅไบฎ็น
- ๆจกๅๆฆ่ง
- ่ฎญ็ปไธๆฐๆฎ
- ๅฟซ้ๅผๅง
- ้็จไธ้ๅถ
- ้จ็ฝฒไธ้ๅ
- ่ฎธๅฏ
- ่ด่ฐข
- ๅผ็จ
- ็ๆฌ่ฎฐๅฝ
ๆจกๅไบฎ็น
- ไธไธไธๅนฒๅ๏ผ้ป่ฎคๅๅฐ่กจๆ ็ฌฆๅท๏ผ่พๅบไปฅๅ ็ฒๅฐๆ ้ข + ่ฆ็นๅ่กจไธบไธป๏ผไพฟไบๅคๅถไธไบๆฌก็ผ่พใ
- ็ปๆ็จณๅฎ๏ผๅฏนๅ่ๆฅๅใๆญฅ้ชคๆธ ๅใๅฏน็ ง่กจใ่ฆ็นๆ่ฆ็ญ่ฟ่กไบ้ฃๆ ผไธๆ ผๅผๅฏน้ฝใ
- ๅ่ฏญ/ๆททๆไผๅ๏ผไธญๆใ่ฑๆไธไธญ่ฑๆททๆๅบๆฏๅ ทๅค่ฏๅฅฝ็ๆฏ่ฏญไธ่ดๆงไธๅฑๆฌกๆธ ๆฐๅบฆใ
- ๆไปค้ตไปๆดๅผบ๏ผๅฏนโไธ่ฆ่กจๆ ็ฌฆๅท / ๅช่พๅบ่ฆ็น่กจ / ไฟ็ Markdown ๆ ้ขๅฑ็บงโ็ญ็บฆๆ้ตไปๅบฆๆด้ซใ
ๅบๅบง๏ผ
meta-llama/Llama-3.1-8B-Instruct๏ผ่ฎญ็ป่ๅผ๏ผๆๅธ่ธ้ฆ + SFTใ
ๆจกๅๆฆ่ง
- ๅๆฐ่งๆจก๏ผ8B
- ไปปๅก๏ผๆไปค่ท้ / ๅฏน่ฏ็ๆ / ้ฎ็ญ / ๆ่ฆ / ็ปๆๅ่พๅบ
- ่ฏญ่จ๏ผไธญๆ & ่ฑๆ๏ผ่ฏๅฅฝๆฏๆไธญ่ฑๆททๆ๏ผ
- ็ฎๆ ๏ผๅจ่ฝป้็ฎๅไธ๏ผไบงๅบ็ฎๆดไธไธใๆ ผๅผๅๅฅฝ็ๅ ๅฎน๏ผๅๅฐ่กจๆ ็ฌฆๅท๏ผไฟ็ๅ ็ฒๅฐๆ ้ขใ่ฆ็นๅ่กจ็ญๆ ผๅผไผๅ๏ผ
่ฎญ็ปไธๆฐๆฎ
- ๆฐๆฎ่งๆจก๏ผ็บฆ 80,000 ๆก้ซ่ดจ้ๆไปค-ๅๅคๆ ทๆฌ๏ผไธญ่ฑๆททๅ๏ผ่ฆ็้ฎ็ญ/ๆ่ฆ/่ฏดๆๆ/็ปๆๅ่พๅบ/ๆญฅ้ชคๅ่ฏดๆ็ญ๏ผใ
- ่ฎญ็ปๆนๆณ๏ผๆๅธ่ธ้ฆ + SFT๏ผๆพๅผๆงๅถๆ ผๅผ/้ฃๆ ผ๏ผๅฐ่กจๆ ใๅผบ่ฐๆ ้ข/ๅ่กจ/ๅ ็ฒ๏ผใ
- ่ฎก็ฎ่ตๆบ๏ผA100 ๅๅก๏ผLoRA/QLoRA ๅฏๅจ่พ็ญๆถ้ดๅ ๅฎๆ่ฅๅนฒ epochใ
- ้ฃๆ ผไธ็บฆๆ๏ผๅๅฐ่กจๆ ็ฌฆๅท๏ผๅผบๅๅฐๆ ้ขๅ ็ฒใ่ฆ็นๅ่กจใๅ ณ้ฎๆฏ่ฏญๅ ็ฒไธๆฎต่ฝๅฑ็บงใ
ๅฆๅๅธ่ธ้ฆๆฐๆฎๅญ้๏ผ่ฏทๅจๆญคๅค่กฅๅ ้พๆฅไธ็ป่ฎก๏ผๆ ทๆฌๆฐ/่ฏญ็งๅ ๆฏ/่ฟๆปคๆ ๅ๏ผใ
ๅฟซ้ๅผๅง
Transformers๏ผๆจ่๏ผ
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-Chinese-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-Chinese-Elite.Q4_K_M.gguf \
-p "ไปฅ่ฆ็น่ฏดๆ๏ผๅฆไฝๅฐๆๆฏๆ็ซ ๆนๅๅพๆดไธไธไธๅนฒๅ๏ผ"
ๆ็คบ่ฏไธ่พๅบ่ง่
- ไฝฟ็จ็ฎๆดๆ ้ขไธๅ ็ฒๅฐๆ ้ข็ป็ป็ปๆ๏ผๅ ณ้ฎๆฏ่ฏญไธ็ป่ฎบ้ๅ ็ฒใ
- ไปฅ่ฆ็นๅ่กจๅ็ฐๆญฅ้ชคไธ่ฆ็น๏ผ้ป่ฎค้ฟๅ ่กจๆ ็ฌฆๅทใ
- ้ๆ ทๅปบ่ฎฎ๏ผ
temperature=0.6โ0.8ใtop_p=0.9โ0.95ใ
้็จไธ้ๅถ
้็จ๏ผไธญ/่ฑๆๆไธญ่ฑๆททๆ็้ฎ็ญใๆ่ฆใ่ฏดๆๆใๆๆฏ/ไธๅกๅไฝ๏ผ็ปๆๅ่พๅบ๏ผ่ฎกๅใๆญฅ้ชคใ่กจๆ ผใFAQใไผ่ฎฎ็บช่ฆ๏ผใ
้ๅถ๏ผๅผบไบๅฎๆงใ้ๆๆฐไฟกๆฏ็ไปปๅกๅปบ่ฎฎ้
ๅๆฃ็ดข๏ผๅป็/ๆณๅพ/ๆ่ต็ญ้ซ้ฃ้ฉ่พๅบ้ไบบๅทฅๆ กๅฏน๏ผไธๅพ็จไบ่ฟๆณๆไผคๅฎณๆง็จ้ใ
่ฎธๅฏ
- ๆจกๅๆ้๏ผ้ตๅพช Llama 3.1 Community License๏ผไธๅบๅบงไธ่ด๏ผใ
- ไปฃ็ /่ๆฌ๏ผๅฏไฝฟ็จ Apache-2.0 ็ญ๏ผไธๆนๅๆ้่ฎธๅฏใ
่ด่ฐข
- Meta ๆไพ Llama-3.1 ไธ็ๆๅทฅๅ ท้พ
- ๅผๆบ็คพๅบๅจ่ธ้ฆใSFTใ่ฏๆตใ้จ็ฝฒๆน้ข็่ดก็ฎ
- ่ฎญ็ปๆนๆณไธๅฎ่ทตๆฒฟ็จ่ช Llama-3.2-3B-Elite
ๅผ็จ
@misc{JackrongL31_8B_Elite,
title = {Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite},
author = {Jackrong},
year = {2025},
url = {https://huggingface.co/Jackrong/Llama-3.1-8B-Instruct-Elite}
}
็ๆฌ่ฎฐๅฝ
- v1.0๏ผ้ฆๆฌกๅๅธใๆฐๆฎ่งๆจก็บฆ 80k๏ผA100 ๅๅก่ฎญ็ป๏ผๆไพ GGUF Q4_K_M๏ผๅๅฐ่กจๆ ็ฌฆๅท๏ผๅผบๅๅฐๆ ้ขๅ ็ฒไธ่ฆ็นๅ่กจ๏ผ่ฎญ็ป้ ๆนไธ 3.2-3B-Elite ไธ่ดใ
- Downloads last month
- 2
4-bit
Model tree for Jackrong/Llama-3.1-8B-Instruct-Chinese-Elite
Base model
meta-llama/Llama-3.1-8B