npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcptoolshop/backprop

v1.0.0

Published

CLI-first ML trainer with intelligent resource governance

Downloads

1,146

Readme

Getting Started

1. 安装

npm install -g @mcptoolshop/backprop

2. 运行训练脚本

backprop run train.py --name my-first-run

完成。Backprop 将自动执行以下操作:

  1. 检查您的系统是否具有足够的 RAM 和 GPU VRAM。
  2. 启动脚本并跟踪其进度。
  3. 在 10 分钟后优雅地停止它(可通过 -m 参数进行配置)。
  4. 将运行元数据和检查点保存到 ~/.backprop/experiments.json

工作原理

监控器 (Governor)

Backprop 包含一个智能监控器,它在运行之前和运行期间监控您的系统资源。它检查 CPU 负载、可用 RAM 以及 GPU VRAM/温度(通过 nvidia-smi)。如果您的系统负载过重或温度过高,监控器将阻止运行开始,或在资源释放后暂停运行。

短时间运行 + 自动恢复

与其让脚本连续运行 48 小时,并祈祷它不会崩溃,Backprop 鼓励限制时间运行。默认情况下,运行时间限制为 10 分钟。

如果您的脚本输出检查点路径(例如,{"event": "checkpoint_saved", "path": "/tmp/ckpt.pt"}),Backprop 会记住它们。您可以轻松恢复中断或时间限制的运行:

backprop resume <run-id>

资源监控

Backprop 使用 nvidia-smi 准确监控 NVIDIA GPU。它会自动选择具有最多可用 VRAM 的 GPU,并确保其满足您的最低要求,然后再开始运行。

您可以随时检查您系统的当前资源状态:

backprop status

用法

运行训练脚本

backprop run train.py

选项:

  • -m, --max-run-minutes <minutes>: 最大运行时间(分钟)(默认:10)
  • -f, --framework <type>: 使用的框架(pytorch | tensorflow | auto)(默认:auto)
  • -c, --checkpoint-every-minutes <minutes>: 检查点间隔(分钟)
  • -r, --resume-from <path>: 从哪个检查点恢复
  • --run-id <id>: 此次运行的唯一标识符
  • -n, --name <name>: 此次实验的人类可读名称
  • -g, --gpu-memory-limit <limit>: GPU 内存限制(例如,"80%" 或 "8" 表示 GB)
  • -p, --max-parallel <count>: 最大并行运行次数
  • --min-free-ram <gb>: 启动运行所需的最小可用 RAM(GB)(默认:4)
  • --gpu-probe <type>: GPU 探测类型(auto | nvidia-smi | none)
  • --gpu-min-vram <mb>: 启动运行所需的最小可用 VRAM(MB)(默认:2500)
  • --gpu-max-temp <c>: GPU 最大温度(摄氏度)(默认:85)

配置文件

您可以在项目的根目录下创建一个 backprop.config.json 文件:

{
  "maxRunMinutes": 30,
  "maxParallel": 2,
  "gpuMemoryLimit": "80%",
  "gpu": {
    "probe": "auto",
    "minFreeVramMB": 2500,
    "maxTempC": 85
  }
}

列出实验

backprop list

安全与数据范围

Backprop 完全在本地运行——没有网络请求、没有遥测数据,也没有云服务。

  • 访问的数据: 读取训练配置文件 (backprop.config.json)。 启动 Python 训练进程并监控系统资源(CPU、RAM、GPU 通过 nvidia-smi)。 将实验元数据和锁文件写入项目目录。
  • 未访问的数据: 没有网络请求。 没有遥测数据。 没有凭据存储。 训练数据保持在本地——Backprop 协调进程,它不读取训练数据集。
  • 所需的权限: 需要文件系统访问权限,用于配置、实验日志和锁文件。 需要进程创建权限,用于 Python 训练脚本。

请参阅 SECURITY.md,了解漏洞报告。


评分卡

| 类别 | 评分 | |----------|-------| | 安全性 | 10/10 | | 错误处理 | 10/10 | | 操作文档 | 10/10 | | 软件质量 | 10/10 | | 身份验证 | 10/10 | | Overall | 50/50 |


开发

pnpm install
pnpm build
pnpm test

MCP Tool Shop 构建。