MNIST experiment notes
한국어English

Machine-assisted English translation. Original code, logs, and model inputs are shown as recorded; consult the Korean article if wording is unclear.

background knowledge & API Guide · As of October 2026

Why was Jev in the spotlight?
What can we create?

If you are confused about the model name, learning tool, and API mixed together
Let's start by summarizing the relationship here.

An alternative to Clef is Model and API MapYou can compare at a glance. price and performance Comparison table by model, the experimental candidate is MNIST RecommendationYou can see it here. First, we read the background and examples, and later we look at actual requests and responses. If you want to see the code Web APIme Unsloth Python APIYou can skip straight to .

Official Announcement · Developer Report · Research PaperLearn about relationships first ↓

01 / Big picture

Jev·Clef is the model, Unsloth is the implementation and teaching tool

nameWhat is it?Relationship to this tutorial
Jev
TypeSafe AI
A model that receives situations and questions and returns a judgment in a defined format. Used with TypeSafe API.‘Choose actions instead of generating sentences’ is the starting point of the approach.
Clef
Cloudflare
A family of decision models whose weights and implementation are disclosed. Provides a question format compatible with Jev.Refer to the method of attaching the head to the base model.
UnslothFrameworks and apps that load models, train them further, run them, and deploy them.Qwen3.5-0.8B was used for learning by attaching the judgment part and LoRA.

Basis: Introduction to TypeSafe · Clef model card · About Unsloth

It is not a structure that calls three things one after another.

The MNIST experiment on this site does not call the Jev server. A Qwen-base model trained directly with Unsloth looks at the picture and chooses an action. It is not an evaluation of the completed Clef model deployed by Cloudflare. actual model code

How is it different from a typical classifier?

Traditional classifiers usually output categories determined during training. The decision model covered here is Including the question to be judged and the meaning of the options in each requestThis is the feature. For example, in ‘Which team should I send it to?’, the option is given as ‘Payment/Technology/Other’, or in other requests, change it to ‘Archive/Review/Delete Candidate’. It must be separately verified whether the new options are judged well.

It may look similar to LLM, which outputs JSON. The difference lies in the JSON file format itself. Do you sequentially generate free sentences internally, or do you score points directly on the accepted answers?It is in Even an answer that is correct in type may be wrong in content. Concept source ↗

02 / Appearance and spread

The starting point of this interest was TypeSafe's Jev reveal

‘First’ must be said in terms of scope. Classification, scoring, and policy selection themselves are old machine learning problems. here Public flow surrounding a universal typed decision API in fall 2026covers. It is not possible to determine the inventor of the entire decision model based on the chronology below.

2026. 09. 15. · Model released

Diogo Almeida and TypeSafe AI introduce Jev

Founder Diogo Almeida brought rapid structured judgment to the forefront under the name ‘System One’. We also introduced a probability calibration-centered learning method called RLCD. Speed ​​and cost advantages should be read as comparative claims made by the presenter, and are not multipliers that apply to all tasks.

Initial announcement of TypeSafe ↗
2026. 09. 21. · Expansion into development tools

LangSmith adds Jev to evaluator function

The agent's records were read and connected for the purpose of evaluating whether personal information was exposed or the quality of responses. This is an example of how models used outside of chat found their way into specific development tools.

LangChain Announcement ↗
2026. 10. 01. · Public weights and implementation

Cloudflare unveils Clef and Clef-flash

In addition to a compatible API, weights that can be run directly have been released. Cloudflare says the previous DiffusionGemma experiment originated from independent research by Matt Mastracci. We need to look at both those who made the product public and those who contributed to its public implementation.

Cloudflare Announcement ↗
2026. 10. 05.–07. · Multimodal and compact models

Liquid AI's d1, followed by d1-3B·d1-omni-600M

After introducing d1, which judges text and images, we presented the results of running public weights and edge equipment. The omni-600M was introduced as an initial research checkpoint and should not be interpreted as being as complete as the larger model.

d1 announcement · Announcement of public model ↗

Recent flows can be read in three directions

Summarizing the above data, ① Entrust classification, evaluation, and branching to LLM, ② Broaden input beyond text to include images, etc., ③ Run public models locally and learn additionally for each task.This is a flow that expands to . This is a composite interpretation of the data and is not a statistic that aggregates the entire market. Unsloth's decision model learning and serving support also falls into the third direction. Study Guide ↗

System One is a name that understands the approach the product promotes.

This metaphor distinguishes between quick judgment and slow deliberation. The name alone does not mean that it has human-like intuition or that it can solve all reasoning problems. Conceptual explanation of Vercel ↗

03 / Reported uses and limitations

Let's see where it was used and what was confirmed.

Product Integration · 2026. 09. 21.

LangSmith evaluating agent records

Use Jev as an evaluator to give structured feedback to your performance notes. For example, ‘Has sensitive information been exposed?’ is asked with a yes/no probability, and ‘What is the user’s intention?’ is asked with an option.

Scope of confirmation: Feature disclosure and usage examples. The results do not guarantee human-like accuracy in all evaluation tasks.

Official report ↗
Developer experiment · 2026. 09. 18.

Choosing a ‘movement policy’ in Pokemon

Michael Sugimura of 2389 Research placed Jev in the role of choosing which movement policy to use, rather than using him to find the route for each movement. The high-level goal is handled by another model, and the actual path calculation is left to the code.

