Text Generation
Transformers
Safetensors
chess_transformer
chess
llm-course
chess-challenge
custom_code
Instructions to use LLM-course/ChessDux with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/ChessDux with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/ChessDux", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/ChessDux", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/ChessDux with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/ChessDux" # 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/ChessDux", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/ChessDux
- SGLang
How to use LLM-course/ChessDux 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/ChessDux" \ --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/ChessDux", "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/ChessDux" \ --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/ChessDux", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/ChessDux with Docker Model Runner:
docker model run hf.co/LLM-course/ChessDux
Chess Challenge submission by julesdamidaux
Browse files- README.md +2 -2
- config.json +2 -2
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -14,13 +14,13 @@ Chess model submitted to the LLM Course Chess Challenge.
|
|
| 14 |
## Submission Info
|
| 15 |
|
| 16 |
- **Submitted by**: [julesdamidaux](https://huggingface.co/julesdamidaux)
|
| 17 |
-
- **Parameters**:
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
- **Vocab size**: 1682
|
| 24 |
-
- **Embedding dim**:
|
| 25 |
- **Layers**: 4
|
| 26 |
- **Heads**: 4
|
|
|
|
| 14 |
## Submission Info
|
| 15 |
|
| 16 |
- **Submitted by**: [julesdamidaux](https://huggingface.co/julesdamidaux)
|
| 17 |
+
- **Parameters**: 909,824
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
- **Vocab size**: 1682
|
| 24 |
+
- **Embedding dim**: 128
|
| 25 |
- **Layers**: 4
|
| 26 |
- **Heads**: 4
|
config.json
CHANGED
|
@@ -13,9 +13,9 @@
|
|
| 13 |
"layer_norm_epsilon": 1e-05,
|
| 14 |
"model_type": "chess_transformer",
|
| 15 |
"n_ctx": 256,
|
| 16 |
-
"n_embd":
|
| 17 |
"n_head": 4,
|
| 18 |
-
"n_inner":
|
| 19 |
"n_layer": 4,
|
| 20 |
"pad_token_id": 0,
|
| 21 |
"tie_weights": true,
|
|
|
|
| 13 |
"layer_norm_epsilon": 1e-05,
|
| 14 |
"model_type": "chess_transformer",
|
| 15 |
"n_ctx": 256,
|
| 16 |
+
"n_embd": 128,
|
| 17 |
"n_head": 4,
|
| 18 |
+
"n_inner": 384,
|
| 19 |
"n_layer": 4,
|
| 20 |
"pad_token_id": 0,
|
| 21 |
"tie_weights": true,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1ca8c5f2dc0f12113ccf254c1c414a39391dd4e00b5dfc049295105cf9fcdac
|
| 3 |
+
size 3643696
|