Instructions to use kariver/git-base-food with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kariver/git-base-food with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kariver/git-base-food")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("kariver/git-base-food") model = AutoModelForMultimodalLM.from_pretrained("kariver/git-base-food", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kariver/git-base-food with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kariver/git-base-food" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kariver/git-base-food", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kariver/git-base-food
- SGLang
How to use kariver/git-base-food 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 "kariver/git-base-food" \ --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": "kariver/git-base-food", "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 "kariver/git-base-food" \ --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": "kariver/git-base-food", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kariver/git-base-food with Docker Model Runner:
docker model run hf.co/kariver/git-base-food
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.a56a4d1
-
End of training
c758cc3 -
Training in progress, step 340
a8a3524 -
Training in progress, step 300
0fb9b94 -
Training in progress, step 280
4192cf4 -
Training in progress, step 240
7059d8b -
Training in progress, step 200
830999b -
Training in progress, step 160
6978f13 -
Training in progress, step 120
fd9c6b3 -
Training in progress, step 80
d0256f9 -
Training in progress, step 60
bf05c61 -
Training in progress, step 20
1df2d23
-
End of training
f501cca -
Training in progress, step 260
e8109c7 -
Training in progress, step 240
23d3bb3 -
Training in progress, step 220
b1b6e0b -
Training in progress, step 200
492ab54 -
Training in progress, step 180
cf88f43 -
Training in progress, step 160
9d5bfce -
Training in progress, step 140
7983f84 -
Training in progress, step 120
85f9fc9 -
Training in progress, step 100
8e82624 -
Training in progress, step 80
acbbb7e -
Training in progress, step 60
ccb752f -
Training in progress, step 40
ae31ff3 -
Training in progress, step 20
fdd1f1e -
Training in progress, step 260
ed31f33 -
Training in progress, step 240
c8fd662 -
Training in progress, step 220
a6a29b3 -
Training in progress, step 200
f6bf8d4 -
Training in progress, step 180
69ae731 -
Training in progress, step 160
393802b -
Training in progress, step 140
2febbcb -
Training in progress, step 120
6df2b4c -
Training in progress, step 100
574cde9 -
Training in progress, step 80
6d791e7 -
Training in progress, step 60
90a07ff -
Training in progress, step 40
b9f8b68 -
Training in progress, step 20
0d058ec -
End of training
4392bac -
Training in progress, step 320
20a5870 -
Training in progress, step 300
3d7b3f9 -
Training in progress, step 280
05fe1b2 -
Training in progress, step 260
d6a1d8e -
Training in progress, step 240
ec141b0 -
Training in progress, step 220
b0bb30a -
Training in progress, step 200
3829572 -
Training in progress, step 180
b565ec3 -
Training in progress, step 160
63131e4 -
Training in progress, step 140
d9c940f