Instructions to use LLM-course/chess-model2-giu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-course/chess-model2-giu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-course/chess-model2-giu")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LLM-course/chess-model2-giu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-course/chess-model2-giu with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-course/chess-model2-giu" # 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-model2-giu", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-course/chess-model2-giu
- SGLang
How to use LLM-course/chess-model2-giu 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-model2-giu" \ --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-model2-giu", "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-model2-giu" \ --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-model2-giu", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-course/chess-model2-giu with Docker Model Runner:
docker model run hf.co/LLM-course/chess-model2-giu
Download vocab.json from LLM-course/chess-model2-giu: direct link, hf CLI and curl.
- Browser
- Download file 864 Bytes
-
https://huggingface.co/LLM-course/chess-model2-giu/resolve/main/vocab.json
- Command line
-
hf download hf://LLM-course/chess-model2-giu/vocab.json
-
curl -L -o vocab.json https://huggingface.co/LLM-course/chess-model2-giu/resolve/main/vocab.json
864 Bytes
| { | |
| "[PAD]": 0, | |
| "[BOS]": 1, | |
| "[EOS]": 2, | |
| "[UNK]": 3, | |
| "q": 4, | |
| "r": 5, | |
| "b": 6, | |
| "n": 7, | |
| "a1": 8, | |
| "b1": 9, | |
| "c1": 10, | |
| "d1": 11, | |
| "e1": 12, | |
| "f1": 13, | |
| "g1": 14, | |
| "h1": 15, | |
| "a2": 16, | |
| "b2": 17, | |
| "c2": 18, | |
| "d2": 19, | |
| "e2": 20, | |
| "f2": 21, | |
| "g2": 22, | |
| "h2": 23, | |
| "a3": 24, | |
| "b3": 25, | |
| "c3": 26, | |
| "d3": 27, | |
| "e3": 28, | |
| "f3": 29, | |
| "g3": 30, | |
| "h3": 31, | |
| "a4": 32, | |
| "b4": 33, | |
| "c4": 34, | |
| "d4": 35, | |
| "e4": 36, | |
| "f4": 37, | |
| "g4": 38, | |
| "h4": 39, | |
| "a5": 40, | |
| "b5": 41, | |
| "c5": 42, | |
| "d5": 43, | |
| "e5": 44, | |
| "f5": 45, | |
| "g5": 46, | |
| "h5": 47, | |
| "a6": 48, | |
| "b6": 49, | |
| "c6": 50, | |
| "d6": 51, | |
| "e6": 52, | |
| "f6": 53, | |
| "g6": 54, | |
| "h6": 55, | |
| "a7": 56, | |
| "b7": 57, | |
| "c7": 58, | |
| "d7": 59, | |
| "e7": 60, | |
| "f7": 61, | |
| "g7": 62, | |
| "h7": 63, | |
| "a8": 64, | |
| "b8": 65, | |
| "c8": 66, | |
| "d8": 67, | |
| "e8": 68, | |
| "f8": 69, | |
| "g8": 70, | |
| "h8": 71 | |
| } |