Instructions to use moxeeeem/pubmedclip-gpt2-captioner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moxeeeem/pubmedclip-gpt2-captioner 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="moxeeeem/pubmedclip-gpt2-captioner")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("moxeeeem/pubmedclip-gpt2-captioner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download final_captioner_gpt2-medium_TimmModel.pt from moxeeeem/pubmedclip-gpt2-captioner: direct link, hf CLI and curl.
- Browser
- Download file 1.69 GB
-
https://huggingface.co/moxeeeem/pubmedclip-gpt2-captioner/resolve/main/final_captioner_gpt2-medium_TimmModel.pt
- Command line
-
hf download hf://moxeeeem/pubmedclip-gpt2-captioner/final_captioner_gpt2-medium_TimmModel.pt
-
curl -L -o final_captioner_gpt2-medium_TimmModel.pt https://huggingface.co/moxeeeem/pubmedclip-gpt2-captioner/resolve/main/final_captioner_gpt2-medium_TimmModel.pt
1.69 GB
- Xet hash:
- 016a0430cf254f27255a40dd6df31dfdcbc50f7076f1c39726e7581d03110c9c
- Size of remote file:
- 1.69 GB
- SHA256:
- 2fbf3c44b3a2620f42ec2357721df197bda751cfed60dcd0225b196ee3610778
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.