Instructions to use pavelslab-nyu/Chess-SFT-Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pavelslab-nyu/Chess-SFT-Models with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pavelslab-nyu/Chess-SFT-Models")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pavelslab-nyu/Chess-SFT-Models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pavelslab-nyu/Chess-SFT-Models with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pavelslab-nyu/Chess-SFT-Models" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pavelslab-nyu/Chess-SFT-Models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pavelslab-nyu/Chess-SFT-Models
- SGLang
How to use pavelslab-nyu/Chess-SFT-Models 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 "pavelslab-nyu/Chess-SFT-Models" \ --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": "pavelslab-nyu/Chess-SFT-Models", "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 "pavelslab-nyu/Chess-SFT-Models" \ --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": "pavelslab-nyu/Chess-SFT-Models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pavelslab-nyu/Chess-SFT-Models with Docker Model Runner:
docker model run hf.co/pavelslab-nyu/Chess-SFT-Models
Ctrl+K
- model_100m_0.53B
- model_100m_2.1B
- model_100m_4.3B
- model_100m_8.0B
- model_200m_0.27B
- model_200m_0.53B
- model_200m_1.1B
- model_200m_11B
- model_200m_2.1B
- model_200m_21B
- model_200m_4.0B
- model_200m_40B
- model_200m_5.3B
- model_200m_53B
- model_20m_0.53B
- model_20m_1.6B
- model_20m_11B
- model_20m_16B
- model_20m_2.6B
- model_20m_21B
- model_20m_32B
- model_20m_40B
- model_20m_5.3B
- model_20m_53B
- model_50m_0.23B
- model_50m_0.69B
- model_50m_1.1B
- model_50m_17B
- model_50m_2.3B
- model_50m_23B
- model_50m_4.6B
- model_50m_41B
- model_50m_9.2B
- model_680m_0.080B
- model_680m_0.32B
- model_680m_0.64B
- model_680m_1.2B
- model_680m_1.6B
- model_680m_12B
- model_680m_16B
- model_680m_24B
- model_680m_3.2B
- model_680m_32B
- model_680m_48B
- model_680m_6.4B
- 1.52 kB
- 5.32 kB
- 2.46 kB