Instructions to use Scarick2003buffalo/echogo_32b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Scarick2003buffalo/echogo_32b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Scarick2003buffalo/echogo_32b") 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_32b") model = AutoModelForCausalLM.from_pretrained("Scarick2003buffalo/echogo_32b", 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
- vLLM
How to use Scarick2003buffalo/echogo_32b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Scarick2003buffalo/echogo_32b" # 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_32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Scarick2003buffalo/echogo_32b
- SGLang
How to use Scarick2003buffalo/echogo_32b 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_32b" \ --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_32b", "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_32b" \ --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_32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Scarick2003buffalo/echogo_32b with Docker Model Runner:
docker model run hf.co/Scarick2003buffalo/echogo_32b
echogo_32b
中文围棋讲解老师模型。基于稠密 Qwen3-32B 进行监督微调,选用累计第 3 轮的 checkpoint-1188。这个版本也是 EchoGo 4B OPD 的老师。 输入为落子前棋盘、KataGo 分析提取的结构化事实及可用上下文,输出为带事实引用的中文讲解。仓库提供合并后的 BF16 Safetensors 权重与 tokenizer,可通过 Transformers 直接加载。
输入与推理
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-32B 的权重。上游模型采用 Apache License 2.0。详见仓库的 LICENSE 与上游模型。
- Downloads last month
- -
Model tree for Scarick2003buffalo/echogo_32b
Base model
Qwen/Qwen3-32B