Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjking authored May 4, 2024
1 parent 29db003 commit cd4198b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,19 @@ pip install mlx-vlm

```sh
python -m mlx_vlm.generate --model qnguyen3/nanoLLaVA --max-tokens 100 --temp 0.0
```
```

### Example Calls

* Idefics 2 w/ Local Path

```sh
python -m mlx_vlm.generate --model mlx-community/idefics2-8b-4bit --max-tokens 1000 --temp 0.0 --prompt "Describe this image" --image /path/to/file.png
```

* Idefics 2 w/ Local Path

```sh
python -m mlx_vlm.generate --model mlx-community/idefics2-8b-4bit --max-tokens 1000 --temp 0.0 --prompt "Is this a logo?" --image https://pypi.org/static/images/logo-small.8998e9d1.svg
```

0 comments on commit cd4198b

Please sign in to comment.