Instructions to use mlx-community/clip-vit-base-patch32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/clip-vit-base-patch32 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir clip-vit-base-patch32 mlx-community/clip-vit-base-patch32
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,16 +3,29 @@ license: apache-2.0
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# mlx-community/clip-vit-base-patch32
|
| 6 |
-
This model was converted to MLX format from [`
|
| 7 |
Refer to the [original model card](https://huggingface.co/openai/clip-vit-base-patch32) for more details on the model.
|
| 8 |
-
## Use with mlx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
```bash
|
| 11 |
-
git clone
|
| 12 |
cd clip
|
| 13 |
pip install -r requirements.txt
|
| 14 |
```
|
| 15 |
|
|
|
|
|
|
|
| 16 |
```python
|
| 17 |
from PIL import Image
|
| 18 |
import clip
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# mlx-community/clip-vit-base-patch32
|
| 6 |
+
This model was converted to MLX format from [`clip-vit-base-patch32`](https://huggingface.co/openai/clip-vit-base-patch32).
|
| 7 |
Refer to the [original model card](https://huggingface.co/openai/clip-vit-base-patch32) for more details on the model.
|
| 8 |
+
## Use with mlx-examples
|
| 9 |
+
|
| 10 |
+
Download the repository 👇
|
| 11 |
+
|
| 12 |
+
```
|
| 13 |
+
pip install huggingface_hub hf_transfer
|
| 14 |
+
|
| 15 |
+
export HF_HUB_ENABLE_HF_TRANSFER=1
|
| 16 |
+
huggingface-cli download --local-dir <LOCAL FOLDER PATH> mlx-community/clip-vit-base-patch32
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
Install `mlx-examples`.
|
| 20 |
|
| 21 |
```bash
|
| 22 |
+
git clone git@github.com:ml-explore/mlx-examples.git
|
| 23 |
cd clip
|
| 24 |
pip install -r requirements.txt
|
| 25 |
```
|
| 26 |
|
| 27 |
+
Run the model.
|
| 28 |
+
|
| 29 |
```python
|
| 30 |
from PIL import Image
|
| 31 |
import clip
|