Instructions to use byh711/Florence2-Table-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use byh711/Florence2-Table-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="byh711/Florence2-Table-detection", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("byh711/Florence2-Table-detection", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("byh711/Florence2-Table-detection", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use byh711/Florence2-Table-detection with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "byh711/Florence2-Table-detection" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "byh711/Florence2-Table-detection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/byh711/Florence2-Table-detection
- SGLang
How to use byh711/Florence2-Table-detection 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/Florence2-Table-detection" \ --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/Florence2-Table-detection", "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/Florence2-Table-detection" \ --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/Florence2-Table-detection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use byh711/Florence2-Table-detection with Docker Model Runner:
docker model run hf.co/byh711/Florence2-Table-detection
Commit History
-
Update config.json
Verified signatureea0c799 -
Upload processor
Verified signatureab86675 -
Upload Florence2ForConditionalGeneration
Verified signature1090524
-
Update config.json
Verified signature8657562
-
Training in progress, epoch 10
Verified signature7f0bc05 -
Training in progress, epoch 9
Verified signature661908e -
Training in progress, epoch 8
Verified signatureea55cc4 -
Training in progress, epoch 7
Verified signature60eac41 -
Training in progress, epoch 6
Verified signature9b376bf -
Training in progress, epoch 5
Verified signaturee648e27 -
Training in progress, epoch 4
Verified signatureb1b3f3d -
Training in progress, epoch 3
Verified signature05a42a6 -
Training in progress, epoch 2
Verified signatureafd5210 -
Training in progress, epoch 1
Verified signature6f41391
-
Update config.json
Verified signature7da08ca
-
Model save
Verified signatureff8dd28 -
Training in progress, epoch 10
Verified signature800facd -
Training in progress, epoch 9
Verified signature49f23fe -
Training in progress, epoch 8
Verified signature35fe609 -
Training in progress, epoch 7
Verified signature2ac2fc9 -
Training in progress, epoch 6
Verified signature047c77a -
Training in progress, epoch 5
Verified signaturef40a040 -
Training in progress, epoch 2
Verified signatureb22e769 -
Training in progress, epoch 1
Verified signatureed67ebc
-
Upload Florence2ForConditionalGeneration
Verified signaturecb760e8 -
Upload processor
Verified signaturee71a1c3 -
Upload Florence2ForConditionalGeneration
Verified signature75b3ae8
-
fix 'divit is only supported for now'
Verified signaturec6ddb66
-
Upload Florence2ForConditionalGeneration
Verified signaturef188dec -
initial commit
Verified signaturee5f0a99