Instructions to use LLM-course/chess_endless with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/chess_endless with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/chess_endless")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/chess_endless", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/chess_endless with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/chess_endless" # 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_endless", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/chess_endless
- SGLang
How to use LLM-course/chess_endless 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_endless" \ --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_endless", "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_endless" \ --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_endless", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/chess_endless with Docker Model Runner:
docker model run hf.co/LLM-course/chess_endless
Chess Challenge submission by mohamedamine6
Browse files- README.md +2 -2
- config.json +1 -1
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -14,7 +14,7 @@ Chess model submitted to the LLM Course Chess Challenge.
|
|
| 14 |
## Submission Info
|
| 15 |
|
| 16 |
- **Submitted by**: [mohamedamine6](https://huggingface.co/mohamedamine6)
|
| 17 |
-
- **Parameters**:
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
|
@@ -22,5 +22,5 @@ Chess model submitted to the LLM Course Chess Challenge.
|
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
- **Vocab size**: 1682
|
| 24 |
- **Embedding dim**: 128
|
| 25 |
-
- **Layers**:
|
| 26 |
- **Heads**: 4
|
|
|
|
| 14 |
## Submission Info
|
| 15 |
|
| 16 |
- **Submitted by**: [mohamedamine6](https://huggingface.co/mohamedamine6)
|
| 17 |
+
- **Parameters**: 1,042,816
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
|
|
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
- **Vocab size**: 1682
|
| 24 |
- **Embedding dim**: 128
|
| 25 |
+
- **Layers**: 6
|
| 26 |
- **Heads**: 4
|
config.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"n_embd": 128,
|
| 14 |
"n_head": 4,
|
| 15 |
"n_inner": 384,
|
| 16 |
-
"n_layer":
|
| 17 |
"pad_token_id": 0,
|
| 18 |
"tie_weights": true,
|
| 19 |
"transformers_version": "4.57.5",
|
|
|
|
| 13 |
"n_embd": 128,
|
| 14 |
"n_head": 4,
|
| 15 |
"n_inner": 384,
|
| 16 |
+
"n_layer": 6,
|
| 17 |
"pad_token_id": 0,
|
| 18 |
"tie_weights": true,
|
| 19 |
"transformers_version": "4.57.5",
|
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:1bc9149f0aafb6cf602d2518347aee045f9a5b00a922d7ad79e34b3315bda2a2
|
| 3 |
+
size 4177696
|