Optimus Router is a local-first AI inference system designed for environments where accuracy, runtime, memory usage, and external token costs must all be carefully controlled. It receives a JSON file containing task IDs and natural-language prompts. A fine-tuned MiniLM classifier first assigns each prompt to one of eight categories: factual knowledge, mathematical reasoning, sentiment classification, text summarisation, named entity recognition, code debugging, logical reasoning, or code generation. The router then selects the local model best suited to the category. DeepSeek-R1-Distill-Qwen-1.5B handles mathematics and logical reasoning, while Qwen3-4B-Instruct-2507 handles factual explanations, sentiment, summarisation, entity extraction, debugging, and code generation. Every category has specialized instructions and validation rules. The system checks calculations, logical constraints, summary limits, entity labels, code syntax, function names, and output structure. Invalid DeepSeek responses can be repaired locally or passed to Qwen for another attempt. Both models run through llama.cpp using quantized GGUF files. They are loaded sequentially rather than simultaneously, allowing the application to operate within limited CPU and memory resources. Runtime deadlines and per-request limits ensure that processing and final output remain within the ten-minute execution limit. Because only external model output tokens count toward the challenge score, Fireworks is disabled by default. Normal operation is entirely local and targets zero counted tokens. Fireworks can be explicitly enabled as a tightly limited emergency fallback. The completed answers are safely written to results.json, preserving every original task ID. Overall, Optimus Router combines lightweight classification, specialized local models, validation, and controlled fallback behavior to provide accurate answers efficiently and economically.
Category tags: