Instructions to use Ostgot/blip-base-codenrock-solution with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ostgot/blip-base-codenrock-solution with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Ostgot/blip-base-codenrock-solution")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Ostgot/blip-base-codenrock-solution") model = AutoModelForMultimodalLM.from_pretrained("Ostgot/blip-base-codenrock-solution", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ostgot/blip-base-codenrock-solution with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ostgot/blip-base-codenrock-solution" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ostgot/blip-base-codenrock-solution", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ostgot/blip-base-codenrock-solution
- SGLang
How to use Ostgot/blip-base-codenrock-solution 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 "Ostgot/blip-base-codenrock-solution" \ --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": "Ostgot/blip-base-codenrock-solution", "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 "Ostgot/blip-base-codenrock-solution" \ --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": "Ostgot/blip-base-codenrock-solution", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ostgot/blip-base-codenrock-solution with Docker Model Runner:
docker model run hf.co/Ostgot/blip-base-codenrock-solution
Download pytorch_model.bin from Ostgot/blip-base-codenrock-solution: direct link, hf CLI and curl.
- Browser
- Download file 990 MB
-
https://huggingface.co/Ostgot/blip-base-codenrock-solution/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://Ostgot/blip-base-codenrock-solution@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Ostgot/blip-base-codenrock-solution/resolve/refs%2Fpr%2F1/pytorch_model.bin
990 MB
- Xet hash:
- 12712d802c35fc7a487a60efa15d08bc31346f7afe7417f897bf877bda014c4f
- Size of remote file:
- 990 MB
- SHA256:
- 4b6ab1d1a8d447df6f7a1e1402e09d9b73247093a195b03c5655384afbf250c6
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.