Scope of verification: Report of developer's own initial experiments. It would be inaccurate to present it as an example of ‘Jev solved the entire game by just looking at the screen.’

Developer's original text ↗
Company internal test · 2026. 10. 01.

Clef classifies websites

Cloudflare has introduced a test where its threat intelligence team reads websites and determines their categories. Combining import, rendering, and classification, Clef reported a time of 2.2 seconds, compared to LLM's 4.7 seconds.

Scope of Confirmation: The specific workflow measured by the company. It is not a pure inference time of the model itself or an independent security certification number.

Cloudflare original text ↗
Independent evaluation · Submitted on September 29, 2026

Jev evaluation on 37 datasets

Deußer, Sparrenberg, and Sifa evaluated classification, routing, and comprehension on 346,009 requests. In addition to good results, we also report differences across low-resource languages, fine-grained categories, and rating scales. For binary judgments, threshold adjustment was important.

Confirmation scope: Fixed prompt and comparison model conditions of Jev 1.13.0 and thesis. arXiv preprint.

Evaluation Paper ↗
Independent Security Assessment · Submitted on October 13, 2026

Even if the format is fixed, whether or not it is resistant to attacks is different.

Li et al. applied the same attack input to Jev·LLM evaluator·dedicated classifier. Jev was strong on some rule-based checks, but reported missed cases and attack impact in his phishing determination.

Scope: Results from four tasks and corresponding attack configurations. The conclusion that ‘prompt attacks are impossible because sentences are not generated’ does not hold. arXiv preprint.

Comparative paper ↗
Manufacturer Demo · 2026. 10. 05.

From filtering support requests to inspecting circuit boards

Liquid AI evaluated d1 on six application challenges. The visual inspection provided images of both the healthy part and the object to be inspected. The direction is to narrowly define the question and use it to judge the image.

What we see: Manufacturer demos and comparisons performed once with each application on each model. This is different from the on-site defect detection performance confirmed through repeated experiments.

d1 Demonstration and measurement conditions ↗

Additional Guides / Model and API Maps

What else is there besides Clef?

Jev·Clef is not alone in this field. Commercial API, public weight, learning/serving implementationIf you look at them together, they are divided as follows. This is a compilation of the major series confirmed by primary sources as of October 30, 2026, and is not an exhaustive list of all derived checkpoints.

“Open API” is different from “Open Model”.

Even commercial APIs that anyone can call by issuing a key may have a private model inside. Conversely, you can also download public weights and use them on your own private server. OpenAPISince the term also refers to the API specification format, here it is divided into ‘hosting API’ and ‘public weight’.

A. Model used as service API

Below are products with verified hosting APIs. We do not assume that products whose disclosure weights cannot be separately confirmed are permanently private.

Model/DeveloperHow we use and discloseIf you understand it easily
Jev · TypeSafe ↗APIChoice·truefalse·rating judgment. A reference point for the System One format introduced in this tutorial.
OpenAI Decisions ↗APISupports predicate·choice·score. It is separate from the general chat API and does not send Jev's request JSON as is.
Microsoft-Decision-1 ↗Foundry · OpenRouterJudgment model based on Qwen3.5-9B. It is used for classification, priority, verification, etc., and requires distribution settings in Foundry.
GLiDE · Fastino ↗APIAn approach to writing additional inferences to uncertain questions. This is a different product from the public model GLiNER2.5-Decide below.
Mercury Decide · Inception ↗APIThis is a product that receives questions with a set situation and type and returns a judgment and probability.
Nimble · Bespoke ↗API · Waiting for subscriptionHosting judgment model. At the time of confirmation, new sign-ups were temporarily suspended and you were placed on a waiting list.
Parallel Decisions ↗Includes API and web basisLook for material on the web and use your judgment based on the source. Search time and cost must also be compared with models that only score provided input.
Span-01 · Respan ↗API · Record evaluationEvaluates whether a specific action occurred in the agent execution history. It focuses on observation and evaluation tasks rather than a general-purpose selection model.

B. Series to look at API and public model together

Even if it is the same brand, this does not mean that the size, version, and performance of the model called from the server and the model downloaded are the same.

Model/DeveloperHow we use and discloseIf you understand it easily
Clef · Cloudflare ↗Workers AI + public weightsYou can call it hosted or run the public model directly. Check the executable code and license for each model.
d1 · Liquid AI ↗Hosted + Partially Open ModelDistinguish between the hosted d1 family and the public d1-3B·d1-omni-600M. omni is an early research model and the public model is licensed by Liquid.
pplx-Decider · Perplexity ↗API + public checkpointsThe API guides v1.2 and Flash v1.2. Public v1.1-27b is Apache-2.0 and must preserve dedicated decision and attention settings. It doesn't even mean revealing the weights of the latest API models.
Span-02 · Respan ↗Announcement of API + public modelIt deals with typed judgment and inference budgets. Manufacturers also provide public weights. Please double check the model card and license for the actual downloaded version.

C. Open model/implementation to run or learn directly

Public weight means you can receive the file and run it. This does not mean that all training data has been made public, and even if hosting costs disappear, equipment and operating costs remain.

