/ Модель

Характеристики

Контекст
2 048 токенов
Размер весов
7,6 ГБ
Архитектура
moondream1 · dense
Опубликована
20 янв 2024

moondream1

Генерация текстаТекст → текст3 профессии

Компактная модель для ответов на вопросы о содержимом изображений и распознавания текста на них.

13 714скачиваний за 30 дней487лайковвеса обновлены7 фев 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

moondream1 — компактная мультимодальная модель с 1,6 млрд параметров, созданная Vikhyatk на основе SigLIP и Phi-1.5 и обученная на датасете LLaVA. Она принимает изображения и текстовые вопросы и генерирует текстовые ответы о содержимом изображения, например распознаёт надпись на обложке книги. В карточке приведены результаты на VQAv2, GQA и TextVQA; модель показывает более низкие результаты, чем LLaVA-1.5 в приведённых сравнениях, особенно на TextVQA. Выпущена для исследовательских целей; коммерческое использование запрещено.

Сценарии применения

  • ответы на вопросы о содержимом изображения
  • извлечение заголовков и надписей с изображений
  • описание изображений в диалоговом интерфейсе

Ограничения

В приведённых тестах результаты ниже, чем у LLaVA-1.5, особенно на TextVQA. Коммерческое использование запрещено.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

🌔 moondream1

1.6B parameter model built by @vikhyatk using SigLIP, Phi-1.5 and the LLaVa training dataset. The model is release for research purposes only, commercial use is not allowed.

Try it out on Huggingface Spaces!

Usage

pip install transformers timm einops
from transformers import AutoModelForCausalLM, CodeGenTokenizerFast as Tokenizer
from PIL import Image

model_id = "vikhyatk/moondream1"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = Tokenizer.from_pretrained(model_id)

image = Image.open('<IMAGE_PATH>')
enc_image = model.encode_image(image)
print(model.answer_question(enc_image, "<QUESTION>", tokenizer))

Benchmarks

ModelParametersVQAv2GQATextVQA
LLaVA-1.513.3B80.063.361.3
LLaVA-1.57.3B78.562.058.2
moondream11.6B74.757.935.6

Examples

ImageExamples
What is the title of this book?The Little Book of Deep LearningWhat can you tell me about this book?The book in the image is titled "The Little Book of Deep Learning." It appears to be a guide or manual that provides information and instructions on the subject of deep learning. The book is described as being small and thin, making it easy to carry and read. It is set in a room with a view outside, suggesting that the person holding the book might be in a living or working space with a view. The content of the book is likely to be complex, as the title implies a focus on advanced concepts in deep learning.Where is the person standing? The person is standing on a balcony or deck, which is outside.
What type of food is the girl holding?The girl is holding a hamburger.What color is the woman's hair?The woman's hair is white.What is the girl doing in the image?The girl in the image is eating a hamburger.
What color is the train?The train is red.What is the bus doing in the image? The bus in the image is driving down a city street, passing through an intersection.What kind of public transportation is in the image?The image features a red train or trolley as the public transportation option.
What is the girl looking at?The girl is looking at her reflection in the mirror.What color is the woman's hair?The woman's hair is brown.What is the woman doing in the mirror?The woman is adjusting her hair in the mirror.
What might be the reason for the dog's aggressive behavior?The dog's aggressive behavior, including its growling, baring its teeth, and showing its sharp teeth, could be due to various reasons. It is possible that the dog is feeling threatened, scared, or defensive about something in its environment, such as another animal, a loud noise, or a person nearby. Alternatively, the dog might be reacting to a command it received from its owner, or it could be experiencing discomfort or pain, which is causing it to display aggressive behavior. It is essential to observe the dog's body language and context to determine the underlying cause of its aggressive behavior and respond accordingly to address its needs or concerns.What kind of dog is in the picture?The dog in the picture is a small, black and white chihuahua.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
Moondream
Ревизия весов
f6e9da6

0 моделей