Views
No views yet
[!NOTE] 💻 Demos: Try this fine-tuned model running in a CPU-only Hugging Face space: Zero-shot prompt routing — define your own routing lanes as free text. The model scores the whole prompt against every lane in one pass.
⚠️ Loads custom code viatrust_remote_code=True(the model wraps atrust_remote_codeencoder).
pip install torch transformers1from transformers import AutoModel, AutoTokenizer
2
3model_id = "LiquidAI/LFM2.5-Encoder-350-Prompt-Router"
4
5tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
6model = AutoModel.from_pretrained(model_id, trust_remote_code=True).eval()
7
8routes = ["Coding", "Sales", "Creative writing", "General knowledge"]
9prompt = "Can you help me debug a failing Python unit test?"
10
11print(model.route(prompt, routes, tokenizer=tokenizer))1@article{liquidAI2026Encoders,
2 author = {Liquid AI},
3 title = {LFM2.5-Encoders: Fast at Long Context, Even on CPU},
4 journal = {Liquid AI Blog},
5 year = {2026},
6 note = {www.liquid.ai/blog/lfm2-5-encoders},
7}