Instructions to use Pythagoras-LM/Pythagoras-Prover-Diffusion-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pythagoras-LM/Pythagoras-Prover-Diffusion-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Pythagoras-LM/Pythagoras-Prover-Diffusion-4B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelWithLMHead model = AutoModelWithLMHead.from_pretrained("Pythagoras-LM/Pythagoras-Prover-Diffusion-4B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Pythagoras-LM/Pythagoras-Prover-Diffusion-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Pythagoras-LM/Pythagoras-Prover-Diffusion-4B
- SGLang
How to use Pythagoras-LM/Pythagoras-Prover-Diffusion-4B 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 "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B" \ --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": "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B", "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 "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B" \ --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": "Pythagoras-LM/Pythagoras-Prover-Diffusion-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Pythagoras-LM/Pythagoras-Prover-Diffusion-4B with Docker Model Runner:
docker model run hf.co/Pythagoras-LM/Pythagoras-Prover-Diffusion-4B
Commit History
-
Update README.md
Verified signature8cf65f0
-
Upload vocab.json
Verified signatured6e8d8e -
Upload tokenizer_config.json
Verified signaturebdde851 -
Upload tokenizer.json
Verified signature819e865 -
Upload special_tokens_map.json
Verified signaturee51a60f -
Upload merges.txt
Verified signaturef7d46f7 -
Upload chat_template.jinja
Verified signature9273c18 -
Upload added_tokens.json
Verified signatured8518ef -
Upload model.safetensors.index.json
Verified signature5f9262f -
Upload model-00002-of-00002.safetensors
Verified signature16207a3 -
Upload model-00001-of-00002.safetensors
Verified signature1c6fa24 -
Upload generation_config.json
Verified signature15a7519 -
Upload config.json
Verified signature5d48dae -
Upload README.md
Verified signature24f03ad -
initial commit
Verified signature8294a63