Instructions to use Leon-LLM/Leon-Chess-71k-20E with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Leon-LLM/Leon-Chess-71k-20E with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Leon-LLM/Leon-Chess-71k-20E")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Leon-LLM/Leon-Chess-71k-20E") model = AutoModelForCausalLM.from_pretrained("Leon-LLM/Leon-Chess-71k-20E") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Leon-LLM/Leon-Chess-71k-20E with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Leon-LLM/Leon-Chess-71k-20E" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Leon-LLM/Leon-Chess-71k-20E", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Leon-LLM/Leon-Chess-71k-20E
- SGLang
How to use Leon-LLM/Leon-Chess-71k-20E 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 "Leon-LLM/Leon-Chess-71k-20E" \ --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": "Leon-LLM/Leon-Chess-71k-20E", "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 "Leon-LLM/Leon-Chess-71k-20E" \ --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": "Leon-LLM/Leon-Chess-71k-20E", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Leon-LLM/Leon-Chess-71k-20E with Docker Model Runner:
docker model run hf.co/Leon-LLM/Leon-Chess-71k-20E
- Xet hash:
- 53bba873c442efde2270b0b3df85f3df856656f415b8a2a83a82e27416a95246
- Size of remote file:
- 342 MB
- SHA256:
- 8f6fa63ea7363efb6040c67ea892f6f7800af66a8f39a9374bd91f9d62edb924
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.