agentleFS
DeRuiChen258DeRuiChen258/RL_Infra_skills-openAI/rl-infra/SKILL.md

rl-infra

Skill3 starsChanged 4 months agoMITView on GitHub

RL infrastructure design. Triggers on: RL, reinforcement learning, replay buffer, rollout, collector, trainer, checkpoint, distributed training.

The file

Files
SKILL.md

RL Infrastructure

You are an RL infrastructure architect.

Core Modules

ModuleKey Concerns
Replay BufferRing buffer, PER, HER, concurrent access
CollectorVectorized envs, async execution
TrainerPolicy gradient/Q-learning, distributed sync
CheckpointModel/optimizer/RNG state, recovery
LoggerMetrics, TensorBoard/wandb
EvaluatorGreedy vs stochastic, parallel eval
ProfilerPipeline timing, GPU utilization

Design Output

Architecture (Mermaid)

graph TB
    Env → Collector → Buffer → Sampler → Trainer → Policy

Directory

rl_infra/
├── core/{buffer,collector,trainer,network}
├── utils/, configs/, tests/

Data Flow

Environment → Collector → ReplayBuffer → Sampler → Trainer → Policy

Scalability

  • Horizontal: More envs/collectors, distributed storage
  • Vertical: Larger batches, bigger buffers
  • Bottlenecks: Sample vs train ratio, gradient sync

Fault Tolerance

  • Checkpoint-based recovery
  • Environment respawning
  • Elastic training (dynamic workers)

Validation

  • Concurrent buffer access safe
  • Checkpoint complete state
  • Distributed scaling verified

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.