Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

eivankin/molmo-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molmo Multi-Modal Demo

How to run

docker compose up

The demo will run on CPU by default and will be available at http://localhost:7860.

Running on GPU

You need to change the docker-compose.yml to do so. See it for details on how to run on GPU.

Huggingface cache

By default, model weights will be stored in a docker volume mapping to the default location of huggingface cache: ~/.cache/huggingface/ on the local machine to prevent re-downloading. You can change the location of the cache by setting the environment variable DOCKER_HF_CACHE_PATH. Example:

export DOCKER_HF_CACHE_PATH=/path/to/cache
mkdir -p $DOCKER_HF_CACHE_PATH
docker compose up

Important: make sure the DOCKER_HF_CACHE_PATH exists before running the container!

Setting the concurrency limit

The default limit is 1, set the environment variable GRADIO_DEFAULT_CONCURRENCY_LIMIT to change it or edit the docker-compose.yml file. Possible commands:

GRADIO_DEFAULT_CONCURRENCY_LIMIT=2 docker compose up
GRADIO_DEFAULT_CONCURRENCY_LIMIT=2 python app.py

Description

This demo showcases two capabilities of the Molmo model:

  • Pointing: Identify and locate objects in images.
  • Image Description: Generate detailed descriptions of images.

Screenshots

Pointing Description

About

Molmo multi-modal demo built with Gradio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published