Skip to content

Email triage

Flide answers eight questions for each of 10,000 emails in 28 s on one H200. Each email goes out with its eight questions in one request, and Flide reads the email once for all of them. The code is in examples on GitHub.

An email and its eight answers, all from one forward pass

Run it

uv pip install flide
git clone https://github.com/OmniJev/Flide && cd Flide/examples
python make_requests.py
flide run --model OmniJev/OneJev1.6-0.8B --rows requests.jsonl --out answers

make_requests.py takes 10,000 emails from the Enron-Spam corpus, half spam and half not, and gives each one the eight questions in questions.json, which ask about spam, phishing, the kind of email, urgency, whether it needs a reply, its tone, whether it sets up a meeting and whether it asks for action. Edit questions.json to ask your own. flide run writes the eight answers of every email to answers/results.jsonl, next to the corpus label.

To time a server, start it and send the emails from 64 clients.

flide serve --model OmniJev/OneJev1.6-0.8B
python bench.py --url http://localhost:8000 --rows requests.jsonl --clients 64

bench.py works with any server that speaks the /v1/systemone API, so the same command times other engines too.

Results

Time for one email and for 10,000 emails, Flide against three other engines

One H200 and OneJev1.6-0.8B in bfloat16 for every engine. The left panel is the median time of one email sent alone, the right panel the time for all 10,000 emails from 64 clients. Flide answers one email in 10.0 ms and all 10,000 in 28 s, 3.5 times as fast as the fastest other engine for one email and 4.1 times for all of them. Flide reads OneJev's own prompt, which is longer than the prompts Engines A and B build for the same model.

The corpus comes lowercased and with spaces around punctuation, as its makers prepared it.