Instructions to use masterhaniwa/CLIP_ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use masterhaniwa/CLIP_ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="masterhaniwa/CLIP_ft") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("masterhaniwa/CLIP_ft") model = AutoModelForZeroShotImageClassification.from_pretrained("masterhaniwa/CLIP_ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
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.225a016
-
Rename pytorch_model_batch8.bin to pytorch_model.bin
3b2029c -
Rename pytorch_model.bin to pytorch_model_old.bin
1a6e24c -
Rename pytorch_model_old.bin to pytorch_model.bin
1782c18 -
Rename pytorch_model.bin to pytorch_model_batch8.bin
7762263 -
Rename pytorch_model_batch8.bin to pytorch_model.bin
1fa56f5 -
Rename pytorch_model.bin to pytorch_model_batch10.bin
f044c8c -
Rename pytorch_model_batch10.bin to pytorch_model.bin
8937af5 -
Rename pytorch_model.bin to pytorch_model_old.bin
8177d34 -
Rename pytorch_model_old.bin to pytorch_model.bin
a194611 -
Rename pytorch_model.bin to pytorch_model_batch8.bin
3bca871
-
Rename pytorch_model_newtext2.bin to pytorch_model.bin
28e81aa -
Rename pytorch_model.bin to pytorch_model_batch10.bin
a9c2a94 -
Upload pytorch_model_newtext2.bin
e4f22ef
-
Rename pytorch_model_newtext.bin to pytorch_model.bin
24b14f4 -
Rename pytorch_model.bin to pytorch_model_old.bin
2258bac -
Upload pytorch_model_newtext.bin
7910468
-
Upload pytorch_model.bin
137baaf -
Rename pytorch_model.bin to pytorch_model_1213.bin
78bf00e
-
Upload 6 files
bc38e1a -
Delete config.json
cdb3aec -
Delete preprocessor_config.json
9335a8d -
Delete special_tokens_map.json
1bd83de -
Delete tokenizer.json
0e03e62 -
Delete tokenizer_config.json
e6ac756 -
Delete vocab.json
a26ab3c -
Upload pytorch_model.bin
f7568b9 -
Delete pytorch_model.bin
b3eed9f
-
Upload pytorch_model.bin
d6e1722 -
Delete pytorch_model.bin
b1e6b2e
-
Upload 4 files
6a14289 -
Upload preprocessor_config.json
2096d5b -
Upload pytorch_model.bin
e94e253 -
Upload config.json
ab44e50 -
Upload best_model_9.pt
8becdcd -
initial commit
ce8e0e0