Instructions to use nvidia/gpt-oss-puzzle-88B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/gpt-oss-puzzle-88B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nvidia/gpt-oss-puzzle-88B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("nvidia/gpt-oss-puzzle-88B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nvidia/gpt-oss-puzzle-88B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/gpt-oss-puzzle-88B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/gpt-oss-puzzle-88B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/gpt-oss-puzzle-88B
- SGLang
How to use nvidia/gpt-oss-puzzle-88B 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 "nvidia/gpt-oss-puzzle-88B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/gpt-oss-puzzle-88B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "nvidia/gpt-oss-puzzle-88B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/gpt-oss-puzzle-88B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/gpt-oss-puzzle-88B with Docker Model Runner:
docker model run hf.co/nvidia/gpt-oss-puzzle-88B
torch 2.10.0 or torch 2.11.0?
Environment: 1x RTX PRO 6000 Blackwell S (96GB VRAM)
I first tried to install the PR's vLLM in torch==2.10.0+cu128, it gave me this error ImportError: /venv/main/lib/python3.12/site-packages/vllm/_C.abi3.so: undefined symbol: _ZN3c1013MessageLoggerC1ENS_14SourceLocationEib when importing vLLM
I looked at the torch source code and found it provided _ZN3c1013MessageLoggerC1EPKciib instead of _ZN3c1013MessageLoggerC1ENS_14SourceLocationEib
- Wheel needs:
c10::MessageLogger::MessageLogger(c10::SourceLocation, int, bool) - torch==2.10.0+cu128 provides:
c10::MessageLogger::MessageLogger(const char*, int, int, bool)
I upgraded torch to 2.11.0+cu130 and the symbol _ZN3c1013MessageLoggerC1ENS_14SourceLocationEib is now found and I can import vLLM and run the model.
This is contradictory to the PR's Requires-Dist stating torch==2.10.0
torch 2.10.0
The docker command in the README was updated two days ago to use VLLM_PRECOMPILED_WHEEL_LOCATION. It should the issues with the .so files.