Model/DeveloperHow we use and discloseIf you understand it easily
Laya · Convai Innovations ↗Apache-2.0Small encoder series. Distinguish between English ModernBERT and multilingual mmBERT variants. The performance of the basic model and the typed-decisions specialized model is also different.
Kev · Jared Palmer ↗Public Weights CodeImplementation of the Qwen series with a decision unit attached. It's a great way to compare models by size locally and look at their running code.
GLiNER2.5-Decide · Fastino ↗Apache-2.0 · 340MSmall model that supports CPU execution. It covers not only judgment but also constraints between span·relationship extraction and output, and full·LoRA learning.
H2O-Lightning-4B ↗Apache-2.0 · 4BThis is a text/image judgment model based on Qwen3.5-4B. Check how the model card's judgment is implemented first, rather than an example for a general chat model.
vLLM Semantic Router · Decision ↗Open model + implementation projectThis is a series of decision models and execution environments to be used in routing, etc. A distinction is made between the inference engine itself, called vLLM, and the individual decision models.
Strands Decider ↗Open model + learning/serving codeThis project provides everything from a learning pipeline that attaches a judgment unit to evaluation and a local server. It is separate from Perplexity’s Decider.

Additional confirmation: Perplexity's current API and version information · List of Liquid’s Hosting Models · Respan change history

So what should we compare first?

  • To add judgment function without running the server: Hosting APIs such as Jev·OpenAI Decisions·Microsoft-Decision-1·GLiDE·Mercury Decide are compared using the same evaluation data.
  • To start with small text classification on my computer: You can start by looking at encoder models such as Laya·GLiNER2.5-Decide. Check whether Korean language is supported and actual Korean accuracy separately.
  • To pick an action by looking at an image like in this MNIST experiment: Check the corresponding version of Clef·d1·H2O-Lightning·pplx-Decider that supports image input, and check the support range of Unsloth or Strands for direct learning.
  • If you need up-to-date web information to help you decide: Like Parallel, compare services including search. Comparing model inference times alone misses differences across tasks.

Can I replace it by just changing the API address?

This isn't always the case. Jev series state / questions / nouland OpenAI's input / questions / predicateAlthough the meaning is similar, the JSON structure is different. Cloudflare also has a different outer response wrapper. Request transformation, response transformation, error handling, probability threshold reassessmentis required. Don’t just look at the word ‘compatible’ and treat the numbers as having the same meaning.

In particular, Perplexity explains that even if you send an old model name in the API, you can connect to the new version. If it's a repro experiment, you should check the change history and actual delivered version, not just the name. Version/Charging Rules ↗

Are general LLM/classifier/router alternatives?

yes. Alternative methods include requesting structured output from general LLMs such as GPT·Claude·Gemini, learning the Qwen·Llama series directly, or using a BERT classifier. However, not all are ‘dedicated decision models’ in this table. First decide whether you need a free explanation, just a fixed category, or whether the options will change with each request.

Distribution APIs like OpenRouter and learning tools like Unsloth are also distinct from the models themselves. Even though the model list may seem large, there are cases where multiple services provide the same weights.

Comparison / Price · Speed · Accuracy · Korean

Look at the numbers side by side, but also read the measurement conditions

Confirmation date 2026. 10. 30. · 18 series were divided by version and execution method, and an additional Korean learning model was added. The numbers below are compiled from public data and are not the result of new API calls or model benchmarks.

Four criteria for reading tables
  • Price: Unless otherwise noted, USD / input 1 million tokens. The ‘no call fee’ in the public model does not mean the total cost is 0 won.
  • Speed: p50 is the median, p95 means 95% of requests will finish within that time. On-device inference, commercial APIs, and customer cases are represented by different measurements.
  • Accuracy: DI is the Decision Index score, not the general % correct answer rate. If the versions, divisions, tasks, and executors are different, do not use them for ranking comparison. F1 is also different from the percent correct.
  • Korean: ‘Unconfirmed’ does not mean impossible. The multilingual ability of the base model alone did not guarantee the Korean language quality of the judgment model.

On narrow screens, try sliding the table horizontally. Sources for each model are in the first column.

