Instructions to use Scarick2003buffalo/echogo_4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Scarick2003buffalo/echogo_4b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Scarick2003buffalo/echogo_4b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Scarick2003buffalo/echogo_4b") model = AutoModelForCausalLM.from_pretrained("Scarick2003buffalo/echogo_4b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Scarick2003buffalo/echogo_4b 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 Scarick2003buffalo/echogo_4b:Q5_K_M # Run inference directly in the terminal: llama cli -hf Scarick2003buffalo/echogo_4b:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Scarick2003buffalo/echogo_4b:Q5_K_M # Run inference directly in the terminal: llama cli -hf Scarick2003buffalo/echogo_4b:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Scarick2003buffalo/echogo_4b:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Scarick2003buffalo/echogo_4b:Q5_K_M
Use Docker
docker model run hf.co/Scarick2003buffalo/echogo_4b:Q5_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Scarick2003buffalo/echogo_4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Scarick2003buffalo/echogo_4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Scarick2003buffalo/echogo_4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Scarick2003buffalo/echogo_4b:Q5_K_M
- SGLang
How to use Scarick2003buffalo/echogo_4b 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 "Scarick2003buffalo/echogo_4b" \ --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": "Scarick2003buffalo/echogo_4b", "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 "Scarick2003buffalo/echogo_4b" \ --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": "Scarick2003buffalo/echogo_4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Scarick2003buffalo/echogo_4b with Ollama:
ollama run hf.co/Scarick2003buffalo/echogo_4b:Q5_K_M
- Unsloth Desktop
- Pi
How to use Scarick2003buffalo/echogo_4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Scarick2003buffalo/echogo_4b:Q5_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Scarick2003buffalo/echogo_4b:Q5_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Scarick2003buffalo/echogo_4b with Docker Model Runner:
docker model run hf.co/Scarick2003buffalo/echogo_4b:Q5_K_M
- Lemonade
How to use Scarick2003buffalo/echogo_4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Scarick2003buffalo/echogo_4b:Q5_K_M
Run and chat with the model
lemonade run user.echogo_4b-Q5_K_M
List all available models
lemonade list
- Hermes Agent
How to use Scarick2003buffalo/echogo_4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Scarick2003buffalo/echogo_4b:Q5_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:9931/v1 hermes config set model.default Scarick2003buffalo/echogo_4b:Q5_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Scarick2003buffalo/echogo_4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Scarick2003buffalo/echogo_4b:Q5_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:9931/v1 \ --custom-model-id "Scarick2003buffalo/echogo_4b:Q5_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"
echogo_4b
ไธญๆๅดๆฃ่ฎฒ่งฃๅญฆ็ๆจกๅใๅบไบ Qwen3-4B ่ฟ่ก็็ฃๅพฎ่ฐ๏ผ้ๅ SFT ็ฌฌ 1425 ๆญฅ๏ผๅไปฅ EchoGo 32B ไธบ่ๅธๅ 192 ๆญฅ on-policy distillation๏ผOPD๏ผใ ่พๅ ฅไธบ่ฝๅญๅๆฃ็ใKataGo ๅๆๆๅ็็ปๆๅไบๅฎๅๅฏ็จไธไธๆ๏ผ่พๅบไธบๅธฆไบๅฎๅผ็จ็ไธญๆ่ฎฒ่งฃใไปๅบๆไพๅๅนถๅ็ BF16 Safetensors ๆ้ไธ tokenizer๏ผๅฏ้่ฟ Transformers ็ดๆฅๅ ่ฝฝใ
ๅจ Apple M4 ไธ่ฟ่กๆฌๅฐ็
ๆฌๅฐ็ไฝฟ็จ echogo_4b-Q5_K_M.gguf๏ผ2.89 GB๏ผใ่ฟไธชๆไปถๅ
ๅซๆจกๅๆ้ใๅ่ฏๅจๅๅฏน่ฏๆจกๆฟใไธ้ข็จ llama.cpp ็ Metal ๅ็ซฏ่ฟ่ก๏ผไธ่ฝฝไธๆฌกๅๅณๅฏ็ฆป็บฟ็ๆ่ฎฒ่งฃใๅบ็จ้่ฆๆๆฃ็ๅ KataGo ไบๅฎไธ่ตทไผ ็ปๆจกๅ๏ผexample_messages.json ๆไพไบไธๆกๅฎๆด็่พๅ
ฅ็คบไพใ
ๅจๅทฒๅฎ่ฃ
Homebrew ็ Mac ไธๆๅผ็ป็ซฏ๏ผไธ่ฝฝ GGUF ๅ็คบไพๆฃๅฑ๏ผ็ถๅๅฏๅจๆฌๅฐๆๅกใcurl -C - ๆฏๆๆญ็น็ปญไผ ใ
brew install llama.cpp jq
mkdir -p ~/echogo && cd ~/echogo
curl -fL --retry 3 -C - -o echogo_4b-Q5_K_M.gguf \
https://huggingface.co/Scarick2003buffalo/echogo_4b/resolve/main/echogo_4b-Q5_K_M.gguf
curl -fL -o example_messages.json \
https://huggingface.co/Scarick2003buffalo/echogo_4b/resolve/main/example_messages.json
llama-server -m echogo_4b-Q5_K_M.gguf --alias echogo_4b \
--host 127.0.0.1 --port 18084 -ngl 99 -c 4096 -np 1 \
--jinja --chat-template-kwargs '{"enable_thinking":false}'
ไฟๆๆๅก่ฟ่ก๏ผๅจ็ฌฌไบไธช็ป็ซฏๆง่กไธ้ข็ๅฝไปค๏ผๅณๅฏ็ๅฐ่ฟไธๆญฅๆฃ็ไธญๆ่ฎฒ่งฃใๆ Ctrl+C ๅฏๅจ็ฌฌไธไธช็ป็ซฏๅๆญขๆๅกใ
cd ~/echogo
jq '{model:"echogo_4b", messages:., temperature:0, max_tokens:400}' example_messages.json |
curl -fsS http://127.0.0.1:18084/v1/chat/completions \
-H 'Content-Type: application/json' --data-binary @- |
jq -r '.choices[0].message.content'
M4 ๅฎๆตใ Apple M4ใ16 GiB ็ปไธๅ ๅญใllama.cpp b7370๏ผ้ไธช่ฏทๆฑ 12 ็ๆฃ็ 12 ไธชๅฑ้ขใ่พๅ ฅไธญไฝๆฐ็บฆ 1,003 tokens๏ผๆจกๅๅ ่ฝฝๅ้ฆๆฎตๆๅญไธญไฝ็ญๅพ 9.6 ็ง๏ผๆด็ฏ่ฎฒ่งฃ 18.5 ็ง๏ผ่งฃ็ 6.7 tokens/sใ่ฟ็จๅณฐๅผๅธธ้ฉปๅ ๅญ๏ผRSS๏ผ4.33 GiBใๆต่ฏๆถๆบๅจๆๅๅฐไผ ่พๅๅ ๅญไบคๆข๏ผๅฎ้ ้ๅบฆ้่ด่ฝฝๅ่พๅ ฅ้ฟๅบฆๅๅใ
ไธบไปไน้ Q5_K_Mใ Q5_K_M ๅ Q4_K_M ้ฝ็ฑๅไธไปฝ 4B BF16 ๆ้้ๅ่ๆฅใQ5 ไธบๅคง้จๅๆ้ไฟ็ๆดๅคไฝ๏ผๆฏ็ปๅฏ่กจ็คบ็ๆฐๅผๆด็ปใ55 ็็ๅบๆฃๅฑ็ 503 ไธชๅฑ้ข้๏ผๆ 133 ้ขๅฏไปฅๆฏ่พไธคๅคๅบๅๅพๅคฑ็็ปๅฏน็ฎๆฐใๆๆ ๆ้้กน่ฎก้๏ผQ5 ็ญๅฏน 112 ้ข๏ผQ4 ็ญๅฏน 79 ้ข๏ผBF16 ็ญๅฏน 103 ้ขใQ5 ไธ BF16 ้ฝ็ปๅบๆๆ้้กน็ 116 ้ขไธญ๏ผไธค่ ๅๅซ็ญๅฏน 103 ๅ 102 ้ขใ่ฟ้กนๆต่ฏ่กก้ๆๅฎๅบๅ็ๅคงๅฐๅคๆญ๏ผๆด็ฏ่ช็ฑ่ฎฒ่งฃ็ๅ็กฎๆง้่ฆๅ็ฌ่ฏไผฐใ
่พๅ ฅไธๆจ็
example_messages.json ๆฏไธบๆผ็คบๆฅๅฃ่ๆ้ ็ๅฑ้ขไธๆฐๅผใๆฅๅฐ APP ๆถ๏ผ็จๅฎ้
ๆฃ็ไธๅๆ็ปๆๆฟๆขๅฎใ็้ข็จ X/O ่กจ็คบ้ป็ฝ๏ผ@ ๆ ๆณจๅฎๆ่ฝ็น๏ผAใB ๆ ๆณจๅ่็นใไบๅฎๅฏไปฅๅ
ๅซ็ฎๅทฎใๆจ่ๅๅใๅฏนๆนๅบๅฏนใๆฃๅๅๅบๅๅพๅคฑใๅ่ๅๅไป
ไพ่งฃ่ฏด๏ผๅฎๆไธไธๆๅจๅฎๆถ่พๅ
ฅไธญ้่ใ่ฏๆตๆถๅ
ณ้ญ thinking๏ผไฝฟ็จ greedy ่งฃ็ ใ
import json
import os
import torch
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM, AutoTokenizer
# ๅฐ MODEL_ID ่ฎพไธบ่ฟไธชไปๅบ็ๅฎๆด Hugging Face ID
repo = os.environ["MODEL_ID"]
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto").eval()
with open(hf_hub_download(repo, "example_messages.json"), encoding="utf-8") as f:
messages = json.load(f)
inputs = tokenizer.apply_chat_template(
messages, tokenize=True, return_dict=True, return_tensors="pt",
add_generation_prompt=True, enable_thinking=False,
).to(model.device)
with torch.inference_mode():
ids = model.generate(**inputs, do_sample=False, max_new_tokens=400, pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(ids[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
่ฏๆต
55 ็็ๅบๆฃๅฑใ503 ไธชๅฑ้ข๏ผไฝฟ็จ็ธๅ็้ขไธไบๅฎใไธ่กจ่ฎฐๅฝๅฏนๅบ checkpoint ๅจๆๅ ๅ็ๆ็่ฎฒ่งฃ๏ผ็ฑ GPT ๅฟๅ้้ขๆ ธๆฅใ้่ฏฏ็ๆ่ฎฒ่งฃไธญ่ณๅฐๆไธๅคๆ็กฎไบๅฎ็็พ็ๅฑ้ขๆฏไพใๆ็จๆงไธบ GPT ๅฏนๆฃๆไฝฟ็จไปทๅผ็ไปฃ็่ฏๅ๏ผ่ๅด 0โ2 ๅใ
| ๆจกๅ | ๆ็กฎ้่ฏฏๅฑ้ข | ๆ็จๆงๅๅ |
|---|---|---|
| EchoGo 4B ยท OPD 192 | 31/503๏ผ6.16%๏ผ | 1.873 |
| EchoGo 32B ยท 1188 | 36/503๏ผ7.16%๏ผ | 1.885 |
ๅผ็จๆ ่ฎฐ็จไบๅฏน็ ง่พๅ ฅใๆจกๅๆๆถไผๅผ้ๆฃ่ฒใ่ฝๅญๆฌกๅบใๆๆณๆๅบๅๅพๅคฑใ้จ็ฝฒๅบไธบๆจกๅๆไพๅฏไฟก็ๆฃๅฑๅๆใ
ๆฌๅๅธไฟฎๆนไบ Qwen3-4B ็ๆ้ใไธๆธธๆจกๅ้็จ Apache License 2.0ใ่ฏฆ่งไปๅบ็ LICENSE ไธไธๆธธๆจกๅใ
- Downloads last month
- -
docker model run hf.co/Scarick2003buffalo/echogo_4b:Q5_K_M