caramelo-dataset
收藏资源简介:
Caramelo风格校正对数据集是一个包含414个指令-响应对的数据集,专门设计用于训练语言模型,使其能够模仿巴西作者Guilherme Favaron的独特写作风格进行回应。该风格特点包括:直接切入主题、使用数据和示例进行论证、采用巴西葡萄牙语、避免夸张表达和表情符号。数据集通过多阶段流程构建:首先在8个商业和技术领域(如增长与获客、管理与领导力、营销与传播等)生成多样化的日常提问作为指令;然后使用Gemma 3 4B基础模型生成回答草稿;接着基于作者真实通讯文本,通过LLM子代理将草稿重写为目标风格;最后根据客观风格标记(如无表情符号、无破折号分割句子、无特定句式、数据/示例密度)进行过滤。每个样本以JSONL格式存储,包含instruction(指令/问题)、response(风格化回答)和dominio(所属领域)三个字段。该数据集旨在微调小型语言模型的综合与沟通能力,其核心假设是沟通形式是模型性能的一部分。实验表明,基于此数据集训练的模型在盲测质量评估中优于原始基础模型。但需注意,回答反映了作者的个人风格和观点,可能包含基础模型的事实性错误,且主题范围限于巴西葡萄牙语的商业和技术领域的中短篇回答。
The Caramelo style correction pair dataset contains 414 instruction-response pairs designed to train language models to respond in the unique writing style of Brazilian author Guilherme Favaron. This style is characterized by directness to the point, use of data and examples for argumentation, employment of Brazilian Portuguese, and avoidance of exaggerated expressions and emojis. The dataset is constructed through a multi-stage process: first, generating diverse daily questions as instructions across eight business/technical domains (such as growth and acquisition, management and leadership, marketing and communication, etc.); then using the Gemma 3 4B base model to generate response drafts; subsequently rewriting the drafts into the target style based on the authors real communication texts via LLM sub-agents; and finally filtering based on objective style markers (e.g., no emojis, no dashes to split sentences, no specific sentence patterns, data/example density). Each sample is stored in JSONL format with three fields: instruction (the question/command), response (the stylized answer), and dominio (the domain). The dataset is specifically intended for fine-tuning small language models for synthesis and communication skills, with the core hypothesis that communication form is part of model performance. Experiments show that models trained on this dataset outperform the original base model in blind quality assessments. However, it should be noted that the responses reflect the authors personal style and opinions, may contain factual errors from the base model, and the topic scope is limited to medium-to-short answers in Brazilian Portuguese within business and technical fields.
数据集概述:Caramelo — pares de correção de estilo (voz do Gui)
该数据集是一个用于葡萄牙语(巴西)文本风格迁移和指令微调的高质量配对数据集,旨在教导语言模型以特定作者风格进行回应。
核心信息
- 数据集名称: Caramelo — pares de correção de estilo (voz do Gui)
- 规模: 414 个
指令 → 回答配对 (n<1K) - 语言: 葡萄牙语 (pt, 巴西)
- 许可证: Gemma 许可协议
- 数据集配置:
default,数据文件为caramelo_style_pairs.jsonl
数据集构建方法 (风格修正)
数据集通过一个四步流程构建,以解决“学习文章格式而非回答问题”的问题:
- 提示生成: 在 8 个商业/技术领域生成多样化、日常化的问题提示。
- 草稿生成: 使用
Gemma 3 4B基础模型为每个提示生成回答草稿。 - 风格改写: 由 LLM 子代理基于新闻通讯 IA Aplicada 中约 229 篇真实文本片段,将草稿改写为作者 Guilherme Favaron 的风格(直接、以数据和实例论证)。
- 过滤: 应用客观风格标记(无表情符号、无句中破折号、无“不是X是Y”结构、数据/示例密度)进行过滤。
数据格式 (JSONL)
每条记录包含三个字段:
| 字段 | 类型 | 描述 |
|---|---|---|
instruction |
string | 用户提问/请求 (中位数约 88 字符) |
response |
string | 以 Gui 风格撰写的回答 (中位数约 1,300 字符) |
dominio |
string | 所属领域 (共 8 个) |
数据示例: json { "instruction": "vale a pena investir em TikTok Ads pra um SaaS B2B ou tá queimando dinheiro?", "response": "Depende muito do que você vende e pra quem. TikTok hoje tem mais de 1 bilhão de usuários ativos, e o perfil está mudando...", "dominio": "growth e aquisição" }
领域分布 (共 414 对,较均衡)
| 配对数量 | 领域 |
|---|---|
| 55 | gestão, liderança e times (管理、领导力与团队) |
| 53 | marketing e comunicação (营销与传播) |
| 52 | produto e product management (产品与产品管理) |
| 52 | carreira e desenvolvimento pessoal (职业与个人发展) |
| 52 | dados e analytics (数据与分析) |
| 50 | growth e aquisição (增长与获客) |
| 50 | IA aplicada a negócios (应用于商业的AI) |
| 50 | startups e empreendedorismo (初创企业与创业) |
预期用途
- 主要用于对小型语言模型进行合成与沟通能力的微调。
- 使用 QLoRA (r=16, alpha=32, 3 epochs) 进行训练。
- 在盲测评估中,基于该数据集训练的模型
caramelo 3.4.2以 66-70% 的胜率击败google/gemma-3-4b-it,caramelo 4.4.1以 95-100% 的胜率击败google/gemma-4-E4B-it。在 ENEM 测试中,caramelo 3.4.2得分为 57.5%。
局限性与偏差
- 回答风格和观点完全反映作者 Guilherme Favaron 的个人风格,并非客观真理。
- 草稿源自
Gemma 3 4B基础模型,即使经过改写,仍可能包含该模型的事实不准确性。请勿用作事实来源。 - 数据集范围仅限于巴西葡萄牙语的商业/技术领域,且为短到中等长度的回答。
相关资源与作者
- 作者: Guilherme Favaron
- 作者网站: guifav.github.io · guilhermefavaron.com.br
- 训练出的模型: guifav/caramelo (caramelo 3.4.2) 和 guifav/caramelo-gemma4-e4b (caramelo 4.4.1)