Public figures and confirmation ranges for each model — not an accuracy leaderboard
Model/SourcepriceSpeed/Measurement ConditionsAccuracy/Evaluation ConditionsBasis for Korean language supportDirect image input
Jev 1.14$0.042 / 1M input · OpenRouter100 ms p50 · OpenRouter Displays the most recent week, mixes all regions/inputsAccuracy under same conditions in 1.14 not confirmed. Doesn't transfer old 1.13 scores to newer version.Evaluation and support details for each Korean language unconfirmedcheck support
OpenAI Decisions · GPT-6 Luna$0.10 / 1M input; Cache read $0.01 · Write and local surcharge not included<280 ms p95 · Sierra business case, not a full service guaranteeAccuracy reporting like Responses API across 30 insurance policy examples from Box. Unified benchmark figures unconfirmed.Evaluation and support details for each Korean language unconfirmedcheck support
Microsoft-Decision-1$0.042 / 1M input · OpenRouter200 ms p50 · OpenRouter Show last weekClaimed top performance in a comparison of 36 benchmarks from Microsoft. Common accuracy % not available in validation data.Mention of multilingual evaluation / Unconfirmed figures for each Korean languageFor text
GLiDE$0.04 / 1M inputSame conditions, absolute delay time unconfirmedDI 0.2.1: 64.81 points · Fastino self-run, as of release 9/30. Distinguished from the latest banner scores.Evaluation and support details for each Korean language unconfirmedcheck support
Mercury Decide$0.02 / 1M input · At the time of 50% discount displayComparable figures unconfirmed in official dataCommon benchmark figures unconfirmed in official dataEvaluation and support details for each Korean language unconfirmedUnconfirmed in this investigation
Nimble-v4 / v4-maxPublic unit price unconfirmed · Waiting for new subscriptionComparable figures unconfirmedDI public: 63.70 / 68.46 points · Bespoke self-run 10/12, unlisted resultsUnconfirmed evaluation by Korean · Text modelFor text
Parallel Decisions$1 / 1,000 call · Token charging and unit are differentIncludes web search. Same conditions p50/p95 not confirmedThe challenge of finding web evidence. Unidentified common values to compare with image number judgmentEvaluation and support details for each Korean language unconfirmedUnconfirmed in this investigation
Span-01$0.02 / 1M input; Lite is free within daily limitComparable figures unconfirmedBehavioral evaluation 0.806 · Respan's own trace benchmark, not interpreted as a simple percentage of correct answersEvaluation and support details for each Korean language unconfirmedUnconfirmed in this investigation
Clef 27B$0.24 / 1M input · Workers AI; Local equipment costs209.3 ms median / 238.6 ms p95 · Running inside Cloudflare DI 0.2.1BANKING77 macro-F1 94.2% · Same internal execution. Not MNIST figures.Evaluation and support details for each Korean language unconfirmedcheck support
Clef-flash 9B$0.038 / 1M input · Workers AI; Local equipment costs38.8 ms median / 122.4 ms p95 · Running inside Cloudflare DI 0.2.1BANKING77 macro-F1 90.9% · Same internal execution. Public models also support images.Evaluation and support details for each Korean language unconfirmedcheck support
d1 · Hosting$0.02 / 1M input · d1 from Liquid price listSame condition value of API not confirmed. Different from local 3B speed below.Does not equate public 3B and server models. Comparison by exact version is required.Evaluation and support details for each Korean language unconfirmedcheck support
d1-3B · Public modelLocal equipment fee + Liquid license termsRTX 4090: Text 8 ms / 384px image 17 ms · Single shot, developer measurementDI 0.2.1 public: 48.57 points · Liquid report. Image MNIST performance not measured.Multilingual benchmark available / Korean results unconfirmedcheck support
d1-omni-600MLocal equipment fee + Liquid license termsEarly research model. The 3B rate from the same announcement does not apply.DI 0.2.1 public: 15.95 points · Liquid reportEvaluation and support details for each Korean language unconfirmedcheck support
pplx-Decider v1.2 / Flash v1.2$0.02 / $0.01 per 1M input · 27B / 4B eachSame condition speed of current version not confirmedCommon evaluation values for v1.2 unconfirmed. Separated from the public v1.1 scores below.Evaluation and support details for each Korean language unconfirmedcheck support
pplx-Decider v1.1-27b · PublicLocal execution: No call fee / Separate equipment and powerSame condition speed not confirmedDI 61.56 points · Perplexity model card self-reported. Requires dedicated attention/readout settings.Evaluation and support details for each Korean language unconfirmedcheck support
Span-02Enter $0.01 / 1M; The public version has equipment costs.Set inference budget with budget_ms. That value is not the actual round-trip delay time.DI 0.3: 61.2 points (inference off) / 64.1 points (no time limit) · Respan executionEvaluation and support details for each Korean language unconfirmedcheck support
Laya · English basic versionLocal execution: No call fee / Separate equipment and power39.5 ms · T4, 1 question, developer measurementMASSIVE English intent: 78.3% · Comparison of developers. Not accurate for all tasks.For English. Select the multilingual version for KoreanFor text
Laya MultilingualLocal execution: No call fee / Separate equipment and power32.8 ms · T4, 1 question, developer measurementMASSIVE 51 language average accuracy 36.6% · 20 choice experimentKorean MASSIVE 49.0% · Same conditions English version 11.0%, developer reportFor text
laya-ko · Community Additional LearningLocal execution: No call fee / Separate equipment and powerAuthor's explanation: about 30 ms CPU · CPU model and quantile unknownKLUE-YNAT 83.4% (n=1,000), NLI 81.5% (n=1,000) · Author evaluationKorean language specialization. Results of learning and validation with KLUE trainFor text
Kev · Public SeriesLocal execution: No call fee / Separate equipment and powerUnconfirmed figures for current version/equipmentComparison is possible only if the model size and checkpoint are fixed. No single accuracy across series.Evaluation and support details for each Korean language unconfirmedUnconfirmed in this investigation
GLiNER2.5-Decide 340MLocal means equipment costs; Fastino API $0.03 / 1M input38.3 ms p50 V100 / 167.3 ms p50 48-vCPU Xeon · Short articleFast Decisions 17 dataset average 60.1% · Fastino self-assessmentOfficial documents are classified in English. Separate from the multilingual GLiNER extraction modelFor text
H2O-Lightning-4BLocal execution: No call fee / Separate equipment and power28.2 ms p50 · L40S, two-way, text 100–300 tokens · 1 questionDI 0.3 text 63.21 / vision 69.87 points · H2O self-execution. The preceding speed is a short text condition.Evaluation and support details for each Korean language unconfirmedcheck support
vLLM-SR Decision 1.0 · Lux-9BLocal execution: No call fee / Separate equipment and powerAbsolute comparable figures not confirmed in confirmed announcementsWeighted score of 54 tasks and 3,766 decisions: 76.94 · Development team measurement. DI and other measures.Evaluation and support details for each Korean language unconfirmedFor text
Strands Decider · 2BLocal execution: No call fee / Separate equipment and power115 ms median · RTX 3090, project description; Doesn't generalize to image speedJevBench evaluation provided. Model cards are checked for each release; scores from other learning experiments are not used as representative values.Evaluation and support details for each Korean language unconfirmedcheck support

