ej

11 MB local model for typed decisions in one pass, runs on CPU

Working when we checked on .

Visit ej

What is ej?

ej is a decision model that answers routing, yes/no and priority questions about text with a probability for every option. It is aimed at teams that make the same decisions repeatedly, such as ticket routing, tool-call checks and urgency scoring. The model ships as a single 11.4 MB file that runs on CPU inside a user's own service, offline, with no API or GPU required. Options are plain text passed at call time, so labels can change without retraining, and every question about a record is answered in one pass. It is fine-tuned from intfloat/e5-small-v2, with open weights and GPL-3.0 code.

ej pricing

Pricing model: Free

Free, open source (Apache-2.0 code, open weights); no cost per call

ej pros

  • Single 11.4 MB file runs on CPU offline, no API or GPU needed
  • Every answer is a probability distribution, enabling threshold-based automation
  • Options are plain text at call time, so labels change without retraining
  • No pickles; every model file section is SHA-256 checked before decoding
  • Best of seven tested models (.683) on support tickets in a new writing style
  • model.adapt() learns a workflow's label mix from a few labelled records

ej cons

  • Only .419 accuracy across 105 never-seen workflows; Jev and Laya far ahead there
  • English only; no other languages supported
  • Python and PyTorch on CPU only; cannot run on a phone
  • Calibration held on only two of six test suites, so must be checked on own data

Frequently asked questions about ej

What does ej do?

ej answers routing, yes/no and priority questions about text, returning a probability for every option. It answers all questions about a record in a single pass, from one 11 MB file running on CPU.

How does ej compare with Jev and Laya?

On trained workflows ej scores .721 versus hosted Jev's .737, a gap inside the confidence interval. It leads on tickets in a new writing style (.683 vs .626 and .617), but Jev and Laya are far more accurate on workflows ej never saw. The key difference is deployment: Jev is an API, Laya is a 421M-parameter model, ej is one 11 MB file on CPU.

How fast is ej?

About 214 ms per record on one CPU thread once warm on a shared 4-core Xeon, and about 360 ms under a stricter benchmark protocol. The first call takes 1 to 2 seconds while the model loads, and batching is faster per record.

How much memory does ej use?

Peak process memory is about 558 MB, with roughly 204 MB from importing PyTorch. Model tensors peak at 128 MB, or 35 MB with low_memory=True, which is slower but gives the same predictions.

Is the model file safe to load?

Yes. The model.ejpack file contains no pickles. Every section is SHA-256 checked before anything is decoded, and the downloaded file must match a published hash.

What is ej built on and trained with?

ej is fine-tuned from intfloat/e5-small-v2 (MIT) on 9,719 records: Typed Decisions workflows, Banking77, CLINC150, GoEmotions, and synthetic support tickets written by Claude Haiku. No LLM runs at inference.

Is ej calibrated?

Calibration was checked on every test suite; it held on both support-ticket suites but not on the other four. Users should check calibration on their own data before treating 0.9 as 90%.

Who should use ej?

Teams making the same decisions about text repeatedly, such as routing, triage, yes/no checks and priority, especially when it must run on CPU, on their own servers, or offline. It suits those who can label a few dozen records to check accuracy first.

Can I train my own model?

Yes. python -m ej.train builds a pack from labelled records, and python -m ej.eval scores it with the same evaluator used for the published numbers.

What licence does ej use?

The code is GPL-3.0-only, with releases up to 0.0.1.post2 under Apache-2.0. The weights are CC BY-SA 4.0, so changed and shared weights must stay under the same licence.

Categories

Use cases

Alternatives to ej

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z