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)# 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
Training in progress, epoch 1
Browse files- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -161,7 +161,7 @@
|
|
| 161 |
"length_penalty": 1.0,
|
| 162 |
"max_length": 20,
|
| 163 |
"min_length": 0,
|
| 164 |
-
"model_type": "
|
| 165 |
"no_repeat_ngram_size": 0,
|
| 166 |
"num_beam_groups": 1,
|
| 167 |
"num_beams": 1,
|
|
|
|
| 161 |
"length_penalty": 1.0,
|
| 162 |
"max_length": 20,
|
| 163 |
"min_length": 0,
|
| 164 |
+
"model_type": "",
|
| 165 |
"no_repeat_ngram_size": 0,
|
| 166 |
"num_beam_groups": 1,
|
| 167 |
"num_beams": 1,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1083916964
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2898ff79bd1aad592cdd6a4d1992edf202ec290bffaa1b4ee521e0b8df25fbe8
|
| 3 |
size 1083916964
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:595f78372b995139cafd4f9717beaf97624743b9decfd2e9e2a9092c1bc5ab4b
|
| 3 |
size 5368
|