Instructions to use HuggingFaceM4/VLM_WebSight_finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceM4/VLM_WebSight_finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceM4/VLM_WebSight_finetuned", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("HuggingFaceM4/VLM_WebSight_finetuned", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuggingFaceM4/VLM_WebSight_finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceM4/VLM_WebSight_finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceM4/VLM_WebSight_finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuggingFaceM4/VLM_WebSight_finetuned
- SGLang
How to use HuggingFaceM4/VLM_WebSight_finetuned 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 "HuggingFaceM4/VLM_WebSight_finetuned" \ --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": "HuggingFaceM4/VLM_WebSight_finetuned", "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 "HuggingFaceM4/VLM_WebSight_finetuned" \ --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": "HuggingFaceM4/VLM_WebSight_finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuggingFaceM4/VLM_WebSight_finetuned with Docker Model Runner:
docker model run hf.co/HuggingFaceM4/VLM_WebSight_finetuned
Commit History
-
Adapt inputs_merger() Function for Scenarios Without Image Input
Verified signatureAn if clause has been added to ensure that the merging process only occurs if image_hidden_state is not None.48b854b
-
remove the dummy test
ceb7de1 -
dummy test
c506c42 -
Update README.md
Verified signature8e1346e -
Update README.md
Verified signature20f670a -
Update README.md
Verified signature2f09a11 -
fixes
4746d53 -
fixes
c816c5b -
Delete unecessary files
01aa456 -
big renaming
b1b2476 -
big update
7515eca
-
clean vision
c8028be -
update preprocessor config
3d51561 -
update model weights
6fb4970 -
Merge branch 'main' of https://huggingface.co/HuggingFaceM4/img2html into main
0b268ff -
bunch of updates
5ea341f -
Update README.md
Verified signatured1541af
-
ditch some unecessary parts ?
f653a92
-
remove unnessary padding images
b240ec1 -
some cleaning
cbd1c78 -
Update README.md
6be5682 -
Update README.md
a763dfc -
trying that?
6127305 -
nope it wasnt' that
9e8bf08 -
try that
4f26c98 -
fix typo
2dfdfed -
lets try throught he config
1b2ecd5 -
let it figure out automatically
9baf545 -
perhaps with this syntax
a263d03 -
trying that
0e28336 -
perhaps it's the model type
b7b417b -
fix
0bfa212 -
fix
719f253 -
typo
7aa0923 -
trying the autoconfig
1f31f46 -
nope, wasn't that
8d33f67 -
not sure what that syntax is
d8ae54e -
autoimageprocesor
c8747a5 -
auto map to preprocessor_config.json
a8fbbf3 -
add auto_map
b0eec2b
-
cleaning
b2fcf7c -
try the remote
f91fa43 -
autoprocessor class
db0b5ed -
git add image processing
9da4b20 -
change type
8e32f98 -
model weights
3f133cb -
configs
a9211f5 -
modeling
9505bbc -
initial commit
Victor Sanha1abacc