shell-safety-common
收藏资源简介:
Shell Safety conversations 是一个英语文本分类数据集,用于 shell 命令安全性的分类任务。该数据集基于 tomngdev/shell-safety 数据集,将其转换为 ChatML(聊天标记语言)格式的对话。数据集中包含静态系统提示和可变的 <SessionContext> 块,适用于训练具有安全检测能力的对话模型。数据集规模在 10,000 到 100,000 个样本之间,提供 large、medium、small 三种配置,分别对应不同规模的数据子集。
Shell Safety conversations is an English text classification dataset for the task of classifying shell command safety. It is based on the tomngdev/shell-safety dataset and converted into ChatML (Chat Markup Language) format conversations. The dataset contains static system prompts and variable <SessionContext> blocks, suitable for training conversational models with safety detection capabilities. The dataset size ranges from 10,000 to 100,000 samples, with three configurations: large, medium, and small, corresponding to different data subset sizes.
Shell Safety conversations 数据集总结
📌 基本信息
- 数据集名称:Shell Safety conversations
- 许可证:MIT
- 语言:英语(en)
- 大小:10K < n < 100K 条样本
- 任务类别:文本分类(text-classification)
📂 配置与划分
该数据集提供三种配置,分别存放于不同子目录:
| 配置名称 | 数据目录 |
|---|---|
| large | lg |
| medium | md |
| small | sm |
📁 数据来源与构建
- 来源:本数据集由 tomngdev/shell-safety 转换而来。
- 转换方式:原始数据被改编为 ChatML 对话格式。
- 用途说明:该结构专为作者自用训练设计,采用静态系统提示(static system prompt),并搭配动态变化的
<SessionContext>块,以增强模型在会话上下文中的安全响应能力。
🎯 标签与主题
- 标签:safety、shell、bash、powershell、cmd、classifier、shell-classifier
- 核心主题:围绕 Shell(Bash、PowerShell、CMD)命令的安全相关的对话内容,适用于 Shell 安全分类任务。