How much will the API cost for a small MNIST experiment?

Assumptions: 10,000 requests × 1,000 tokens billed per request = 10 million tokens. At this time, only the input fee is calculated as follows. This is not an actual estimate, but a calculation to understand the unit price, and varies depending on image tokens, retries, cache, taxes, and payment fees.

$0.10pplx Flash v1.2
$0.20pplx v1.2 / d1
$0.38Clef-flash
$0.42Jev 1.14
$1.00OpenAI Decisions · No cache
$2.40Clef

The price source is the link for each model in the table above. Perplexity Flash recharges the state for each question if you ask multiple questions in one request. Don't apply single question-based calculations to multi-question requests. Official Billing Rules ↗

Additionally, the static action evaluation of ‘1,000 sheets Even if the picture is small, the service can internally enlarge it and tokenize it.

Recommended / Apply to this MNIST experiment

Maintain a baseline model and compare small public models and APIs one by one

The recommended order for this experiment is Picture + current number → −1 / 0 / +1It is a judgment tailored to this purpose. The MNIST performance of the candidates below has not been newly measured.

First, the current model is the basis for comparison.

The stored Qwen3.5-0.8B + judgment unit/LoRA experiment is based on the first 1,000 sheets of the official MNIST test and 10,000 judgments made with 10 current values. Action accuracy 97.70%, episode success rate 93.62%was recorded. Single p50 on RTX 5070 Ti Laptop 12GB 93.33 ms, p95 97.97 msIt is. The image was pre-read and resized, and model loading, disk, and network are excluded. The Korean condition was not measured.

Saved evaluation results · Speed measurement conditions · Original equipment/execution environment

1st place · Comparison of small public models

d1-3B

Since images are received directly and there are public weights, it is good to compare the current 0.8B model with the ‘untrained general-purpose judgment model’. The developer's data includes conditions for image input speed, making it easy to plan measurements. However, you should not use the 4090's 17 ms as the expected speed of your current laptop.

First, compare only the inferences with the formal runtime, leaving further training as a separate step. It has not been confirmed that you can learn from the existing Unsloth code by just changing the name.

Image support/open model data ↗
2nd place · 4B public model comparison

H2O-Lightning-4B

Given that it is a Qwen-based multimodal judgment model, it is worth comparing with the current experiment. It is Apache-2.0 and image judgment evaluation is also publicly available. However, the recommended run uses a dedicated vLLM build/shim, so installation and verification tasks are greater than the current environment.

Precision and runtime must be checked to determine whether it can run on Windows·12GB. The number of parameters alone does not guarantee that they will fit into memory.

Execution conditions/image evaluation ↗
3rd place · API comparison without installation

pplx-Decider Flash v1.2 → Clef-flash

Both have confirmed image input. If you have one behavioral question per request, Flash v1.2's lower input cost makes it a good candidate for your first API comparison. Clef-flash is a comparison group that checks for connections to the families covered in this tutorial.

If complex wrong answers remain, try adding pplx 27B or OpenAI Decisions. This is a recommendation based on unit cost and connection convenience and does not determine a winning model for accuracy.

Perplexity image/rate · Clef-flash image/rate ↗
When comparing additional experiment and learning structures

Strands Decider 2B, and CNN baseline

Strands has a vision option and learning code, so it is a candidate for comparing ‘how the judgment part is learned.’ Distinguish it from dedicated MNIST training as it uses the visual capabilities of checkpoints that are not trained on images.

To evaluate just the number recognition itself, predict the number with a small CNN and write it as code. sign(예측 숫자 − 현재값)Also include the baseline for calculating . You can determine whether you made a mistake in image recognition or if you made a mistake while applying behavioral rules. CNN performance has not been measured yet.

Strands’ vision support ↗

Low-priority model in this image experiment

Laya·laya-ko·GLiNER2.5-Decide is for text judgment, so it is not suitable as a comparison group for directly inserting images. If you add OCR or another number recognizer in front, it becomes a different experiment called ‘recognizer + judgment model’. Web searches in Parallel are also not needed for MNIST. Clef 27B·Public pplx 27B can be used as an API for comparison, but it is too burdensome to use as the first local candidate on a current 12GB laptop.

For Korean comparison, you can add it like this:

