From cd4198bc6f5a7ea45f1339c20abf266e8b27699f Mon Sep 17 00:00:00 2001 From: Brian J King Date: Sat, 4 May 2024 11:42:24 -0700 Subject: [PATCH] add examples --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 942312f..2929a93 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,19 @@ pip install mlx-vlm ```sh python -m mlx_vlm.generate --model qnguyen3/nanoLLaVA --max-tokens 100 --temp 0.0 -``` \ No newline at end of file +``` + +### 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 +``` +