Instructions to use byh711/Florence2-Problem-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use byh711/Florence2-Problem-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="byh711/Florence2-Problem-detection", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("byh711/Florence2-Problem-detection", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("byh711/Florence2-Problem-detection", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use byh711/Florence2-Problem-detection with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "byh711/Florence2-Problem-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-Problem-detection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/byh711/Florence2-Problem-detection
- SGLang
How to use byh711/Florence2-Problem-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-Problem-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-Problem-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-Problem-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-Problem-detection", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use byh711/Florence2-Problem-detection with Docker Model Runner:
docker model run hf.co/byh711/Florence2-Problem-detection
Commit History
-
Training in progress, epoch 10
Verified signature8a49856 -
Training in progress, epoch 9
Verified signature042b1c1 -
Training in progress, epoch 8
Verified signature6a333c0 -
Training in progress, epoch 7
Verified signature73ef3e1 -
Training in progress, epoch 6
Verified signaturef048582 -
Training in progress, epoch 5
Verified signature59d7ad8 -
Training in progress, epoch 4
Verified signature6360b72 -
Training in progress, epoch 3
Verified signature0cd1a57 -
Training in progress, epoch 2
Verified signature3091464 -
Training in progress, epoch 1
Verified signature77d05fa
-
Model save
Verified signature0a538dd -
Training in progress, epoch 10
Verified signature7e73ced -
Training in progress, epoch 9
Verified signaturec538cb9 -
Training in progress, epoch 8
Verified signaturedadd36b -
Training in progress, epoch 7
Verified signature4af7277 -
Training in progress, epoch 6
Verified signature31c2b3f -
Training in progress, epoch 5
Verified signature0d2f402 -
Training in progress, epoch 4
Verified signature8be3d10 -
Training in progress, epoch 3
Verified signature3663f9c -
Training in progress, epoch 2
Verified signaturee4421eb -
Training in progress, epoch 1
Verified signature2e4a7fb -
Training in progress, epoch 1
Verified signatureddd222e -
initial commit
Verified signatureb6ef2bb