Keep the same image, current value, and option ID, but change only the questions and explanations to English/Korean. Example: “The current number is 3. Choose your action to get one step closer to the number in the picture. Stop only when it is the same.” If you send it in Korean, you should not write the correct answer number in the state.

  1. We use the same test.

    The saved 1,000 sheets and the current value 0–9 are used identically, and additional learning is separated from the test picture. Record input resize, selection order, and model version.

  2. Accuracy and termination success are measured separately.

    View action accuracy, rollout success rate, and incorrect stop/cycle rate together. NLL/Brier, etc. are recorded by distinguishing between being wrong with a probability of 0.1 and being confidently wrong with 0.99.

  3. Speed is measured on actual usage route.

    API records p50/p95 including image encoding and network, and local records single and batch throughput including preprocessing separately. It doesn't just report pretty numbers, excluding errors and retries.

  4. Let's look at the influence of the Korean language in numbers.

    Korean Accuracy − Find the %p difference in English accuracy and the behavioral discrepancy rate between the two languages. When interpreting the difference, the 10 states of the same picture are related to each other, so the confidence interval is calculated on an image-by-image basis.

What we've added now are data-based comparisons and experimental recommendations. Paid API calls, new model download/training, and Korean performance measurements were not performed.

04 / Understanding Clef

Clef is an open model that ‘scores the options for each question’

After the Qwen-base model reads the input, Clef joint schema headIt is a structure that calculates the score of the question and the allowed options. Convert the score for each question into a probability. There is no need to create free descriptive sentences first.

Situation + Question
Text, image, etc.
→
Qwen base model
Compute representation of input
→
judgment department
Probability by choice

In the confirmed model card, Clef is based on Qwen3.8-27B, and the weight and judgment part implementation is released as Apache-2.0. A smaller variant is Clef-flash. You can check the exact model configuration and conditions at the time of use based on each model card. Model Card ↗

Distinguish between ‘Clef method head’ and ‘Cloudflare/Clef complete model’.

Our experiments attached a new judge unit to the smaller Qwen3.5-0.8B. Using the structure does not mean that the pretraining results, performance, and calibration characteristics of the Cloudflare model are transferred as is.

Additionally, ‘Jev API compatibility’ means that questions and responses can be exchanged in a similar format. This does not mean that the structure surrounding the server address, authentication, response, and actual probability value are the same. Guide to using Workers AI ↗

05 / Unsloth Feature Map

Tools to select, train, save, and run models

Unsloth is not the name of one specific model. There is a training framework that you can use as Python code, and there is also a desktop app that handles running and training models on the screen. official introduction · Desktop Features ↗

functionWhat can you do?In this experiment?
Model loading/inferenceLoad supported language and vision models and run them locallyQwen VLM and processor loading
LoRA / QLoRASupports learning some additional weights and reducing memory usage with quantized loading4bit-base model + LoRA learning
Full fine tuning/pretrainingLearn a wider range of weights from supporting models and environmentsNot used
GRPO·DPO, etc.Supports learning procedures with rewards or preference dataNot used. Here, supervised learning gives the correct action.
Decision model learningAttachment of new judgment unit, conversion of answer data, learning, evaluation and probability calibrationCore features. Described in the following API section:
Save/ExportAdapter storage, use distribution formats such as merge and GGUF in supported pathsSaving and reloading LoRA and decision section
Local Decision APICompatible HTTP API provided from Desktop to Laya, Clef, etc.In this experiment, Python is directly called

Functional basis: Project README · RL Guide · Save GGUF · Decision API

There is a difference between ‘Unsloth supports’ and ‘all combinations on all models’. For example, the decision API implementation preserved in this repository refuses to load 8 bits. Laya and Clef series also have different 4bit support paths. You should not just look at the generic export description for LLM and assume that custom judgments will run on any inference engine. Confirmation of implementation at the time of experiment ↗

06 / API common language

The state is the data to be judged, and questions are the standards to be judged.

For example, let’s say you receive an inquiry saying, ‘The password reset email has not arrived.’ This is stateIt is. Which team will be in charge, whether there is a possibility of failure, and how big the impact will be on the business. questionsPut it in . You decide the ID of the question yourself.

Question typeshape of the questionValue to read from response
choiceOne of several options. criteriais option ID → descriptionchoice, by choice probabilities, confidence
noulA yes/no question such as ‘Is this an account access issue?’noul: Probability of yes, 0~1
scoreList of steps described from low to highscore, step by step probabilities, legend, confidence

Specifications by type: Choice · Noul · Score

score 1.4 is not ‘140% chance of being correct’

If there are three stages, the stage numbers are 0·1·2. If the probability is 0.1·0.4·0.5, the score is 0 × 0.1 + 1 × 0.4 + 2 × 0.5 = 1.4It is. It can be a decimal number since it is a weighted average of the step positions. As the grade description changes, the meaning of the same 1.4 also changes.

Probability and confidence are not the same field

The probability of the ‘Technical Team’ option and the confidence of the entire response are read separately. In particular, Unsloth's Laya serving and Jev have different confidence calculations, so the existing threshold should not be transferred as is. You will need to reassess from the same work materials. Differences in compatible APIs ↗

Are there types like Image and Box?

The current TypeSafe document also has a separate Box type that inputs an image and returns the area within the image. As of confirmation date, both are experimental features and require the TypeSafe-Danger-Zone-Images: true header to be used. The three types above are the common introductory scope of this article. You must check the dedicated documentation for image transmission formats and support models, and Python's PIL object cannot be directly inserted into HTTP JSON. Images · Box

07 / Remote model call

Code to send the same question to Jev and Clef

Below is a newly written Python example to illustrate the request format. requests You will need the API key for the package and its service. This page does not run the actual API or take any keys.

① First define the question

