Recommended hardware

#1
by Test107 - opened

What would be the recommended hardware to run this model? does a Coral TPU help?

LLM Vision org

The easiest way to set up glimpse is by using Ollama. Unfortunately, since Ollama is based on llama.cpp, it does not support TPUs. Glimpse was tested on a mac mini, but I think other mini PCs will work as well. I'd be interested to hear what hardware you end up using, so I can collect some recommended hardware options.

I am using a GTX1660, 6G VRAM and am getting cudaMalloc failed: out of memory during CLIP init. I think this is to do with the mmproj, as I can start it with the base. I have tried ollama and llamacpp, both OOM. In llamacpp, it starts fine with the base model.

LLM Vision org

6GB VRAM should be plenty. But if you get OOM, you can give the quantization a try: https://ollama.com/llmvision/glimpse-v1:q4_k_m

There are even more quantizations available here: https://huggingface.co/mradermacher/glimpse-v1-GGUF

I got the Q4_K_M, thanks. No more OOM, but from Image Analyzer:
A woman standing in a driveway holding a black backpack and wearing a grey
tank top and striped pants. A blue car is parked nearby and a green trash can
is on the other side of the driveway.

<|im_start|>user

Image 2:<|im_end|>

<|im_start|>assistant

A man standing in a driveway holding a black object and wearing a dark shirt
and shorts. A blue car is parked nearby and a green trash can is on the other
side of the driveway.

<|im_start|>user

Image 3:<|im_end|>

<|im_start|>assistant
This outputs 16 times and never ends, just runs until out of tokens. I also needed to run it with --chat-template chatml to get it to output the "A man standing...." blocks.
Then for ollama(Open Webui):CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
CDCl2 стоковое изображение
CDCl2
Seems like something is wrong with the stop tokens

LLM Vision org

I should probably put this information in the model card too, but be sure to use the original training instructions as prompt:
https://ollama.com/llmvision/glimpse-v1

Sign up or log in to comment