Text Generation
Transformers
Safetensors
chess_transformer
chess
llm-course
chess-challenge
custom_code
Instructions to use LLM-course/chess-normal-BPE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/chess-normal-BPE with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/chess-normal-BPE", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/chess-normal-BPE", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/chess-normal-BPE with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/chess-normal-BPE" # 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-normal-BPE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/chess-normal-BPE
- SGLang
How to use LLM-course/chess-normal-BPE 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-normal-BPE" \ --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-normal-BPE", "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-normal-BPE" \ --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-normal-BPE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/chess-normal-BPE with Docker Model Runner:
docker model run hf.co/LLM-course/chess-normal-BPE
Chess Challenge submission by Chiensaucisse67
Browse files- README.md +1 -1
- tokenizer_config.json +2 -3
- vocab.json +8 -1
README.md
CHANGED
|
@@ -20,7 +20,7 @@ Chess model submitted to the LLM Course Chess Challenge.
|
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
-
- **Vocab size**:
|
| 24 |
- **Embedding dim**: 128
|
| 25 |
- **Layers**: 4
|
| 26 |
- **Heads**: 4
|
|
|
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
- **Architecture**: Chess Transformer (GPT-style)
|
| 23 |
+
- **Vocab size**: 79
|
| 24 |
- **Embedding dim**: 128
|
| 25 |
- **Layers**: 4
|
| 26 |
- **Heads**: 4
|
tokenizer_config.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
| 35 |
},
|
| 36 |
"auto_map": {
|
| 37 |
"AutoTokenizer": [
|
| 38 |
-
"tokenizer_custom.
|
| 39 |
null
|
| 40 |
]
|
| 41 |
},
|
|
@@ -45,7 +45,6 @@
|
|
| 45 |
"extra_special_tokens": {},
|
| 46 |
"model_max_length": 1000000000000000019884624838656,
|
| 47 |
"pad_token": "[PAD]",
|
| 48 |
-
"tokenizer_class": "
|
| 49 |
-
"truncation_side": "left",
|
| 50 |
"unk_token": "[UNK]"
|
| 51 |
}
|
|
|
|
| 35 |
},
|
| 36 |
"auto_map": {
|
| 37 |
"AutoTokenizer": [
|
| 38 |
+
"tokenizer_custom.EnhancedCoordinateTokenizer",
|
| 39 |
null
|
| 40 |
]
|
| 41 |
},
|
|
|
|
| 45 |
"extra_special_tokens": {},
|
| 46 |
"model_max_length": 1000000000000000019884624838656,
|
| 47 |
"pad_token": "[PAD]",
|
| 48 |
+
"tokenizer_class": "EnhancedCoordinateTokenizer",
|
|
|
|
| 49 |
"unk_token": "[UNK]"
|
| 50 |
}
|
vocab.json
CHANGED
|
@@ -70,5 +70,12 @@
|
|
| 70 |
"q": 68,
|
| 71 |
"r": 69,
|
| 72 |
"b": 70,
|
| 73 |
-
"n": 71
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
|
|
|
| 70 |
"q": 68,
|
| 71 |
"r": 69,
|
| 72 |
"b": 70,
|
| 73 |
+
"n": 71,
|
| 74 |
+
"W": 72,
|
| 75 |
+
"B": 73,
|
| 76 |
+
"P": 74,
|
| 77 |
+
"N": 75,
|
| 78 |
+
"R": 76,
|
| 79 |
+
"Q": 77,
|
| 80 |
+
"K": 78
|
| 81 |
}
|