Open as Markdown

Base models

Endor serves 18 open decision models, ranked on the 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: client.custom_models.create("router-2", base_model="mapika/decider-2b"). Which one to choose: Choosing a base model. To measure an untrained base model on your data, evaluate it (see Compare models). Or call a base model directly by its id, owner/model: model="mapika/decider-2b" (see Call a base model directly), at the price in the table.

A continuous model (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 idProviderSizeOptions per questionMax LoRA rankDecisions, per 1M input tokensIn a continuous modelIndex rank
baselabs/mammoth-1-27bBase Labs27B25564$0.042$0.063=2
perplexity-ai/pplx-decider-v1.2-27bPerplexity27B25564$0.042$0.063=3
autotrust/jev-v1.1-27bAutoTrust27B25564$0.042$0.063=3
cloudflare/clef-27bCloudflare27B25564$0.042$0.063=14
autotrust/gev-26bAutoTrust26B (4B active)1664$0.042$0.063=15
eldanring/winnow-12bEldanRing12B64256$0.02$0.03=21
vllm-sr/decision-2.0-lux-9bvLLM Semantic Router9B255256$0.02$0.03=21
alibiserikbay/jevk5-9balibiserikbay9B16256$0.02$0.03=22
cloudflare/clef-flash-9bCloudflare9B255256$0.021$0.0315=23
akhilaaa3/jev-omni-12bakhilaaa312B255256$0.02$0.03=23
autotrust/jev-9bAutoTrust9B16256$0.02$0.03=25
bespokelabs/nimble-9b-v2Bespoke Labs9B255256$0.02$0.03=25
vllm-sr/decision-2.0-nox-4bvLLM Semantic Router4B255256$0.01$0.015=26
jaredpalmer/kev-9bjaredpalmer9B255256$0.04$0.06=26
alibiserikbay/jevk5-4balibiserikbay4B16256$0.01$0.015=30
mapika/decider-4bMapika4.7B255256$0.01$0.015=30
mapika/decider-2bMapika1.9B255256$0.007$0.0105=39
fastino/gliner2.5-decideFastino0.5B64256$0.005$0.007551

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 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). Each one reads them as its publisher's code does, and an image costs input tokens:

Model idTokens for one image
autotrust/gev-26bAbout 270 (at most 282), at any size: the model scales large images down
cloudflare/clef-27b, cloudflare/clef-flash-9bGrows 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.

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 or rows sent with the call:

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"])