Common examples · Python
state = "I cannot sign in because the password reset email never arrives."
questions = {
    "route": {
        "type": "choice",
        "instructions": "Select the team best suited to resolve this request.",
        "criteria": {
            "account": "Sign-in, account access and password recovery",
            "payment": "Charges, receipts and payment methods",
            "other": "Requests outside account access and payments"
        }
    },
    "access_issue": {
        "type": "noul",
        "instructions": "The user is unable to access their account."
    },
    "impact": {
        "type": "score",
        "instructions": "Assess how much the issue blocks the user's work.",
        "criteria": [
            "Work can continue without any interruption",
            "Some work is blocked but an alternative is available",
            "The user cannot proceed and no alternative is stated"
        ]
    }
}

The option ID is the value the code will read, and the description is the standard by which the model will judge its meaning. Rather than just writing down ‘1, 2, 3’, it is better to explain what each step is. The English text above is an example input and is separate from the Korean explanation.

② Send to Jev REST API

Execute following the previous state·questions
import os
import requests

response = requests.post(
    "https://api.typesafe.ai/v1/systemone",
    headers={"Authorization": "Bearer " + os.environ["TYPESAFE_API_KEY"]},
    json={"model": "jev-latest", "state": state, "questions": questions},
    timeout=30,
)
response.raise_for_status()
result = response.json()
route = result["answers"]["route"]
print(route["choice"], route["probabilities"])
print(result["answers"]["access_issue"]["noul"])
print(result["answers"]["impact"]["score"])

requests.post(..., json=...)handles JSON serialization and Content-Type setting. The result is answers Returning to the question ID requested below. jev-latestis an alias that can be changed, so the experiment record contains the model Leave the value as well, and if you need to reproduce it, choose the fixed version available in your account. HTTP request/response source ↗

How does it change if I use the Python SDK?
# 설치: pip install typesafe-sdk
# 위에서 정의한 state, questions를 재사용합니다.
from typesafe_sdk import TypeSafeClient

with TypeSafeClient(timeout=30) as client:
    result = client.system_one(
        model="jev-latest", state=state, questions=questions
    )
    print(result.answers["route"].choice)

The SDK is TYPESAFE_API_KEY Reads environment variables and returns a typed response object. Don't mix HTTP's dictionary access with SDK's property access. It also provides a default retry policy. Client Specification ↗

③ Call Clef with Cloudflare Workers AI

Same question, different service address and authentication
import os
import requests

account_id = os.environ["CLOUDFLARE_ACCOUNT_ID"]
url = (
    "https://api.cloudflare.com/client/v4/accounts/"
    + account_id + "/ai/run/@cf/cloudflare/clef"
)
response = requests.post(
    url,
    headers={"Authorization": "Bearer " + os.environ["CLOUDFLARE_AUTH_TOKEN"]},
    json={"model": "clef", "state": state, "questions": questions},
    timeout=60,
)
response.raise_for_status()
body = response.json()
if not body.get("success", False):
    raise RuntimeError(body.get("errors"))
print(body["result"]["answers"]["route"]["choice"])

Cloudflare REST API is out there success·errors·resultLeave it. Inside Workers env.AI.run() The example and response access paths are different. You'll also need a model identifier and Workers AI permissions for that account. How to use Clef · REST response format ↗

How do I read a request failure?

In TypeSafe, 401 is authentication, 422 is validation error, such as question format. 429 is a call volume limit, and 529 is a temporary overload, so increase the interval and retry. The REST example above is minimal and does not implement automatic retries. Error codes and retries ↗

08 / Learning the model directly

At Unsloth, we deal directly with Python objects.

From this point on, it is not an API that sends JSON to a web server. Function to upload a model to my computer memory and learn itIt is. The tables and code below are based on the implementation at the time of the experiments preserved in this repository, to avoid mixing up changes in more recent documentation.

callimportant factorResults and Role
FastDecisionModel.from_pretrained()model_name, max_seq_length, load_in_4bit, dtype(model, tokenizer 또는 processor). Loading and judgment unit configuration
get_peft_model()model, r, lora_alpha, lora_dropoutModel prepared for LoRA training
build_dataset()rows, processor, model(items, report). Input conversion and missing/truncation reporting
DecisionTrainer()model, processing_class, train_dataset, args, head_learning_rateLearning Manager. train()Start learning with
for_training() / for_inference()modelSwitch model mode to suit learning and inference
evaluate()model, processor, items, batch_sizeReturns evaluation metrics for the current model
calibrate()model, processor, items, batch_sizeUpdate temperature calibration settings and return indicators
predict()model, processor, state, questions, imagesQuestion ID → Answer. Unlike HTTP, external answersThere is no
model.save_pretrained()storage folderSave learning results. Check in the same example after reloading

Implementation basis: Preserved decision.py · model rapper of experiment · full learning code

Shape of a single line of training data

images is a list of actual PIL image objects
from PIL import Image

image = Image.open("digit.png").convert("RGB").resize((112, 112))
move_questions = {
    "move": {
        "type": "choice",
        "instructions": "Move one step toward the handwritten digit. Stop only when equal.",
        "criteria": {
            "-1": "Decrease the current number by one",
            "0": "Stop at the current number",
            "+1": "Increase the current number by one"
        }
    }
}
row = {
    "images": [image],
    "state": "The current number is 3.",
    "questions": move_questions,
    "gold": {"move": "+1"}  # 예: digit.png의 정답 숫자가 7일 때
}

