---
title: "How to Run Mistral's Clipstral Locally for Image Search"
url: "https://goremy.ai/blog/articles/clipstral-run-locally-mistral-multimodal-embed"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-12-02T03:00:24.984Z"
updated: "2026-12-02T03:00:24.984Z"
topic: Local AI
description: "Run Mistral's Apache 2 Clipstral (1.24B) locally to search photos and videos with plain text. Setup steps, the Gradio demo, and its under 3 GB VRAM use."
---

# How to Run Mistral's Clipstral Locally for Image Search

> Run Mistral's Apache 2 Clipstral (1.24B) locally to search photos and videos with plain text. Setup steps, the Gradio demo, and its under 3 GB VRAM use.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-12-02

## How do I run Mistral's Clipstral locally?

You clone Mistral's repo, create a virtual environment, install the dependencies from the root of the repo, download the model from Hugging Face, and start the Gradio demo that Mistral provides. Then you open the demo in your browser on localhost. Clipstral (Mistral's multimodal embed model) is an open-weight, 1.24 billion parameter model under the Apache 2 license. In a demonstration on an Ubuntu machine, it used under 3 GB of VRAM (the memory on a graphics card) while searching a gallery of images and videos.

## TL;DR

- Clipstral is a **1.24B-parameter open-weight model** released by Mistral under the Apache 2 license, so you can download it and run it yourself.
- It is **not a chatbot and does not write captions**. It turns images, videos, and text into embeddings so you can match them.
- You can **search photos and videos by typing a sentence**, search by image or clip, sort media into your own categories without training, and find near duplicates.
- Setup follows a standard pattern: **clone the repo, install dependencies, download the weights, launch the Gradio demo**.
- In the demonstration, the model **stayed under 3 GB of VRAM**, though the test machine had 48 GB available, so treat that as one observed data point and not a guaranteed minimum.
- The first search is slow because every file gets embedded. The demo **saves those embeddings to disk** and reuses them.

## What does an embedding model actually do?

An embedding is a list of numbers that captures the meaning of something. Clipstral turns a photo, a short video, or a sentence into one of these lists. All three land in the same shared space, so things with similar meaning sit close together.

Here is a concrete example. A video of a cat drinking water ends up near sentences that describe it, whether those sentences are written in English, French, or Italian. A pixel art cat ends up near the words "a pixel art cat." Because the closeness is measurable, you can do useful things with it:

- **Text-to-media search:** type "water wheel" and get the matching photo or video.
- **Search by example:** use an image or clip as the query.
- **Sorting without training:** compare a photo against labels you write yourself.
- **Near-duplicate detection:** find files that are almost identical.

The model's job is matching. It will not describe a photo to you or answer questions about a video.

## How does Clipstral handle images and video?

Two details matter for practical use.

**Images keep their original shape.** The model reads them as they are instead of forcing every photo into a square.

**Videos are read as 16 frames per clip.** The model samples 16 frames from each video and builds its embedding from those. That makes it a good fit for short clips. It is built mainly for natural photos and short videos, so do not assume it will perform as well on screenshots, charts, or scanned documents. Test it on your own material before you commit.

## What hardware does Clipstral need?

The only hardware figure the demonstration gives is this: the model used **under 3 GB of VRAM** while it loaded and ran searches. That is small. For comparison, many large language models need many times that.

Some caveats, so you do not over-read the number:

- The test machine was an Ubuntu system with **48 GB of VRAM**. The model did not need that much, but the demonstration does not establish a minimum card.
- The presenter noted the model was still loading when he checked, and said that "under 3 gig" seemed to be the limit.
- Nothing in the material covers running on a CPU only, on a laptop, or on a Mac. If you do not have a dedicated graphics card, check Mistral's repo and the Hugging Face model page for supported setups.
- Disk space for your embeddings will grow with the size of your media library.

If you do not own a suitable GPU, renting one by the hour is an option. That is what the presenter pointed viewers toward.

## How do I install and serve it?

The steps below follow the order shown in the walkthrough. Exact commands live in Mistral's repo, so copy them from there instead of from this article.

