Commit ·
61e3c79
1
Parent(s): 89c876b
fix
Browse files- .gitignore +1 -0
- README.md +0 -15
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.DS_Store
|
README.md
CHANGED
|
@@ -91,21 +91,6 @@ swift run -c release gemma-cli <model-path> \
|
|
| 91 |
--prompt "Describe this image in detail." --max-tokens 200 --temperature 0.0
|
| 92 |
```
|
| 93 |
|
| 94 |
-
### Python (mlx_vlm)
|
| 95 |
-
|
| 96 |
-
```bash
|
| 97 |
-
pip install mlx-vlm
|
| 98 |
-
|
| 99 |
-
# Text generation
|
| 100 |
-
python3 -m mlx_vlm.generate --model <model-path> \
|
| 101 |
-
--prompt "Hello, how are you?" --max-tokens 100 --temperature 0.0
|
| 102 |
-
|
| 103 |
-
# Image understanding
|
| 104 |
-
python3 -m mlx_vlm.generate --model <model-path> \
|
| 105 |
-
--image photo.jpg \
|
| 106 |
-
--prompt "Describe this image in detail." --max-tokens 200
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
## Benchmarks (Apple Silicon)
|
| 110 |
|
| 111 |
| Metric | Original | This Model |
|
|
|
|
| 91 |
--prompt "Describe this image in detail." --max-tokens 200 --temperature 0.0
|
| 92 |
```
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
## Benchmarks (Apple Silicon)
|
| 95 |
|
| 96 |
| Metric | Original | This Model |
|