goldis the correct answer for grading. In real data, the calculation is made by comparing the correct number in the image with the current number. Generalization performance cannot be learned with just the above line. When dividing learning, verification, calibration, and testing To prevent multiple current states created in the same picture from being scattered into different splits Divide into image units.

The order of learning → correction → saving

Below is code showing the flow. train_rowsWow calibration_rowsAssume that is a list of different images prepared in the preceding format. This experiment's environment supports CUDA·BF16, and the complete execution procedure and package version are provided at Reproduction GuideFollow.

Learning framework for illustration purposes · GPU learning is not performed automatically
from unsloth import FastDecisionModel, DecisionTrainer
import torch
from transformers import TrainingArguments

model, processor = FastDecisionModel.from_pretrained(
    model_name="unsloth/Qwen3.5-0.8B",
    max_seq_length=1024,
    load_in_4bit=True,
    dtype=torch.bfloat16,
)
model = FastDecisionModel.get_peft_model(
    model, r=16, lora_alpha=16, lora_dropout=0
)
items, report = FastDecisionModel.build_dataset(train_rows, processor, model)
cal_items, cal_report = FastDecisionModel.build_dataset(
    calibration_rows, processor, model
)
for check in (report, cal_report):
    if check["skipped"] or check["truncated"]:
        raise ValueError(check)
if not items or not cal_items:
    raise ValueError("학습·보정 자료가 비어 있습니다.")

FastDecisionModel.for_training(model)
trainer = DecisionTrainer(
    model=model,
    processing_class=processor,
    train_dataset=items,
    head_learning_rate=1e-3,
    args=TrainingArguments(
        output_dir="work/checkpoints",
        per_device_train_batch_size=32,
        gradient_accumulation_steps=1,
        max_steps=600,
        learning_rate=2e-4,
        bf16=True,
        report_to="none",
    ),
)
trainer.train()
FastDecisionModel.for_inference(model)
metrics = FastDecisionModel.calibrate(model, processor, cal_items, batch_size=1)
model.save_pretrained("work/mnist-adapter")

You can see two learning rates. learning_rateis the trainable components on the base model side, head_learning_rateis used in the judgment part. The above skeleton does not replicate the scheduler, callback, and intermediate verification settings of the original text. To reproduce the original figures: train.pyand save settings must be used together.

Get one answer with a saved model

Reuse image·move_questions defined earlier
loaded, processor = FastDecisionModel.from_pretrained(
    model_name="work/mnist-adapter",
    max_seq_length=1024,
    load_in_4bit=True,
    dtype=torch.bfloat16,
)
FastDecisionModel.for_inference(loaded)
answers = FastDecisionModel.predict(
    loaded, processor,
    state="The current number is 3.",
    questions=move_questions,
    images=[image],
)
move = answers["move"]
print(move["answer"], move["probabilities"])
Three confusing response approaches

Jev REST: result["answers"]["route"]["choice"]
Jev Python SDK: result.answers["route"].choice
Unsloth of this experiment: answers["move"]["answer"]

Image input must be supported by a multimodal-base model and processor. images Even text-only models don't read pictures if you just put in arguments. The temperature stored after correction may be reflected in the weight depending on the implementation, so the same temperature is not arbitrarily applied once again after reloading.

09 / Local service connection

You can leave Unsloth on and call it over HTTP from your program.

Desktop Settings → API → Decision API → Serve requestsPrepared for local serving. The default address of the document is http://localhost:8888/v1/systemone, and the key can be checked in Access tokens in the same settings. The actual port will follow your settings. Official Implementation Procedure ↗

Reusing the previous statement example state·questions
import os
import requests

response = requests.post(
    "http://localhost:8888/v1/systemone",
    headers={"Authorization": "Bearer " + os.environ["UNSLOTH_API_KEY"]},
    json={"model": "laya", "state": state, "questions": questions},
    timeout=60,
)
response.raise_for_status()
print(response.json()["answers"]["route"]["choice"])

UNSLOTH_API_KEYis the environment variable name set in this example. Set the token created in Desktop here. local jev-latest The alias can be linked to the model selected in Settings. If the address is local, entering the string Jev does not mean that TypeSafe's Jev will be executed.

This site's preview address is 127.0.0.1:18765is a server that displays HTML. It is separate from the Decision API server above, and the model server does not automatically turn on when you open this page.

10 / From understanding to experimentation

Things to remember when reading benchmarks and APIs

  1. Speed see what's included.

    The times including model calculation time, network round trip, and web page retrieval are different. If the numbers for each manufacturer are lined up as is, the comparison may be inconsistent.

  2. Let's share good format and good judgment.

    The advantage of always having valid options is that it is easy to connect. We separately check whether the choice is correct and whether the probability of being wrong is low.

  3. Evaluate small business decisions first.

    Rather than ‘Handle all inquiries,’ start with questions with a clear scope, such as ‘Which of the three teams should I send to?’ The actual correct answer is then recorded along with confusion cases, probabilities, and response times.

This MNIST experiment is an example of seeing those small decisions with your own eyes. Given a picture and the current state, you can see how the results of one choice and repeated execution change.

Check web resource: 2026. 10. 30. / API example: Document and archived source comparison, Python grammar check. No remote paid API calls or GPU retraining were performed. Available functions and parameters may vary depending on model/package updates.