Instructions to use pavelslab-nyu/ChessQwen3Base-6p5e19 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pavelslab-nyu/ChessQwen3Base-6p5e19 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pavelslab-nyu/ChessQwen3Base-6p5e19")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pavelslab-nyu/ChessQwen3Base-6p5e19", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pavelslab-nyu/ChessQwen3Base-6p5e19 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pavelslab-nyu/ChessQwen3Base-6p5e19" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pavelslab-nyu/ChessQwen3Base-6p5e19", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pavelslab-nyu/ChessQwen3Base-6p5e19
- SGLang
How to use pavelslab-nyu/ChessQwen3Base-6p5e19 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 "pavelslab-nyu/ChessQwen3Base-6p5e19" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pavelslab-nyu/ChessQwen3Base-6p5e19", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "pavelslab-nyu/ChessQwen3Base-6p5e19" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pavelslab-nyu/ChessQwen3Base-6p5e19", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pavelslab-nyu/ChessQwen3Base-6p5e19 with Docker Model Runner:
docker model run hf.co/pavelslab-nyu/ChessQwen3Base-6p5e19
ChessQwen3Base-6p5e19
Small Qwen3 base (pretrained) models for the chess compute-allocation study, all trained at a fixed total compute of C = 6.5e19 FLOPs.
The collection is a matrix of model size ร alpha (pretrain-compute fraction). To keep one tidy repo, the two axes are mapped onto Hub primitives:
- alpha โ git branch (
revision) โ e.g.alpha0.200 - size โ folder (
subfolder) โ e.g.20m
Loading
These models ship a custom tokenizer (tokenizer.py), so trust_remote_code=True
is required. Because the custom-code loader in transformers does not honor
subfolder=, snapshot the size folder locally first and load from that path:
from huggingface_hub import snapshot_download
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "pavelslab-nyu/ChessQwen3Base-6p5e19"
size = "20m" # 5m, 10m, 20m, 32m, 50m, 100m, 410m, 680m, 1000m, ...
alpha = "alpha0.200" # pick a branch from "Available branches" below
path = snapshot_download(repo, revision=alpha, allow_patterns=f"{size}/*") + f"/{size}"
model = AutoModelForCausalLM.from_pretrained(path, trust_remote_code=True)
tok = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
Do not pass
subfolder="20m"directly tofrom_pretrained. The model weights would load, butAutoTokenizerwould fail with... does not appear to have a file named tokenizer.pyโ the remote-code resolver looks fortokenizer.pyat the repo root and ignoressubfolder. Thesnapshot_downloadrecipe above sidesteps this.
Available branches (alphas)
Pick the branch from the repo's branch dropdown or pass it as revision.
Not every (size, alpha) pair exists; browse a branch to see which sizes it holds.