Text Generation
Transformers
Safetensors
English
ppai
pacperlar
vision-language
image-captioning
small-language-model
custom_code
Instructions to use AdminHugging/PP-OSR-Hydrogen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdminHugging/PP-OSR-Hydrogen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdminHugging/PP-OSR-Hydrogen", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("AdminHugging/PP-OSR-Hydrogen", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdminHugging/PP-OSR-Hydrogen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdminHugging/PP-OSR-Hydrogen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdminHugging/PP-OSR-Hydrogen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdminHugging/PP-OSR-Hydrogen
- SGLang
How to use AdminHugging/PP-OSR-Hydrogen 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 "AdminHugging/PP-OSR-Hydrogen" \ --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": "AdminHugging/PP-OSR-Hydrogen", "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 "AdminHugging/PP-OSR-Hydrogen" \ --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": "AdminHugging/PP-OSR-Hydrogen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdminHugging/PP-OSR-Hydrogen with Docker Model Runner:
docker model run hf.co/AdminHugging/PP-OSR-Hydrogen
Commit History
2 days ago
-
Upload ckpt/last.pt with huggingface_hub
Verified signaturedae3043 -
Upload ckpt/last.pt with huggingface_hub
Verified signature826d576 -
Upload ckpt/last.pt with huggingface_hub
Verified signature030027f -
Upload ckpt/last.pt with huggingface_hub
Verified signaturefc1bf0e -
Upload ckpt/last.pt with huggingface_hub
Verified signatureb0bbe9e -
Upload ckpt/last.pt with huggingface_hub
Verified signature0e04124 -
Upload ckpt/last.pt with huggingface_hub
Verified signaturec077d89 -
Upload ckpt/last.pt with huggingface_hub
Verified signaturec15758c -
Upload ckpt/last.pt with huggingface_hub
Verified signature2fc8cf3 -
Upload ckpt/last.pt with huggingface_hub
Verified signature7000b94 -
Upload ckpt/last.pt with huggingface_hub
Verified signaturea150750 -
Upload ckpt/last.pt with huggingface_hub
Verified signature5be9718 -
Upload ckpt/last.pt with huggingface_hub
Verified signature1bdc99c -
Upload ckpt/last.pt with huggingface_hub
Verified signaturec887382 -
Upload ckpt/last.pt with huggingface_hub
Verified signature40d6357 -
Upload ckpt/last.pt with huggingface_hub
Verified signature52ed67b -
Upload ckpt/last.pt with huggingface_hub
Verified signaturefae021a -
Upload ckpt/last.pt with huggingface_hub
Verified signaturec9e965f -
Upload ckpt/last.pt with huggingface_hub
Verified signature6846685 -
Upload ckpt/last.pt with huggingface_hub
Verified signature5de944d -
Upload ckpt/last.pt with huggingface_hub
Verified signature9488d36 -
Upload ckpt/last.pt with huggingface_hub
Verified signature9b86af9 -
Upload ckpt/last.pt with huggingface_hub
Verified signature35db596 -
Upload ckpt/last.pt with huggingface_hub
Verified signaturee456f1f -
Upload ckpt/last.pt with huggingface_hub
Verified signature3ae7550 -
Upload ckpt/last.pt with huggingface_hub
Verified signature3665e76 -
Upload ckpt/last.pt with huggingface_hub
Verified signature2dac1ab -
Upload ckpt/last.pt with huggingface_hub
Verified signaturea12be5d -
Upload ckpt/last.pt with huggingface_hub
Verified signature68a9cbe -
Upload ckpt/last.pt with huggingface_hub
Verified signatured968d01 -
Upload ckpt/last.pt with huggingface_hub
Verified signature943ce3e -
Upload ckpt/last.pt with huggingface_hub
Verified signature65bb226 -
Upload ckpt/last.pt with huggingface_hub
Verified signature1baf061 -
Upload ckpt/last.pt with huggingface_hub
Verified signature20f6886 -
Upload ckpt/last.pt with huggingface_hub
Verified signature9ca3cfe -
Upload ckpt/last.pt with huggingface_hub
Verified signature464249a -
Upload ckpt/last.pt with huggingface_hub
Verified signatureb3a18ce -
Upload ckpt/last.pt with huggingface_hub
Verified signaturebdea69d -
Upload ckpt/last.pt with huggingface_hub
Verified signature91fdc75 -
Upload ckpt/last.pt with huggingface_hub
Verified signatureb062177 -
Upload ckpt/last.pt with huggingface_hub
Verified signature59850ea -
Upload ckpt/last.pt with huggingface_hub
Verified signatureb786f33 -
Upload ckpt/last.pt with huggingface_hub
Verified signature54ab075 -
Upload ckpt/last.pt with huggingface_hub
Verified signatureb72c09c -
Upload ckpt/last.pt with huggingface_hub
Verified signature86a43f5 -
Upload ckpt/last.pt with huggingface_hub
Verified signaturef8861fe -
Upload ckpt/last.pt with huggingface_hub
Verified signatureee0a114 -
Upload ckpt/last.pt with huggingface_hub
Verified signature302d2cf