token_dataset / README.md
pavan11112233's picture homerquan's picture
Duplicate from homerquan/mn-context-compression-dataset-v1
cecda32
|
Raw History Blame Contribute Delete
2.67 kB
metadata
tags:
  - context-compression
  - multi-agent
  - sft
  - dpo
  - preference-learning
  - smollm3
  - lora
language:
  - en
pretty_name: MN Context Compression Dataset v1

MN Context Compression Dataset v1

Author: Homer Quan

This dataset is used to train context-compression models for improving the context efficiency of multi-agent runtimes, especially MirrorNeuron and the broader work at mirrorneuron.io.

We use this dataset to train models such as homerquan/mn-context-engine-lora-v2, and later protected-fact-focused context engines. The data emphasizes exact protected-span retention, source-reference preservation, budget-conditioned compression, and preference training for safer context reduction.

Files

File Rows Purpose Schema
smollm3_v3_sft_train.jsonl 151,515 Budget-conditioned supervised fine-tuning train split prompt, response, plus metadata
smollm3_v3_sft_eval.jsonl 15,030 Budget-conditioned supervised fine-tuning eval split prompt, response, plus metadata
smollm3_v3_preference_train.jsonl 5,376 DPO/preference train split with hard negatives prompt, chosen, rejected, plus metadata
smollm3_v3_preference_eval.jsonl 140 DPO/preference eval split prompt, chosen, rejected, plus metadata

Training Focus

The examples are designed for non-lossy context compression where exact operational details matter. The main targets are:

  • preserving source refs, file paths, IDs, numbers, pinned facts, and latest instructions;
  • conditioning outputs on explicit target budgets such as 400, 800, and 1200 tokens;
  • learning compact protected-fact ledgers and budget warnings when required facts exceed the target;
  • preferring outputs that avoid private-marker leakage, stale instructions, repeated warnings, and over-budget responses;
  • improving hybrid graph-plus-LLM compression for multi-agent runtime memory.

Intended Use

This dataset is intended for research and engineering work on context compression, memory compaction, SFT, DPO, and LoRA adapters for small text-only language models such as SmolLM3. It is especially useful for evaluating whether a compressor keeps the facts needed for correct downstream agent behavior, rather than only producing fluent summaries.

Notes

The dataset was generated from Membrane/MirrorNeuron context-compression experiments. It includes both SFT examples and deterministic hard-negative preference pairs, with protected fact ledgers embedded in prompts.