Text Generation
Transformers
Safetensors
chess_transformer
chess
llm-course
chess-challenge
custom_code
Instructions to use LLM-course/chess-player-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/chess-player-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/chess-player-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/chess-player-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/chess-player-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/chess-player-v2" # 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-player-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/chess-player-v2
- SGLang
How to use LLM-course/chess-player-v2 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-player-v2" \ --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-player-v2", "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-player-v2" \ --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-player-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/chess-player-v2 with Docker Model Runner:
docker model run hf.co/LLM-course/chess-player-v2
Chess Challenge submission by iliasslasri
Browse files- README.md +1 -1
- config.json +3 -3
- 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**: [iliasslasri](https://huggingface.co/iliasslasri)
|
| 17 |
-
- **Parameters**:
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
|
|
|
| 14 |
## Submission Info
|
| 15 |
|
| 16 |
- **Submitted by**: [iliasslasri](https://huggingface.co/iliasslasri)
|
| 17 |
+
- **Parameters**: 997,136
|
| 18 |
- **Organization**: LLM-course
|
| 19 |
|
| 20 |
## Model Details
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "./
|
| 3 |
"architectures": [
|
| 4 |
"ChessForCausalLM"
|
| 5 |
],
|
|
@@ -16,11 +16,11 @@
|
|
| 16 |
"n_ctx": 256,
|
| 17 |
"n_embd": 96,
|
| 18 |
"n_head": 8,
|
| 19 |
-
"n_inner":
|
| 20 |
"n_layer": 11,
|
| 21 |
"num_groups": 4,
|
| 22 |
"pad_token_id": 0,
|
| 23 |
-
"rot_pos_emb":
|
| 24 |
"rotary_base": 10000,
|
| 25 |
"tie_weights": false,
|
| 26 |
"tie_word_embeddings": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "./gqa_1_ft/checkpoint-742200/",
|
| 3 |
"architectures": [
|
| 4 |
"ChessForCausalLM"
|
| 5 |
],
|
|
|
|
| 16 |
"n_ctx": 256,
|
| 17 |
"n_embd": 96,
|
| 18 |
"n_head": 8,
|
| 19 |
+
"n_inner": 304,
|
| 20 |
"n_layer": 11,
|
| 21 |
"num_groups": 4,
|
| 22 |
"pad_token_id": 0,
|
| 23 |
+
"rot_pos_emb": false,
|
| 24 |
"rotary_base": 10000,
|
| 25 |
"tie_weights": false,
|
| 26 |
"tie_word_embeddings": false,
|
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:4bf45d017d9b499bf4fd8977a0655bdbda2d3f29b2bf4beb6aa624059cb4e417
|
| 3 |
+
size 4003888
|