# Moondream
Moondream detects objects, returns points and answers image questions.
Tasks: Detection, Point detection. Install: pip install "libreyolo[vlm]".
Verified against LibreYOLO v1.6.0.

## Install

```bash
pip install "libreyolo[vlm]"
```

## Predict

**Python**

```python
from libreyolo import LibreVLM, SAMPLE_IMAGE

model = LibreVLM("moondream-2", device="cpu")
model.set_classes(["person", "building"])
result = model(SAMPLE_IMAGE)
print(result.boxes)
```

The default selects Moondream 2. `moondream-3` names the BSL 1.1 Moondream 3 model, but it does not load in 1.6.0: the `LibreYOLO/LibreMoondream3` mirror is missing weight shards. Use `task="point"` for points and `chat()` for native text responses. Training is not supported.

## Licensing

Check the license on the Hugging Face repository of the specific weights you download. That repository is authoritative and licenses are not always uniform across a family. This is a description of the licenses involved, not legal advice.

- Original work: Moondream, Moondream
- Upstream license: Apache-2.0 (2); BSL 1.1 (3)
- Upstream source: https://huggingface.co/moondream
- LibreYOLO code: MIT
- Weights: Apache-2.0 (2); BSL 1.1 (3), republished at https://huggingface.co/LibreYOLO
- Interpretation: Moondream 2 uses Apache-2.0. Moondream 3 uses BSL 1.1 with the publisher's additional-use conditions; it is not an unrestricted Apache-2.0 checkpoint.