1. **Prepare a machine.** A Linux box with a GPU is what was used. Create a Python virtual environment first so the dependencies stay isolated.
2. **Clone Mistral's repo.** Get the link from the Hugging Face model page or Mistral's announcement.
3. **Install dependencies** from the root of the repo. This took little time in the demonstration.
4. **Download the model from Hugging Face.** The weights are small compared with typical modern models.
5. **Serve the application** from the root of the repo. Mistral provides the demo app, so you do not need to write one.
6. **Open the Gradio app** in your browser on localhost.

Gradio is a Python library that wraps a model in a simple web page. Here it gives you a search box, a gallery, and tabs for different tasks, without any front-end work.

## What does the Gradio demo show?

The demo loads a gallery of **27 images and roughly 15 videos**. You can point it at your own files instead.

**Search tab.** The first search is slow. The model has to load, then turn every image and video into an embedding. The demo saves those embeddings to disk and reuses them, which is the same approach you would want in production.

A search for "water wheel" put a water wheel video first with a score of 0.285, well ahead of the next result at 0.187. A search for "Liberty" put the Statue of Liberty first, but the scores were low overall. Those numbers are **not percentages**. They are similarity scores between the text embedding and the media embedding. Higher means closer. Use them to rank results, and do not read them as confidence levels.

**City classification tab.** This tests classification without any extra training. The model compares a photo to short sentences such as "a photo from Paris" for each of nine listed cities, then ranks them. A Paris photo scored 95% for Paris, and a New York photo was classified correctly.

The limit showed up with a local photo of Monas, a national monument in Jakarta. The demo picked Madrid. The presenter's explanation was that Jakarta was probably not among the nine options, so the model was just selecting from those nine examples. When the presenter ran a short script with Jakarta added to the labels, Jakarta scored 100%. The lesson is practical. Your labels define the answer space, so write them carefully and include the categories you really have.

## Does it work in other languages?

In a multilingual test, the same sentence about a giant panda was written in 10 languages. Each language searched the same photos and videos independently. All ten put the same panda video in first place. Nine also put the panda video second. Swahili was the one that missed on the second result.

This is a single informal test, not a benchmark. Still, it suggests the model is useful for teams whose files are described in more than one language.

## What does this mean for you?

**If you manage lots of photos or video** (marketing, communications, real estate, events, HR, training): a local embedding model means you can search your own library by describing what you want. You do not need to tag every file by hand. And because it runs on your machine, your files do not have to be sent to an outside service. Check your company's policy on software and data before you install anything on a work computer.

**If you are not technical:** the practical path is to ask your IT or data team to try the Gradio demo on a sample folder. Give them a real task, such as "find every photo with our booth banner" or "find clips of the product being unboxed." Then judge the top results yourself.

**If you are technical or technical-adjacent:** run the demo on 50 to 100 of your own files before building anything. Check how it handles your kind of content, since it is built mainly for natural photos and short videos. Save embeddings to disk, as the demo does, so you only process each file once.

**What to watch for:** it will not caption or explain anything, scores are relative and not percentages, and zero-shot classification only picks from the labels you provide.

## Can I build a simple media library around this?

Search is only one piece of a media workflow. Teams also need a place to log what each asset is, who approved it, and where it can be used. If that currently lives in a spreadsheet, you could describe it to [Remy](https://goremy.ai), which builds and deploys full-stack business apps from a plain-English description. For example, a small asset tracker with sign-in, approval status, and a request form for new files. Remy's built-in retrieval works over documents, so check what fits before you plan around image search. The point is owning a small internal tool, not renting another subscription.

## Frequently Asked Questions

### Is Clipstral free to use?

The model is open-weight under the Apache 2 license, so you can download and run it yourself. Apache 2 is a permissive license, but read the license text and the model page for the exact terms before using it commercially.

### Can Clipstral describe or caption my photos?

No. It is not a chatbot and does not write captions. It converts images, videos, and text into embeddings and matches them, which is what powers search, sorting, and duplicate detection.

### How much VRAM does Clipstral need?

In the demonstration, it used under 3 GB of VRAM while serving searches. The test machine had 48 GB, so that figure shows what the model consumed, not a tested minimum. Check the repo for official requirements.

### Why was the first search so slow?

On the first search, the model loads and creates an embedding for every image and video in the gallery. The demo then saves those embeddings to disk and reuses them, so later searches do not reprocess the files.

### Can it classify images into my own categories?

Yes, without extra training. You write short label sentences, such as "a photo from Paris," and the model ranks which label best matches each image. It can only choose from the labels you give it, so a missing category leads to a wrong answer.
