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
End of training
Browse filesFiles changed (2)
- README.md+18-18
- pytorch_model.bin+1-1
16 unmodified lines171819202122232426 unmodified lines5152535455565758596061626364656667686970717216 unmodified linesThis model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.0157- Wer Score: 3.4082## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Wer Score ||:-------------:|:-----:|:----:|:---------------:|:---------:|| No log | 1.21 | 20 | 7.3815 | 194.2041 || No log | 2.42 | 40 | 5.4366 | 0.8878 || No log | 3.64 | 60 | 3.5512 | 0.7755 || No log | 4.85 | 80 | 1.8784 | 1.2551 || No log | 6.06 | 100 | 0.7146 | 21.0918 || No log | 7.27 | 120 | 0.2174 | 1.4184 || No log | 8.48 | 140 | 0.0743 | 12.8673 || No log | 9.7 | 160 | 0.0360 | 0.5510 || No log | 10.91 | 180 | 0.0265 | 0.4184 || No log | 12.12 | 200 | 0.0207 | 0.3878 || No log | 13.33 | 220 | 0.0185 | 0.5 || No log | 14.55 | 240 | 0.0174 | 4.3571 || No log | 15.76 | 260 | 0.0166 | 1.2653 || No log | 16.97 | 280 | 0.0158 | 4.0918 || No log | 18.18 | 300 | 0.0158 | 3.7959 || No log | 19.39 | 320 | 0.0157 | 3.4082 |### Framework versions16 unmodified lines171819202122232426 unmodified lines5152535455565758596061626364656667686970717216 unmodified linesThis model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.0078- Wer Score: 20.3## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Wer Score ||:-------------:|:-----:|:----:|:---------------:|:---------:|| No log | 1.21 | 20 | 7.3824 | 180.93 || No log | 2.42 | 40 | 5.4049 | 1.57 || No log | 3.64 | 60 | 3.4824 | 34.2 || No log | 4.85 | 80 | 1.7844 | 5.89 || No log | 6.06 | 100 | 0.6410 | 5.11 || No log | 7.27 | 120 | 0.1812 | 29.39 || No log | 8.48 | 140 | 0.0560 | 32.6 || No log | 9.7 | 160 | 0.0235 | 13.32 || No log | 10.91 | 180 | 0.0147 | 0.85 || No log | 12.12 | 200 | 0.0117 | 1.92 || No log | 13.33 | 220 | 0.0106 | 3.52 || No log | 14.55 | 240 | 0.0090 | 14.13 || No log | 15.76 | 260 | 0.0094 | 7.59 || No log | 16.97 | 280 | 0.0085 | 17.47 || No log | 18.18 | 300 | 0.0077 | 20.57 || No log | 19.39 | 320 | 0.0078 | 20.3 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:69b88fa9d9cdca04da54c197add49cc97c76cab0f94955ce80b79d7307dece81size 706584273123version https://git-lfs.github.com/spec/v1oid sha256:4f0e20bd92a1f430d53131da671c869d1154ee0bc6a5eaf78b0b4a6c6348554asize 706584273
README.md+18-18
pytorch_model.bin+1-1