MCPcopy Index your code
hub / github.com/m87-labs/moondream

github.com/m87-labs/moondream @main sqlite

repository ↗ · DeepWiki ↗
272 symbols 1,157 edges 54 files 79 documented · 29%
README

🌔 moondream

a tiny vision language model that kicks ass and runs anywhere

Website | Demo

Examples

Image Example
What is the girl doing?

The girl is sitting at a table and eating a large hamburger.

What color is the girl's hair?

The girl's hair is white. | | | What is this?

This is a computer server rack, which is a device used to store and manage multiple computer servers. The rack is filled with various computer servers, each with their own dedicated space and power supply. The servers are connected to the rack via multiple cables, indicating that they are part of a larger system. The rack is placed on a carpeted floor, and there is a couch nearby, suggesting that the setup is in a living or entertainment area.

What is behind the stand?

Behind the stand, there is a brick wall. |

About

Moondream is a highly efficient open-source vision language model that combines powerful image understanding capabilities with a remarkably small footprint. It's designed to be versatile and accessible, capable of running on a wide range of devices and platforms.

The project offers two model variants:

  • Moondream 2B: The primary model with 2 billion parameters, offering robust performance for general-purpose image understanding tasks including captioning, visual question answering, and object detection.
  • Moondream 0.5B: A compact 500 million parameter model specifically optimized as a distillation target for edge devices, enabling efficient deployment on resource-constrained hardware while maintaining impressive capabilities.

How to use

Moondream can be run locally, or in the cloud. Please refer to the Getting Started page for details.

Special thanks

Core symbols most depended-on inside this repo

query
called by 20
moondream/torch/hf_moondream.py
encode_image
called by 16
moondream/torch/hf_moondream.py
compile
called by 16
moondream/torch/moondream.py
load_weights_into_model
called by 15
moondream/torch/weights.py
update
called by 11
recipes/promptable-content-moderation/deep_sort_integration.py
device
called by 11
moondream/torch/moondream.py
detect
called by 9
moondream/torch/hf_moondream.py
caption
called by 7
moondream/torch/hf_moondream.py

Shape

Function 187
Method 62
Class 20
Route 3

Languages

Python100%
TypeScript1%

Modules by API surface

moondream/torch/moondream.py34 symbols
recipes/promptable-content-moderation/main.py20 symbols
moondream/torch/hf_moondream.py20 symbols
moondream/torch/layers.py17 symbols
recipes/promptable-video-redaction/main.py15 symbols
examples/quickstart/finetune/train_ishape_antenna_detect.py12 symbols
moondream/eval/waste_detection.py9 symbols
moondream/torch/config.py8 symbols
webcam_gradio_demo.py7 symbols
moondream/torch/weights.py7 symbols
moondream/torch/text.py7 symbols
moondream/eval/utils.py7 symbols

Dependencies from manifests, versioned

moondream0.0.5 · 1×
Pillow-SIMD9.5.0.post2 · 1×
accelerate1.10.1 · 1×
datasets3.2.0 · 1×
deep-sort-realtime1.3.2 · 1×
editdistance0.8.1 · 1×
gradio4.38.1 · 1×
matplotlib3.7.0 · 1×
numpy1.24.0 · 1×
opencv-python4.8.0 · 1×
pandas2.0.0 · 1×
pillow10.0.0 · 1×

For agents

$ claude mcp add moondream \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact