Instructions to use LLM-course/chess-ooooooooo-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/chess-ooooooooo-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/chess-ooooooooo-1")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/chess-ooooooooo-1", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/chess-ooooooooo-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/chess-ooooooooo-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM-course/chess-ooooooooo-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/chess-ooooooooo-1
- SGLang
How to use LLM-course/chess-ooooooooo-1 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 "LLM-course/chess-ooooooooo-1" \ --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": "LLM-course/chess-ooooooooo-1", "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 "LLM-course/chess-ooooooooo-1" \ --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": "LLM-course/chess-ooooooooo-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/chess-ooooooooo-1 with Docker Model Runner:
docker model run hf.co/LLM-course/chess-ooooooooo-1
chess-ooooooooo-1
A chess transformer model trained for the LLM Course Chess Challenge.
Model Architecture
This model uses a GPT-style transformer architecture optimized for chess move prediction:
- Parameters: 948,352 (0.95M)
- Vocabulary size: 85
- Embedding dimension: 128
- Number of layers: 6
- Attention heads: 4
- Feed-forward dimension: 320
- Context length: 256
- Dropout: 0.101
Training
The model was trained on a subset of the Lichess 2025 dataset, focusing on learning valid chess move sequences. The architecture was carefully tuned to stay within the 1M parameter constraint while maintaining reasonable performance.
Usage
from transformers import AutoModelForCausalLM
from src.tokenizer import ChessTokenizer
model = AutoModelForCausalLM.from_pretrained(
"LLM-course/chess-ooooooooo-1",
trust_remote_code=True
)
tokenizer = ChessTokenizer.from_pretrained(
"LLM-course/chess-ooooooooo-1",
trust_remote_code=True
)
# Generate moves
input_text = "[BOS] WPe2e4"
input_ids = tokenizer.encode(input_text)
outputs = model.generate(input_ids, max_length=50)
predicted_moves = tokenizer.decode(outputs[0])
Submission
Submitted by etienneLefranc for the LLM Course Chess Challenge. Version 1 of chess-ooooooooo.
- Downloads last month
- 2
docker model run hf.co/LLM-course/chess-ooooooooo-1