Instructions to use pdsdpo/SynthAlign-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pdsdpo/SynthAlign-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="pdsdpo/SynthAlign-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("pdsdpo/SynthAlign-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pdsdpo/SynthAlign-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pdsdpo/SynthAlign-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pdsdpo/SynthAlign-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pdsdpo/SynthAlign-7B
- SGLang
How to use pdsdpo/SynthAlign-7B 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 "pdsdpo/SynthAlign-7B" \ --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": "pdsdpo/SynthAlign-7B", "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 "pdsdpo/SynthAlign-7B" \ --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": "pdsdpo/SynthAlign-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pdsdpo/SynthAlign-7B with Docker Model Runner:
docker model run hf.co/pdsdpo/SynthAlign-7B
Commit History
-
Update README.md
Verified signature8c4e4b6
-
Update README.md
Verified signature87c64e8 -
Update README.md
Verified signaturebe03089
-
Update README.md
Verified signature4328802 -
Update README.md
Verified signature4d690b0 -
Update README.md
Verified signature91151a8 -
Update README.md
Verified signature65b7b3e -
Update README.md
Verified signature56ec791 -
Update README.md
Verified signature411606f -
Update README.md
Verified signature487e982 -
Update README.md
Verified signature05c0392 -
Upload 2 files
Verified signature7ff1e5c -
Update README.md
Verified signatureea69340
-
Update README.md
Verified signatureeb4e5ae -
Update README.md
Verified signature7baa8fe -
Update README.md
Verified signaturea7c40c0 -
Update README.md
Verified signature05b0d3d -
Update README.md
Verified signatureb37142b -
Create README.md
Verified signatured9250a5
-
Upload folder using huggingface_hub
Verified signatureec9ac9e -
initial commit
Verified signature8ed5814