Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

Embeddings

bge-m3: GPU memory and a server to run it

By our estimate bge-m3 needs about 4 GB of GPU memory and 40 GB of disk with the Embeddings and reranking server (Infinity) template. Below: how the figure is worked out, the servers that fit and what they cost now.

Cheapest GPU that fits right now: one RTX 2070 SUPER, $0.1511 per hour while it runs.

These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.

BAAI/bge-m3
GPU memory (estimate)
4 GB
Disk
40 GB
Time until it answers
about 14 min
Cheapest server that fits
$0.1511 per hour

About bge-m3

Task
Embeddings
Parameters
—
Stored precision
—
Template that runs it
Embeddings and reranking server (Infinity)
Licence
MIT
Model page
BAAI/bge-m3

The licence is set by the model's publisher; read it on the model's own page. We do not give licence advice.

How to run bge-m3 on a GPU

Four steps from an empty account to a running server.

  1. 1

    Start Embeddings and reranking server (Infinity)

    Sign up, then start the Embeddings and reranking server (Infinity) template with bge-m3 already set. There is nothing to install on your computer.

  2. 2

    Pick a GPU with at least 4 GB of memory

    This page's estimate for bge-m3 is 4 GB. The cheapest GPU that fits right now is one RTX 2070 SUPER, $0.1511 per hour.

  3. 3

    Send your first text

    The server returns a vector for each text you send; the sample further down this page shows the request.

  4. 4

    Stop it when you are done

    A server bills by the hour only while it runs. Stop or delete it from the console and the charge ends.

How much GPU memory bge-m3 needs

A model's weights must fit in the memory on the graphics card (GPU memory, or VRAM), with room for the text it is working on. More parameters need more memory. Quantisation stores each weight in fewer bits, for example 4 instead of 16, so the same model needs about a quarter of the memory, with a small loss of quality. What GPU memory is

Estimated GPU memory of bge-m3 by build
BuildWeightsCacheOverheadTotal (estimate)
—this page2.1 GB0 GB1.5 GB4 GB

Estimate: (weights + overhead) ÷ 1 × 1.05, rounded up. Weights are the recorded file sizes, and the overhead is what the serving software needs on top.

These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.

Servers that fit bge-m3

Chosen from our live catalogue with at least 4 GB of GPU memory. Prices include the disk the launch uses.

Cheapest that fits

Available

1× RTX 2070 SUPER, 8 GB GPU memory

$0.1511 per hour, disk included

RTX 2070 SUPER plans and prices

Faster option

Available

1× RTX 3060, 12 GB GPU memory

$0.2172 per hour, disk included

RTX 3060 plans and prices

What it costs to run

Estimated cost of one hour and eight hours on the servers that fit
Server1 hour8 hours
1× RTX 2070 SUPERCheapest that fits$0.1511$1.2088
1× RTX 3060Faster option$0.2172$1.737

Hourly price today with the launch disk included, times 1 and 8. It is an estimate: you pay for the time the server runs and see the exact price before you deploy. Stop the server when you are done.

What you get

An embeddings API on your own server, locked with a key the server creates. Once it runs, send requests like this:

curl
curl http://SERVER_ADDRESS/embeddings \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "BAAI/bge-m3", "input": ["Hello world"]}'
Python
from openai import OpenAI

client = OpenAI(base_url="http://SERVER_ADDRESS", api_key="API_KEY")
out = client.embeddings.create(model="BAAI/bge-m3", input=["Hello world"])
print(len(out.data[0].embedding))

Replace SERVER_ADDRESS and API_KEY with the address and key shown on the server's Connect tab.

Launch settings

Deploy the Embeddings and reranking server (Infinity) template and set these variables at launch:

EMBEDDING_MODEL
BAAI/bge-m3

Questions

How much GPU memory does bge-m3 need?

About 4 GB by our estimate: 2.1 GB of weights, 0 GB of cache for 0 tokens and 1.5 GB of overhead. Servers are chosen with at least 4 GB.

Which GPU do I need for bge-m3?

Right now the cheapest of our servers that fits is 1× RTX 2070 SUPER with 8 GB of GPU memory.

How long until bge-m3 answers?

About 14 minutes after launch by our estimate: the machine starts, 2.3 GB of model files and the serving software download, then the server sets itself up.

How do I use bge-m3 once it runs?

Through an embeddings API on your server, with a key the server creates.

Before you start

A short guide that explains the numbers on this page for bge-m3.

Ready to try bge-m3? Pick a server and start it with the model already set; stop it whenever you like.