Run this model with HF Jobs

Run mozilla-ai/encoderfile on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/mozilla-ai/encoderfile. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/mozilla-ai/encoderfile on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Encoderfile Models

IMPORTANT NOTE: This repository is now deprecated! Please check out our new encoderfiles collection to find your favorite prebuilt encoderfiles.


Pre-built encoderfiles for popular Hugging Face embedding models β€” self-contained executables that run as embedding servers with no Python or ML dependencies required.

Available Models

Model Details
sentence-transformers/all-MiniLM-L6-v2 384-dim, English sentence embeddings
deepset/deberta-v3-base-injection DeBERTa-variant prompt injection classification model
JasperLS/deberta-v3-base-injection DeBERTa-variant prompt injection classification model
JasperLS/gelectra-base-injection gELECTRA-variant prompt injection classification model
protectai/deberta-v3-base-prompt-injection-v2 DeBERTa-variant prompt injection classification model
protectai/deberta-v3-small-prompt-injection-v2 DeBERTa-variant prompt injection classification model
protectai/deberta-v3-base-prompt-injection DeBERTa-variant prompt injection classification model
protectai/distilroberta-base-rejection-v1 DistilRoBERTa-variant prompt injection classification model
DuoGuard/DuoGuard-0.5B Content moderation model based on Qwen2.5-0.5B

More models coming soon.

Usage

Each model directory contains platform-specific binaries. Download the one for your platform, make it executable, and run:

# Serve embeddings over HTTP
./all-MiniLM-L6-v2.aarch64-apple-darwin.encoderfile serve

# Or infer directly from the CLI
./all-MiniLM-L6-v2.aarch64-apple-darwin.encoderfile infer "this is a test"

If you don't see the model you want or are using an exotic architecture, check out our guide on Building encoderfiles.

About

These encoderfiles are built and published by mozilla-ai using the Encoderfile tool. To build your own, see the Encoderfile documentation.

Downloads last month
71
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support