Text Generation
Transformers
Safetensors
English
gemma
standalone
merged-weights
pdf-optimized
vision-guided-training
text-generation-inference
Instructions to use singtan/solvrays-finetuned-pdf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use singtan/solvrays-finetuned-pdf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="singtan/solvrays-finetuned-pdf")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("singtan/solvrays-finetuned-pdf") model = AutoModelForCausalLM.from_pretrained("singtan/solvrays-finetuned-pdf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use singtan/solvrays-finetuned-pdf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "singtan/solvrays-finetuned-pdf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singtan/solvrays-finetuned-pdf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/singtan/solvrays-finetuned-pdf
- SGLang
How to use singtan/solvrays-finetuned-pdf 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 "singtan/solvrays-finetuned-pdf" \ --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": "singtan/solvrays-finetuned-pdf", "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 "singtan/solvrays-finetuned-pdf" \ --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": "singtan/solvrays-finetuned-pdf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use singtan/solvrays-finetuned-pdf with Docker Model Runner:
docker model run hf.co/singtan/solvrays-finetuned-pdf
Commit History
-
Upload README.md with huggingface_hub
Verified signature4b4d83c -
Upload GemmaForCausalLM
Verified signatured339981 -
Upload README.md with huggingface_hub
Verified signatured678c81 -
Upload GemmaForCausalLM
Verified signature5dadc86 -
Upload README.md with huggingface_hub
Verified signature1c40739 -
Upload GemmaForCausalLM
Verified signature7ac9676 -
Upload README.md with huggingface_hub
Verified signatured95e66f -
Upload GemmaForCausalLM
Verified signaturec7ac6bf -
Upload README.md with huggingface_hub
Verified signaturef1b6942 -
Upload tokenizer
Verified signaturef7d01d0 -
Upload GemmaForCausalLM
Verified signature29edbe9 -
Upload README.md with huggingface_hub
Verified signaturee856904 -
Upload tokenizer
Verified signature8155da9 -
Upload GemmaForCausalLM
Verified signature122b11c -
initial commit
Verified signatureb48dae0