Instructions to use pavelslab-nyu/Chess-Pretrain-Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pavelslab-nyu/Chess-Pretrain-Models with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pavelslab-nyu/Chess-Pretrain-Models")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pavelslab-nyu/Chess-Pretrain-Models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pavelslab-nyu/Chess-Pretrain-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-Pretrain-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-Pretrain-Models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pavelslab-nyu/Chess-Pretrain-Models
- SGLang
How to use pavelslab-nyu/Chess-Pretrain-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-Pretrain-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-Pretrain-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-Pretrain-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-Pretrain-Models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pavelslab-nyu/Chess-Pretrain-Models with Docker Model Runner:
docker model run hf.co/pavelslab-nyu/Chess-Pretrain-Models
Ctrl+K
- model_1000m_0.21B
- model_1000m_0.42B
- model_1000m_0.78B
- model_1000m_1.0B
- model_1000m_11B
- model_1000m_2.1B
- model_1000m_4.2B
- model_1000m_7.9B
- model_100m_0.53B
- model_100m_1.1B
- model_100m_11B
- model_100m_15B
- model_100m_2.1B
- model_100m_20B
- model_100m_4.3B
- model_100m_40B
- model_100m_8.0B
- model_10m_0.92B
- model_10m_18B
- model_10m_2.7B
- model_10m_4.6B
- model_10m_9.2B
- model_200m_0.53B
- model_200m_11B
- model_200m_21B
- model_200m_40B
- model_200m_5.3B
- model_20m_0.53B
- model_20m_1.6B
- model_20m_11B
- model_20m_16B
- model_20m_2.6B
- model_20m_32B
- model_20m_5.3B
- model_20m_53B
- model_32m_0.34B
- model_32m_1.0B
- model_32m_1.7B
- model_32m_3.4B
- model_32m_6.9B
- model_410m_0.13B
- model_410m_0.26B
- model_410m_0.53B
- model_410m_1.1B
- model_410m_11B
- model_410m_2.0B
- model_410m_2.6B
- model_410m_20B
- model_410m_26B
- model_410m_5.3B