Inference

IFBench Speed Run: Time an Eval Across Inference Providers

Run all 300 IFBench samples against NVIDIA Nemotron 3 Ultra on Token Factory with OpenBench, time the run, and compare the same model on another provider.

Build it with an agent

Paste into Claude Code, Cursor, or any coding agent — it builds the recipe for you.

Build a reproducible IFBench speed run that compares NVIDIA Nemotron 3 Ultra on OpenRouter with the same model on Nebius Token Factory, following this cookbook. Deliver a README.md, requirements.txt, and a runnable script that executes both evaluations sequentially, measures elapsed wall-clock time for each provider, and saves separate logs and a comparison summary.

Confirm Python 3.10+ and pip are available. Document Python virtual environment setup. Install from a `requirements.txt` that pins `openbench==0.5.3`, `mcp<2`, `httpx<0.29` and `openai>=2,<3`, and adds `nltk`, `langdetect`, `emoji` and `syllapy`, which the IFBench scorer imports; a bare `pip install openbench` does not work. Document downloading the `punkt` and `punkt_tab` NLTK data once after install. Read credentials from `OPENROUTER_API_KEY` and `NEBIUS_API_KEY`; before running, check that the key for every provider named on the command line is present, and never print or commit their values. With no model named, run Nebius Token Factory alone so the script is useful with one key. Link to https://openrouter.ai/workspaces/default/keys and https://tokenfactory.nebius.com/project/api-keys for credential setup.

Use `bench eval ifbench --model openrouter/nvidia/nemotron-3-ultra-550b-a55b:free` for OpenRouter and `bench eval ifbench --model nebius/nvidia/Nemotron-3-Ultra-550b-a55b` for Nebius Token Factory. Default to a quick smoke run by appending `--limit 5` to both commands. Support a configurable positive sample limit and an explicit full-suite option that omits `--limit` from both commands. Use the same sample limit and evaluation settings for each provider, and record the installed Openbench version and commands used.

Report each provider's completion status, elapsed time, and evaluation score when available in the actual Openbench output. Compute the speedup as OpenRouter elapsed time divided by Nebius elapsed time only when both runs succeed with matching settings. Keep elapsed evaluation time distinct from tokens-per-second throughput; report throughput only if measured. `bench` exits zero even when an eval fails, so read each eval log's status. Preserve failure details, exit nonzero if either evaluation fails, and never invent results or claim that a five-sample smoke run represents the full suite.

Include copyable setup, smoke-run, full-suite, result-inspection, troubleshooting, and cleanup instructions. Verify the script's argument handling and missing-credential behavior without making API calls. If both credentials are available, run the five-sample comparison and summarize the observed results; otherwise explain how the user can run it. Run the full suite only when explicitly requested.

Recipe

When deploying an agentic workflow, speed determines whether it is viable as useful software. Throughput in tokens per second determines how long users wait for responsive information with each agent contributing seconds to an overall pipeline.

IFBench is an open source eval from AllenAI that measures how well a model follows instructions it has not seen in training. It is used by Artificial Analysis and many in the industry to test how suitable a model can be to power the intelligence of an agent.

Measuring how quickly a model can complete the IFBench suite can show both how
effectively and quickly a model provider can serve as the intelligence powering an agent.

For this example, we’ll use
NVIDIA’s Nemotron 3 Ultra model a 550B-parameter reasoning model. We will compare the vanilla model that NVIDIA provides on OpenRouter with the optimized inference on Nebius Token Factory.

Setup

To run the eval we’ll use the excellent OpenBench utility. The
companion project
has a requirements.txt that installs it with versions that work together, and a small script,
speedrun.py, that times each run for us.

git clone --depth 1 https://github.com/nebius/token-factory-cookbook.git
cd token-factory-cookbook/evaluations/ifbench-speed-run
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -c "import nltk; nltk.download('punkt'); nltk.download('punkt_tab')"

