遇见数据集

SupraLabs/Prompt-Routing-Dataset

收藏
Hugging Face2026-07-05 更新2026-07-22 收录
官方服务:

资源简介:

--- license: mit task_categories: - text-classification - token-classification tags: - router - orchestrator - slm - edge-computing - mixture-of-experts dataset_info: features: - name: prompt dtype: string - name: full_answer dtype: string - name: complexity_score dtype: int64 - name: primary_domain dtype: string - name: coding_task dtype: bool - name: math_task dtype: bool - name: requires_reasoning dtype: bool - name: routing_choice dtype: string - name: routing_justification dtype: string splits: - name: train num_bytes: auto num_examples: 992 --- <h1 align="center">Prompt Routing Dataset · Multi-Task Infrastructure Routing</h1> ![logo_brand_background](https://cdn-uploads.huggingface.co/production/uploads/697f2832c2c5e4daa93cece7/ttmphn358CTFho5nPao9P.png) <h2 align="center">About this dataset</h2> This dataset is a highly dense, premium alignment asset explicitly designed to train **Edge Orchestrators and Routing Models** ranging from 50M to 1.5B parameters. When deploying small language models (SLMs) on consumer hardware or local edge instances, running multi-step mathematical derivations or complex architectural software tasks often causes catastrophic hallucinations or syntax breakdown. This dataset provides clean, deterministic training signals to teach an edge model when to process an input locally (`small model`) and when to triage the request to a cloud-based frontier model (`big model`). ## Dataset Structure & Sample Row Each row in this dataset represents a rich, multi-task schema block wrapped in a single flat JSON object. Instead of providing a naive binary classification token, the dataset maps out structural metadata properties to anchor the attention mechanisms of compact architectures during sequence fine-tuning. ### Schema Fields: * `prompt` (String): The original user request. * `full_answer` (String): The complete reference solution, structurally preserving intermediate chain-of-thought (`<think>...</think>`) reasoning steps and code blocks. * `complexity_score` (Integer): A scalar index from 1 (Factual / Simple text) to 5 (Advanced logic / Nested structures). * `primary_domain` (String): The semantic domain classification (e.g., *Number Theory, Literature, Cryptography*). * `coding_task` (Boolean): Flag indicating if code generation, debugging, or execution parsing is present. * `math_task` (Boolean): Flag indicating if symbolic manipulation, proofs, or multi-step word math constraints are present. * `requires_reasoning` (Boolean): Qualitative indicator from the seed frontier model evaluating cognitive load. * `routing_choice` (String): The programmatic training target (`small model` vs `big model`). * `routing_justification` (String): A clean explanation mapping the logic of the routing decision. --- ## Data Curation & Crystalline Pipeline The data was generated using GPT-OSS-120B via OpenRouter with prompts from an interleaved streaming architecture drawing from two core distributions to maximize domain variance: 1. **`magpie-align/Magpie-Reasoning-150K`**: Seeded for deep algorithmic execution, formal mathematical proofs, and programmatic debugging strings. 2. **`HuggingFaceH4/instruction_dataset`**: Seeded for natural human conversational prompts, creative prose synthesis, factual lookups, and basic professional text writing. ### The Programmatic Rule Override Frontier LLMs exhibit a "Self-Reflection Bias" — because they find complex geometry, algebra, and basic scripts effortless, they natively mislabel them as matching `small model` capabilities. To eliminate this bias, this dataset enforces a strict, programmatic infrastructure rule during generation. The final `routing_choice` token is forced into an automated override based on objective logic: $$\text{If } (\text{complexity\_score} \ge 3 \text{ OR } \text{coding\_task} == \text{True} \text{ OR } \text{math\_task} == \text{True}) \rightarrow \mathbf{\text{big model}}$$ This results in a clean, crisp operational boundary where small models are authorized to handle natural conversation, content summarization, formatting text, and entity lookups, while safely pushing syntax-breaking logic to larger platforms. --- ## Recommended Fine-Tuning Strategy To achieve **90%+ classification accuracy** on sub-500M parameter models, we advise against training the model to emit a naive `small model` or `big model` token out of the blue. Instead, optimize your model using **Multi-Task Sequence Generation** by forcing the SLM to calculate the feature attributes *before* predicting the route. This lets the weight matrix dynamically compute activation vectors based on the keywords it identifies in the user text. ### Target Format Configuration: ```text [Input Prompt] Consider a regular octagon. How many different triangles can be formed... [Expected Model Generation Target] Domain: Combinatorics/Geometry | Complexity: 3 | Math: True | Code: False | Route: big model | Justification: Automated override: Task complexity is high (3) or involves technical logic... ``` By fine-tuning your edge model on this exact linear sequence, the weights naturally lock onto domain-specific syntax strings, leading to high-performance local routing orchestration with negligible computational footprints. ## Model Together with this dataset, we also ship a production-ready model - [https://huggingface.co/SupraLabs/Supra-Router-51M](https://huggingface.co/SupraLabs/Supra-Router-51M) - which you can use in your routing/orchestrator environment.

This dataset is a highly dense, premium alignment asset explicitly designed to train Edge Orchestrators and Routing Models ranging from 50M to 1.5B parameters. When deploying small language models (SLMs) on consumer hardware or local edge instances, running multi-step mathematical derivations or complex architectural software tasks often causes catastrophic hallucinations or syntax breakdown. This dataset provides clean, deterministic training signals to teach an edge model when to process an input locally (small model) and when to triage the request to a cloud-based frontier model (big model). The dataset structure includes multiple fields per sample, such as the original user request (prompt), complete reference solution (full_answer), complexity score (complexity_score), primary domain (primary_domain), etc., with routing choice (routing_choice) and justification (routing_justification) generated based on a programmatic rule override. Data generation combines two core distributions: magpie-align/Magpie-Reasoning-150K (for deep algorithmic execution and mathematical proofs) and HuggingFaceH4/instruction_dataset (for natural conversation and text generation), to maximize domain variance.

提供机构:
SupraLabs
搜集汇总
数据集介绍
SupraLabs/Prompt-Routing-Dataset 数据集图片
构建方式
该数据集旨在为边缘设备上的小型语言模型(SLM)训练高效的路由编排器而设计。其构建过程依托于从两大核心分布中交织采样的数据流:其一为Magpie-Reasoning-150K,用于注入深度算法执行与数学证明样本;其二为instruction_dataset,以获取自然对话与事实查询实例。为消除前沿模型固有的“自我反思偏差”,构建流程采用严格的程序化规则覆盖,即当复杂度评分≥3或涉及编程、数学任务时,强制将路由决策标注为“big model”,从而确保小模型仅处理低复杂度任务。
特点
本数据集具备高密度、多任务标注的结构化特征。每条数据以扁平JSON对象呈现,包含prompt、full_answer、complexity_score、primary_domain、coding_task、math_task、requires_reasoning、routing_choice及routing_justification九个字段。其中routing_choice作为确定性训练目标,明确区分“small model”与“big model”的适用场景。数据集共992条训练样本,覆盖从简单文本到高级逻辑的五级复杂度标度,并提供了详尽的中间推理链与路由依据,为紧凑架构的注意力机制锚定提供清晰信号。
使用方法
建议采用多任务序列生成策略进行微调,而非直接输出二元路由标签。模型需先预测prompt的领域、复杂度、是否为编程或数学任务等特征属性,再基于这些计算出的激活向量生成路由决策与理由。例如输入几何问题后,模型应输出“Domain: Combinatorics/Geometry | Complexity: 3 | Math: True | Code: False | Route: big model”的线性序列。此方法可使参数量低于5亿的模型达到90%以上的路由分类准确率,实现低计算开销下的高性能本地路由编排。
背景与挑战
背景概述
Prompt-Routing-Dataset由SupraLabs研究团队于近期创建,旨在解决边缘计算场景下小型语言模型(SLM)与云端前沿模型之间的智能路由问题。随着大语言模型在复杂推理任务中的卓越表现,如何高效地将计算资源有限的本地模型与云端强大模型协同调度,成为部署高效混合专家系统的关键挑战。该数据集通过提供高密度、精标注的训练信号,系统性地定义了输入复杂度的量化标准与路由决策逻辑,为训练参数规模在50M至1.5B之间的边缘编排模型奠定了数据基础,对推动轻量级模型在消费级硬件上的实用化部署具有显著价值。
当前挑战
该数据集的核心挑战在于解决领域层面SLM在本地执行多步数学推导或复杂架构软件任务时易产生灾难性幻觉或语法崩溃的问题,为此需建立清晰的路由边界以分离适合本地处理的简单任务与需云端大模型介入的复杂任务。在构建过程中,为消除前沿LLM的“自我反思偏误”(即因自身计算能力强而误标记简单任务),数据生成策略被迫引入严格的程序化规则覆盖,依据复杂度评分、编程标记等客观逻辑自动判定路由选择,确保训练信号准确反映真实部署需求。
常用场景
经典使用场景
Prompt-Routing-Dataset专为训练边缘端编排器与路由模型而设计,适用于参数量在50M至1.5B之间的小型语言模型(SLM)。在消费级硬件或本地边缘实例上部署SLM时,面对多步数学推导或复杂架构软件任务,模型常出现灾难性幻觉或语法崩溃。该数据集通过提供精确、确定性的训练信号,教会边缘模型何时在本地处理输入(小模型),何时将请求转发至云端前沿模型(大模型)。这一路由决策能力使得轻量级模型在资源受限环境中仍能高效运行,成为混合推理架构中的关键一环。
衍生相关工作
基于Prompt-Routing-Dataset,研究者可衍生出多任务序列生成的路由模型训练方法,通过强制SLM在预测路由前先计算特征属性(如领域、复杂度、数学与编程标志),使权重矩阵基于用户输入中的关键词动态计算激活向量。该数据集还配套提供了Supra-Router-51M生产级模型,为边缘编排器的实际部署提供了基准参考。未来可进一步探索与其他推理数据集的混合训练,如将Magpie-Reasoning-150K与HuggingFaceH4/instruction_dataset的分布特性融合,提升路由模型在更广泛语义空间中的泛化能力。
数据集最近研究
最新研究方向
Prompt-Routing-Dataset的最新研究方向聚焦于边缘计算场景下的小语言模型智能路由与编排。该数据集通过构建多任务结构化的训练信号,旨在解决小型模型在本地部署时处理复杂数学推导或编码任务时产生的幻觉与语法崩溃问题。前沿研究围绕基于复杂度评分、任务类型与推理需求等多维元数据的硬编码路由覆盖机制展开,以建立明确的操作边界,将简单对话与事实查询交由小型模型处理,而将逻辑密集型任务路由至云端前沿模型。这一方向与当前混合专家系统(MoE)和边缘智能的兴起紧密相关,其意义在于为资源受限的设备提供了一种轻量化、高精度的任务分派范式,推动了小型语言模型在消费级硬件上的实用化部署,并显著降低了对云端计算资源的依赖。
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务