Instructions to use microsoft/git-base-textcaps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/git-base-textcaps with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="microsoft/git-base-textcaps")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("microsoft/git-base-textcaps") model = AutoModelForMultimodalLM.from_pretrained("microsoft/git-base-textcaps", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from microsoft/git-base-textcaps: direct link, hf CLI and curl.
- Browser
- Download file 707 MB
-
https://huggingface.co/microsoft/git-base-textcaps/resolve/3708bb659e51815348366a12d87840227cb5aaf4/pytorch_model.bin
- Command line
-
hf download hf://microsoft/git-base-textcaps@3708bb659e51815348366a12d87840227cb5aaf4/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/microsoft/git-base-textcaps/resolve/3708bb659e51815348366a12d87840227cb5aaf4/pytorch_model.bin
707 MB
- Xet hash:
- 1b03f9aa936d75a5b0fcc028e5736d2ab4110ffe04400fb05b9c6805a25bff57
- Size of remote file:
- 707 MB
- SHA256:
- cc7a0995b8b20b9a5759b91606ed33ad128ba6fdeede0dbc45e8adde0da7836b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.