Instructions to use RISys-Lab/ReasonCLIP-B32-READ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RISys-Lab/ReasonCLIP-B32-READ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="RISys-Lab/ReasonCLIP-B32-READ") 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("RISys-Lab/ReasonCLIP-B32-READ") model = AutoModelForZeroShotImageClassification.from_pretrained("RISys-Lab/ReasonCLIP-B32-READ", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Copy weights from fesvhtr/clip-r-b32-s1-read
Browse files- config.json +25 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "fesvhtr/clip-r-b32-s1-run0109-853",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CLIPModel"
|
| 5 |
+
],
|
| 6 |
+
"dtype": "bfloat16",
|
| 7 |
+
"initializer_factor": 1.0,
|
| 8 |
+
"logit_scale_init_value": 2.6592,
|
| 9 |
+
"model_type": "clip",
|
| 10 |
+
"projection_dim": 512,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"bos_token_id": 0,
|
| 13 |
+
"dropout": 0.0,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 2,
|
| 16 |
+
"model_type": "clip_text_model"
|
| 17 |
+
},
|
| 18 |
+
"torch_dtype": "float32",
|
| 19 |
+
"transformers_version": "4.48.3",
|
| 20 |
+
"vision_config": {
|
| 21 |
+
"dropout": 0.0,
|
| 22 |
+
"dtype": "bfloat16",
|
| 23 |
+
"model_type": "clip_vision_model"
|
| 24 |
+
}
|
| 25 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f415717a2f1e3ac15b1374ff00456b4ad5a9424824476753bfb47514e5f43106
|
| 3 |
+
size 605156676
|