Instructions to use byh711/Florence-TableDetection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use byh711/Florence-TableDetection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="byh711/Florence-TableDetection", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("byh711/Florence-TableDetection", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("byh711/Florence-TableDetection", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use byh711/Florence-TableDetection with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "byh711/Florence-TableDetection" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "byh711/Florence-TableDetection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/byh711/Florence-TableDetection
- SGLang
How to use byh711/Florence-TableDetection 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 "byh711/Florence-TableDetection" \ --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": "byh711/Florence-TableDetection", "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 "byh711/Florence-TableDetection" \ --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": "byh711/Florence-TableDetection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use byh711/Florence-TableDetection with Docker Model Runner:
docker model run hf.co/byh711/Florence-TableDetection
Commit History
-
Update config.json
Verified signature8834434
-
Training in progress, epoch 19
Verified signature7b51df6 -
Training in progress, epoch 16
Verified signature8eb6271 -
Training in progress, epoch 13
Verified signature7deb37a -
Training in progress, epoch 10
Verified signature546ad11 -
Training in progress, epoch 7
Verified signature53f410b -
Training in progress, epoch 4
Verified signature6aadd67 -
Training in progress, epoch 1
Verified signature7f6d8d5
-
Model save
Verified signature4e43918 -
Training in progress, epoch 10
Verified signatureec531ac -
Training in progress, epoch 9
Verified signatureccfd220 -
Training in progress, epoch 8
Verified signature2717c83 -
Training in progress, epoch 7
Verified signature98ebbc7 -
Training in progress, epoch 6
Verified signature444810e -
Training in progress, epoch 5
Verified signaturee8ffb4a -
Training in progress, epoch 4
Verified signaturea534c96 -
Training in progress, epoch 3
Verified signatureb702101 -
Training in progress, epoch 2
Verified signature01933f9 -
Training in progress, epoch 1
Verified signature9b49acf -
initial commit
Verified signature10b444a