Image-Text-to-Text
Transformers
TensorBoard
Safetensors
florence2
Generated from Trainer
custom_code
Instructions to use ucsahin/Florence-2-large-TableDetection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ucsahin/Florence-2-large-TableDetection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ucsahin/Florence-2-large-TableDetection", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ucsahin/Florence-2-large-TableDetection", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("ucsahin/Florence-2-large-TableDetection", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ucsahin/Florence-2-large-TableDetection with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ucsahin/Florence-2-large-TableDetection" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ucsahin/Florence-2-large-TableDetection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ucsahin/Florence-2-large-TableDetection
- SGLang
How to use ucsahin/Florence-2-large-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 "ucsahin/Florence-2-large-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": "ucsahin/Florence-2-large-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 "ucsahin/Florence-2-large-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": "ucsahin/Florence-2-large-TableDetection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ucsahin/Florence-2-large-TableDetection with Docker Model Runner:
docker model run hf.co/ucsahin/Florence-2-large-TableDetection
Commit History
-
Update README.md
Verified signature81a3d24 -
Update README.md
Verified signature29a3893
-
Update README.md
Verified signaturebb54d4a -
Update README.md
Verified signaturea441d4c -
Update README.md
Verified signature5bce316 -
Upload 2 files
Verified signature93306a5 -
Upload config.json
Verified signaturee394b9c -
Upload 3 files
Verified signature82e8327 -
Upload 3 files
Verified signature05b2132 -
Update README.md
Verified signature0ed06e2 -
Update README.md
Verified signature48e5481 -
Update README.md
Verified signature479ca8b
-
Training complete
Verified signature4cc5389 -
Training in progress, epoch 10
Verified signature7f14bc2 -
Training in progress, epoch 9
Verified signaturedff220e -
Training in progress, epoch 8
Verified signature40c6e31 -
Training in progress, epoch 7
Verified signaturea67c6e7 -
Training in progress, epoch 6
Verified signature4b36ab5 -
Training in progress, epoch 5
Verified signature763bdd0 -
Training in progress, epoch 4
Verified signature0e80c9a -
Training in progress, epoch 3
Verified signature2f9aedb -
Training in progress, epoch 2
Verified signature87adbdc -
Training in progress, epoch 1
Verified signaturefe479f2 -
initial commit
Verified signature26db4f1