Note: On December 3, 2026 a bare pip install openbench installed packages that did not work together: the bench command failed on import, then on its first request, then in the IFBench scorer. The pins in requirements.txt and the nltk download above are the fix.

Next, we ensure our API credentials are saved to appropriate environment
variables. We’ll use NEBIUS_API_KEY for Nebius Token Factory and
OPENROUTER_API_KEY for OpenRouter.

You can generate an API key for Nebius Token Factory
here.

You can generate an API key for OpenRouter in your default workspace
here. If you do not have a
default workspace, this link may not work. You can select a workspace by
clicking in the top of the left hand navigation.

export NEBIUS_API_KEY="your-key"
export OPENROUTER_API_KEY="your-key"

Note: Secrets for inference providers can be abused. Always keep your API credentials in secure locations and never commit them to source code management.

Run It

First, a quick check that everything works. The --limit argument runs only the first samples of
the eval, so this costs a few cents.

bench eval ifbench --model nebius/nvidia/Nemotron-3-Ultra-550b-a55b --limit 5

Now the full run of all 300 samples in the IFBench eval on Nebius Token Factory.

bench eval ifbench --model nebius/nvidia/Nemotron-3-Ultra-550b-a55b

Once the eval is complete, we’ll see a report. This one was measured on December 3, 2026 with
OpenBench 0.5.3 at its default of 10 parallel connections:

ifbench (300 samples): nebius/nvidia/Nemotron-3-Ultra-550b-a55b
timeout: 10000, max_connections: 10, log_buffer: 10, dataset: ifbench
total time:                               0:08:05
nebius/nvidia/Nemotron-3-Ultra-550b-a55b  1,130,599 tokens [I: 27,136, CW: 0,
                                        CR: 0, O: 1,103,463, R: 1,040,884]
average sample duration:                  15.76s
p95 sample duration:                      36.40s
p50 sample duration:                      12.62s
ifbench_scorer
strict_instruction_accuracy  0.730
strict_prompt_accuracy       0.723
loose_instruction_accuracy   0.738
loose_prompt_accuracy        0.733

The whole suite finished in 8 minutes 5 seconds. The model wrote 1,103,463 output tokens, most of
them reasoning, which works out to about 2,240 output tokens per second across the 10 connections.
At the list price read on December 3, 2026 ($1.00 per 1M input tokens and $3.00 per 1M output
tokens), the run cost $3.34. Scores and times vary from run to run.

Next, let’s run the same eval with the same model on OpenRouter.

bench eval ifbench --model openrouter/nvidia/nemotron-3-ultra-550b-a55b:free

The OpenRouter run was not made for this page, so there is no report to show for it here. Run both
and put the two “total time” lines side by side. To time both and get one table, use the script
from the companion project:

python speedrun.py nebius/nvidia/Nemotron-3-Ultra-550b-a55b openrouter/nvidia/nemotron-3-ultra-550b-a55b:free

It prints one row per provider with accuracy, output tokens, wall time and output tokens per
second. For the Token Factory run above, that row was:

| Model | Samples | Strict prompt acc. | Loose prompt acc. | Output tokens | Wall time (s) | Output tokens/s |
|---|---|---|---|---|---|---|
| nebius/nvidia/Nemotron-3-Ultra-550b-a55b | 300 | 0.7233 | 0.7333 | 1103463 | 493.1 | 2237.7 |

Conclusions

By running the same evaluation on the same model for two different inference
providers, we can assess the effectiveness, efficiency and speed of the
inference providers we rely on for our agents.

Next Steps

To use the speed and efficiency of Nebius Token Factory in your agents,
sign up for an account through our builder program. With it, you receive free
credits and support for Nebius Token Factory and several other partners such as Tavily,
Langchain, Prime Intellect and many other useful tools for building AI agents.

  • To learn how to use Nebius Token Factory and Tavily to build a parts search
    agent, check out the Vintage Parts Search cookbook.