# Base models

> The 18 base models: limits, rules, prices and cold starts.

Part of the Endor docs. Index of every page: https://endor.thetokencompany.com/llms.txt. HTML version: https://endor.thetokencompany.com/docs/base-models.

Endor serves 18 open decision models, ranked on the [Jev Decision Index](https://huggingface.co/spaces/multimodalart/jev-decision-index). All of them accept `noul`, `choice` and `score` questions, and you can fine-tune each of them. Training costs $7.00 per GPU-hour on every base model.

## Use a base model

Train a model on any base model in a [custom project](https://endor.thetokencompany.com/docs/training): `client.custom_models.create("router-2", base_model="mapika/decider-2b")`. Which one to choose: [Choosing a base model](https://endor.thetokencompany.com/docs/training#choosing-a-base-model). To measure an untrained base model on your data, evaluate it (see [Compare models](#compare-models)). Or call a base model directly by its id, `owner/model`: `model="mapika/decider-2b"` (see [Call a base model directly](https://endor.thetokencompany.com/docs/decisions#call-a-base-model-directly)), at the price in the table.

A [continuous model](https://endor.thetokencompany.com/docs/continuous-learning) (for invited organizations) also has one base model, chosen when you create it: `client.projects.create("tickets", base_model="mapika/decider-2b")`. It answers with it as `tickets` until its first version, and its base model never changes.

| Model id | Provider | Size | Options per question | Max LoRA rank | Decisions, per 1M input tokens | In a continuous model | Index rank |
|---|---|---|---|---|---|---|---|
| `baselabs/mammoth-1-27b` | Base Labs | 27B | 255 | 64 | $0.042 | $0.063 | =2 |
| `perplexity-ai/pplx-decider-v1.2-27b` | Perplexity | 27B | 255 | 64 | $0.042 | $0.063 | =3 |
| `autotrust/jev-v1.1-27b` | AutoTrust | 27B | 255 | 64 | $0.042 | $0.063 | =3 |
| `cloudflare/clef-27b` | Cloudflare | 27B | 255 | 64 | $0.042 | $0.063 | =14 |
| `autotrust/gev-26b` | AutoTrust | 26B (4B active) | 16 | 64 | $0.042 | $0.063 | =15 |
| `eldanring/winnow-12b` | EldanRing | 12B | 64 | 256 | $0.02 | $0.03 | =21 |
| `vllm-sr/decision-2.0-lux-9b` | vLLM Semantic Router | 9B | 255 | 256 | $0.02 | $0.03 | =21 |
| `alibiserikbay/jevk5-9b` | alibiserikbay | 9B | 16 | 256 | $0.02 | $0.03 | =22 |
| `cloudflare/clef-flash-9b` | Cloudflare | 9B | 255 | 256 | $0.021 | $0.0315 | =23 |
| `akhilaaa3/jev-omni-12b` | akhilaaa3 | 12B | 255 | 256 | $0.02 | $0.03 | =23 |
| `autotrust/jev-9b` | AutoTrust | 9B | 16 | 256 | $0.02 | $0.03 | =25 |
| `bespokelabs/nimble-9b-v2` | Bespoke Labs | 9B | 255 | 256 | $0.02 | $0.03 | =25 |
| `vllm-sr/decision-2.0-nox-4b` | vLLM Semantic Router | 4B | 255 | 256 | $0.01 | $0.015 | =26 |
| `jaredpalmer/kev-9b` | jaredpalmer | 9B | 255 | 256 | $0.04 | $0.06 | =26 |
| `alibiserikbay/jevk5-4b` | alibiserikbay | 4B | 16 | 256 | $0.01 | $0.015 | =30 |
| `mapika/decider-4b` | Mapika | 4.7B | 255 | 256 | $0.01 | $0.015 | =30 |
| `mapika/decider-2b` | Mapika | 1.9B | 255 | 256 | $0.007 | $0.0105 | =39 |
| `fastino/gliner2.5-decide` | Fastino | 0.5B | 64 | 256 | $0.005 | $0.0075 | 51 |

A base model called directly costs the price in the table, and so does a model from a custom project on it. All decisions of a [continuous model](https://endor.thetokencompany.com/docs/continuous-learning) cost the continuous model price, also before its first version. `client.base_models()` and `GET /v1/base_models` give the current prices and limits, and for each base model its `provider`, `leaderboard_rank`, `modalities` (`text`, and `image` if it reads images), `hf_repo` (the Hugging Face repository of the weights), `hf_revision` (the pinned commit) and `contract` (how Endor turns a question into the model's input and reads the probabilities). `decision_index` gives its entry on the index: its rank (`=` marks a tie), the general use cases it ranks best at (`meant_for`) and a link to its scores there. `tokens_per_s` is the decision throughput Endor measured on it. The dashboard's **Model garden** shows all of this for every base model.

Endor runs each model as its publisher's code does, and decides each question of a request on its own: a model whose own code can read all questions of a request together (`perplexity-ai/pplx-decider-v1.2-27b`, `cloudflare/clef-27b`, `cloudflare/clef-flash-9b`, `bespokelabs/nimble-9b-v2`) sees one question at a time, the same way it is trained.

## Images

These base models also read images in the state (see [Images](https://endor.thetokencompany.com/docs/decisions#images)). Each one reads them as its publisher's code does, and an image costs input tokens:

| Model id | Tokens for one image |
|---|---|
| `autotrust/gev-26b` | About 270 (at most 282), at any size: the model scales large images down |
| `cloudflare/clef-27b`, `cloudflare/clef-flash-9b` | Grows with the size up to 1 megapixel: about 265 at 512x512, 775 at 1024x768, and at most 1,033 for any larger image |

For `cloudflare/clef-27b` and `cloudflare/clef-flash-9b`, the counts include 4 to 6 tokens for the text `[image N]` that marks the image's place in the state. Text that you put with an image, such as its key in an object, counts as text.

A question can have at most 16,384 tokens, images included. Images of any resolution work. Each base model scales an image to the size it reads and keeps the aspect ratio, so a large image is scaled down and a very small one up. `cloudflare/clef-27b` and `cloudflare/clef-flash-9b` read at most 1024x1024 pixels (1 megapixel) of an image. Their publisher's code reads up to 16 megapixels, so for a larger image their answers can differ a little from that code's. The input tokens count the image at the size the model read. The other base models read only text: a decision with an image fails with `422 unsupported_modality`. The vision part of a base model is not trained: training data cannot contain images yet.

## Cold starts

The decision servers of a base model shut down after a period without decisions. The next decision on that base model, a continuous model on it or a model trained on it waits 1 to 3 minutes while one starts. Rarely used base models start cold more often. See [Cold starts](https://endor.thetokencompany.com/docs/decisions#cold-starts).

## Rules for each base model

- `baselabs/mammoth-1-27b`: any question with 1 to 255 options.
- `perplexity-ai/pplx-decider-v1.2-27b`: any question with 1 to 255 options. It is the only base model with a readout head that you can train (`train_readout=True`).
- `autotrust/jev-v1.1-27b`: any question with 1 to 255 options. Every `score` level needs a description: a `score` is read as a choice between its level descriptions.
- `autotrust/gev-26b` and `autotrust/jev-9b`: a `choice` has 2 to 16 options. A `noul`'s `true`/`false` descriptions are read after its `instructions`. A `score` is read as a choice between its level descriptions.
- `cloudflare/clef-27b`, `cloudflare/clef-flash-9b` and `jaredpalmer/kev-9b`: any question with 1 to 255 options.
- `eldanring/winnow-12b`: a `choice` has 2 to 64 options.
- `alibiserikbay/jevk5-9b` and `alibiserikbay/jevk5-4b`: each question needs `instructions`. A `choice` has 2 to 16 options.
- `vllm-sr/decision-2.0-lux-9b` and `vllm-sr/decision-2.0-nox-4b`: each question needs `instructions`. A `choice` has 2 to 255 options with non-empty keys. Each `noul` description you give, and every `score` level, needs text.
- `akhilaaa3/jev-omni-12b`: a `choice` has 2 to 255 options.
- `bespokelabs/nimble-9b-v2`: `instructions` may not be blank. A `choice` has 2 to 255 options with non-blank keys. Option and level descriptions are text, not JSON.
- `mapika/decider-4b` and `mapika/decider-2b`: a `choice` has 2 to 255 options. Each question needs `instructions` (a `noul` without `instructions` must describe `true` or `false` in its `criteria`).
- `fastino/gliner2.5-decide`: 64 options maximum. It reads 512 tokens per question: a longer state is cut at a word to fit, and the decision's `warnings` say so (`state_truncated`); training reads the same cut state. The `instructions` and options must fit on their own.

A question that does not fit fails: a decision with `422 invalid_options`, a training call with `422 invalid_datum`.

## Compare models

Evaluate base models and the models you trained on the same labeled rows, a [dataset](https://endor.thetokencompany.com/docs/data-format) or rows sent with the call:

```python
import endor

client = endor.EndorClient()
for model in ["mapika/decider-2b", "autotrust/gev-26b", "router-2"]:  # two base models and one model you trained
    ev = client.evaluations.create(model, "heldout").result()
    print(model, ev.results["overall"]["accuracy"])
```

## Other pages

- [Overview](https://endor.thetokencompany.com/docs/index.md): What Endor does: you train decision models on your labeled data in custom projects with the SDK, Endor runs the GPUs, and you call them by name. Continuous models are for invited organizations.
- [Quickstart](https://endor.thetokencompany.com/docs/quickstart.md): Start here: install the SDK, measure base models on your data, train a model in a custom project, evaluate it, promote it and call it.
- [Core concepts](https://endor.thetokencompany.com/docs/concepts.md): Organizations, continuous models and their production and preview versions, names, base models, custom projects, datasets, runs, evaluations and futures.
- [Custom projects](https://endor.thetokencompany.com/docs/training.md): Custom projects (custom_models in the SDK and API): train a model with the SDK, save, promote to production, call, download; the training loop in detail.
- [Continuous models](https://endor.thetokencompany.com/docs/continuous-learning.md): Continuous models (projects in the SDK and API), only available to invited organizations: create one, call its production version or its preview, auto-promote, promote and roll back versions, feedback, price.
- [Decisions](https://endor.thetokencompany.com/docs/decisions.md): Decisions with the SDK and over HTTP, model names, giving feedback on them, TypeSafe clients, cold starts, errors.
- [Billing & limits](https://endor.thetokencompany.com/docs/billing.md): Prices, the prepaid balance, usage and limits.
- [Data format](https://endor.thetokencompany.com/docs/data-format.md): Decision rows, question types, hard and soft labels, datums and limits: the data for custom projects.
- [API reference](https://endor.thetokencompany.com/docs/api.md): Each /v1 endpoint: method, path, body fields, response fields and errors.
- [Python SDK](https://endor.thetokencompany.com/docs/sdk.md): The Python SDK (0.9.0): client, continuous models (client.projects) and versions, custom projects (client.custom_models), datasets, runs, evaluations, futures, data helpers, recipes, errors, CLI.
- [Updates](https://endor.thetokencompany.com/docs/updates.md): Changes to the API and SDK, newest first, and when old names and endpoints stop working.
- [Index](https://endor.thetokencompany.com/llms.txt): every page and the API schema.
