merve HF staff commited on
Commit
de0f4cd
1 Parent(s): 77d6c57

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -3
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 [`openai/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
 
 
 
 
 
 
 
 
 
 
 
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