This model is used in
optillm
to route between the various approaches based on the prompt.
To use the model with optillm you can just prepend
router
to the model name. E.g. if we set
router-gpt-4o-mini
as the model, it will use the
gpt-4o-mini
as the base model.
Otherwise, refer to the code in
router-plugin
to see how to use this model for classification.
This model is based on
ModernBERT-large
and better than the previous
router model
that was based on
bert-large-uncased
.
Router results on AIME 2024 pass@1
Model
Score
router-gpt4o-mini with codelion/optillm-modernbert-large
13.33
router-gpt4o-mini with codelion/optillm-bert-uncased
6.67
gpt4o-mini
3.33
Usage
To use the model directly you will need to use our
OptILMClassifier
class as we added additional layers to the base model. The additional
effort_encoder
is used to take into account the number of tokens a given approach consumes. Also, note
the mapping of the returned index to the
APPROACHES
list as shown below.
optillm-modernbert-large huggingface.co is an AI model on huggingface.co that provides optillm-modernbert-large's model effect (), which can be used instantly with this codelion optillm-modernbert-large model. huggingface.co supports a free trial of the optillm-modernbert-large model, and also provides paid use of the optillm-modernbert-large. Support call optillm-modernbert-large model through api, including Node.js, Python, http.
optillm-modernbert-large huggingface.co is an online trial and call api platform, which integrates optillm-modernbert-large's modeling effects, including api services, and provides a free online trial of optillm-modernbert-large, you can try optillm-modernbert-large online for free by clicking the link below.
codelion optillm-modernbert-large online free url in huggingface.co:
optillm-modernbert-large is an open source model from GitHub that offers a free installation service, and any user can find optillm-modernbert-large on GitHub to install. At the same time, huggingface.co provides the effect of optillm-modernbert-large install, users can directly use optillm-modernbert-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
optillm-modernbert-large install url in huggingface.co: