界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

sparse_replay_trainer

sparse_replay_trainer

【效率与协作】Train an online text classifier with sparse replay updates from episodic memory.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: sparse_replay_trainer description: Train an online text classifier with sparse replay updates from episodic memory.

Sparse Replay Trainer

When To Use

Use this skill when reconstructing the episodic-memory lifelong language learning method from de Masson d'Autume et al. without relying on an original implementation repository.

Inputs

  • Small text examples represented as dictionaries.
  • Deterministic configuration values such as memory probability, replay interval, K, and adaptation steps.

Outputs

  • Auditable Python objects or JSON-serializable dictionaries matching the module contract.
  • Logs that expose mechanism execution rather than only final metrics.

Workflow

  1. Update the base model once per stream example.
  2. At configured intervals, sample from memory and perform replay updates.
  3. Record replay events with step, sample count, and losses.

Validation

Run python tests/test_sparse_replay_trainer.py from this skill directory.

Limitations

The scripts are deterministic proxy utilities for bounded recovery. They do not train BERT or reproduce the full paper-scale datasets.

我的收藏