completers
OfficialStreamline text generation with completers.
Software Engineering#text-generation#completers#rl-rollouts#sampling-client#token-completer#message-completer
Authorthinking-machines-lab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Completers provide convenient, structured interfaces for text generation by wrapping a SamplingClient, enabling both low-level token access and high-level message handling during RL rollouts and evaluation.
Core Features & Use Cases
- TokenCompleter: low-level interface that returns tokens and optional logprobs for precise control during RL training.
- MessageCompleter: high-level interface that accepts and returns Message objects for multi-turn conversations and evaluation.
- Flexible usage: supports integration in RL rollouts, tool-using environments, and evaluation workflows; ideal when you need either raw tokens or structured messages.
Quick Start
Instantiate a TokenCompleter or MessageCompleter with a SamplingClient and run a simple prompt to generate either tokens or a parsed Message.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: completers Download link: https://github.com/thinking-machines-lab/tinker-cookbook/archive/main.zip#completers Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.