Model reference · open weights

face

Embeddings desert-ant-labs Image embed 1 build Its own licence terms 592 dl/mo

face is an open-weight embedding model from desert-ant-labs. face (BF16) weighs 26 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Face is an on-device image feature extraction model by Desert Ant Labs that identifies people in photos and videos.
  • It generates 128 number faceprints for matching and grouping faces without sending data off the device.
  • The model supports iOS, macOS, Android, Linux, Windows, and browser platforms under a source-available license.

Summary of the desert-ant-labs/face model card, 2026-12-01

What it is

Released bydesert-ant-labs
Released2026-11-05
VRAM26 MB for the weights

What it runs on

Memory and cards for face (BF16)

26 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What desert-ant-labs says about face

Read the model card

Find people in photos, on device.

On-device face matching across a photo library or through a video.

PlatformsiOS, macOS, tvOS, visionOS, Android, Linux, Windows, Browser, Node
Weightsv1.0.0
Demohttps://desertant.com/models/face/

Face finds the faces in a photo and gives each one a faceprint: 128 numbers that point the same way for the same person. With stored faceprints you can tell whether two faces are one person, find one person in a library from a selfie, and group a library into people, without the model. To crop, blur or count faces, FaceDetector finds them without faceprints and downloads the detector alone. No face leaves the device.

Install

Swift (requirements)

.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "6.0.0")

Then add the Face product to your target.

Kotlin (requirements)

implementation(platform("ai.desertant:bom:6.0.0"))
implementation("ai.desertant:face")

JavaScript (requirements)

npm i @desert-ant-labs/face @litertjs/core   # browser
npm i @desert-ant-labs/face                  # Node, prebuilt native core

Usage

faces(in:) finds the faces in a photo and gives each one a faceprint. FaceLibrary groups faceprints into people and keeps the names and corrections the user makes. The library and the comparisons run without the model.

Swift

import Face

let face = Face()
let faces = try await face.faces(contentsOf: photoURL)   // or UIImage, NSImage, CGImage, Data
faces.first?.box          // in 0...1 of the image, origin top left
faces.first?.faceprint    // Codable, or .data (512 bytes) for your own database

var library = FaceLibrary()
library.add(faces, photo: asset.id, date: asset.creationDate)
for person in library.people(.prominent) {               // or .all
    show(person.name, library.face(person.keyFace)?.box)
}

library.name(person.id, "Noor")
library.confirm(faceID, is: person.id)         // "This is Noor"
library.reject(faceID, from: person.id)        // "This is not Noor"
library.merge(other.id, into: person.id)       // "These are the same person"
library.newPerson(from: faceID, named: "Ana")  // "This is Ana", someone new
library.suggestions(for: person.id)            // "Is this also Noor?"
library.remove(photo: deletedAsset.id)
library.person(for: newFace.faceprint)?.name   // "Noor", or nil for someone new

The SDK decodes files and Data upright, following their EXIF orientation. Face also finds faces turned sideways or upside down in the photo, and their faceprints match the same faces upright. Canceling the calling task stops the analysis and throws CancellationError. Create one Face and reuse it.

On Linux and Windows, pass decoded pixels:

let pixels = try ImagePixels(width: w, height: h, rgba: bytes)
let faces = try await face.faces(in: pixels)

Kotlin

import ai.desertant.face.Face

Face(context).use { face ->
    val library = face.library()                       // or face.library(saved), face.library(rows, names)
    library.add(face.faces(bitmap), photo = assetId, date = takenAt)
    for (person in library.people(prominent = true)) show(person)
    library.name(person.id, "Noor")
    library.reject(faceId, person.id)                  // "This is not Noor"
    library.newPerson(faceId, "Ana")                   // "This is Ana", someone new
    library.person(newFace.faceprint)?.name            // "Noor"
    val saved = library.save()                         // JSONObject
}

JavaScript

import { Face } from "@desert-ant-labs/face";          // browser
// import { Face } from "@desert-ant-labs/face/native"; // server-side Node
const face = await Face.load();
const library = await face.library();                  // or face.library(saved)
await library.add(await face.faces(image), photoId, { date });
const people = await library.people({ prominent: true });
await library.name(people[0].id, "Noor");
const saved = await library.save();                    // JSON
face.dispose();

In the browser, image can be anything createImageBitmap accepts or an ImageData. In Node, pass decoded, upright pixels as { data, width, height }.

Faces without faceprints

FaceDetector finds the faces and their five landmarks, and downloads the detector alone: 7.6 MB on Apple platforms, 15 MB elsewhere, against 26 MB and 52 MB for Face. Face and Eye use the same detector, and an app that uses more than one of them downloads it once.

let detector = FaceDetector()
for face in try await detector.faces(contentsOf: photoURL) {   // [FaceDetection]: box, landmarks, confidence
    blur(face.box)
}
FaceDetector(context).use { detector -> detector.faces(bitmap).forEach { blur(it.box) } }
import { FaceDetector } from "@desert-ant-labs/face";
const detector = await FaceDetector.load();
for (const { box } of await detector.faces(image)) blur(box);

FaceDetector finds the same faces as Face when given the same options. A DetectedFace from Face gives its FaceDetection as detection.

Saving a library

The library's state is faces, one FaceRecord per face, and names. Every platform runs the same Swift FaceLibrary, so a library saved on one platform loads on any other and groups faces the same way.

To save the whole library, encode it as JSON (Codable in Swift, save() in Kotlin and JavaScript) and decode it at launch.

To keep faces in your own database, store each FaceRecord as one row of a faces table (id, photo, date, box, confidence, `faceprint.dat

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together, which is the basis of search and RAG.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms