awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
thinking-machines-lab avatar

thinking-machines-lab/tinker-cookbook

0
View on GitHub↗
2,856 星标·325 分支·Python·apache-2.0·20 次浏览

Tinker Cookbook

Tinker Cookbook is an open-source framework for fine-tuning large language models, supporting supervised learning, reinforcement learning, and parameter-efficient techniques like LoRA adapters. It provides a complete pipeline for aligning models with human preferences through multi-stage RLHF workflows, from supervised fine-tuning through preference optimization to reinforcement learning.

The framework distinguishes itself through recipe-based training orchestration, where fine-tuning workflows are defined as composable recipe files that chain data loading, model configuration, and training loops into repeatable pipelines. It includes an async concurrent sampling engine that maximizes throughput during training rollouts and evaluation, and supports multi-agent reinforcement learning with self-play or competitive environments. The system manages model checkpoints through hub-centric weight management, enabling saving, loading, downloading, and publishing to remote hubs for sharing and deployment.

Beyond core training, the framework covers hyperparameter sweeping across learning rates, LoRA ranks, and RL parameters to find optimal configurations. It handles vision-language model fine-tuning, prompt distillation into model weights, and multi-turn conversation training. The system includes tools for building, merging, and exporting LoRA adapters for efficient serving and HuggingFace compatibility, along with evaluation capabilities for measuring model performance on standard benchmarks.

The documentation provides guidance on configuring training runs, building custom reinforcement learning environments, and diagnosing training issues through AI assistant skills.

Features

  • Language Model Fine-Tuning - Core framework for fine-tuning large language models using supervised and reinforcement learning.
  • Large Language Model Fine-Tuning Frameworks - An open-source framework for fine-tuning large language models using supervised learning, reinforcement learning, and LoRA adapters.
  • Reinforcement Learning Training - Training language models to maximize reward signals through on-policy rollouts, scoring, and importance-sampled loss updates.
  • Supervised Training Pipelines - Uses configuration objects and dataset builders to set up and run supervised fine-tuning jobs.
  • Reinforcement Learning Fine-Tuning - Applies the GRPO algorithm with reward functions to fine-tune models on math reasoning tasks.
  • Large Language Model Fine-Tuning - Trains open-weight models from 1B to 1T+ parameters, including dense and mixture-of-experts architectures.
  • Reinforcement Learning Environments - Defines custom ProblemEnv subclasses for RL training with token-level and message-level completion strategies.
  • Low-Rank Adaptation - Performs parameter-efficient fine-tuning using LoRA adapters, matching full fine-tuning performance for many use cases.
  • Multi-Stage Pipelines - Orchestrates supervised fine-tuning, preference model training, and reinforcement learning as sequential stages.
  • GRPO Training Loops - Executes complete GRPO reinforcement learning training runs with higher-level abstractions.
  • Parameter Efficient Fine-Tuning - Provides parameter-efficient fine-tuning via LoRA adapters, reducing memory and compute requirements.
  • Preference Optimization - Runs direct preference optimization and full RLHF pipelines to align model outputs with human preferences.
  • GRPO Training Loop Configurations - Implements full GRPO training loops with higher-level environment and dataset abstractions.
  • Reinforcement Learning Training Utilities - Trains language models to maximize reward signals by sampling on-policy rollouts and applying importance-sampled loss.
  • RLHF Training Pipelines - Provides a complete three-stage RLHF pipeline from supervised fine-tuning through preference optimization to reinforcement learning.
  • Supervised Fine-Tuning - Ships a supervised fine-tuning loop that constructs data, performs forward and backward passes, and updates weights.
  • Supervised Fine-Tuning Frameworks - Provides configuration objects and dataset builders for setting up supervised fine-tuning jobs.
  • Training Recipes - Defines fine-tuning workflows as composable recipe files that chain data loading, model configuration, and training loops.
  • Model Fine-Tuning - Provides supervised fine-tuning with cross-entropy loss and weight updates for language models.
  • Vision Model Inputs - Supports passing image inputs alongside text for vision-language model fine-tuning and sampling.
  • Direct Preference Optimization - Fine-tunes models using direct preference optimization from paired preference data without a separate reward model.
  • Model Exporters - Merges a LoRA adapter into a full model and saves it in HuggingFace-compatible format.
  • Model Uploads to Hub - Provides functionality to publish fine-tuned model checkpoints to the HuggingFace Hub.
  • Chat Template Configurations - Tokenizes and formats prompts according to the chat template expected by different model families.
  • Trained Model Outputs - Ships sampling and inference capabilities for generating outputs from fine-tuned models.
  • Custom Environment Builders - Provides the ability to build custom reinforcement learning environments by subclassing ProblemEnv.
  • Custom Loss Functions - Supports cross-entropy, importance sampling, PPO, and custom loss functions during model training.
  • Hyperparameter Sweep Orchestrators - Includes a hyperparameter sweep engine that scans learning rates, LoRA ranks, and RL parameters to find optimal configurations.
  • Fine-Tuned Model Evaluators - Runs evaluations on fine-tuned models to measure performance on standard benchmarks.
  • Hub Weight Managers - Manages model checkpoints through save, load, download, and upload operations to a remote hub.
  • Vision-Language Fine-Tunings - Trains multimodal models for image understanding tasks through the same fine-tuning API used for language models.
  • Model Weight Management - Manages model checkpoints through save, load, download, and publish operations.
  • Adapter Builders - Converts trained adapters into PEFT format for efficient serving and deployment.
  • Adapter Exporters - Merges a LoRA adapter into a full model and exports it for use with the HuggingFace ecosystem.
  • LoRA Adapter Builders and Exporters - Provides tools for building, merging, and exporting LoRA adapters for deployment and sharing.
  • Multi-Adapter Serving Kernels - Converts trained adapters into PEFT format to serve the model with lower memory usage.
  • Model-Specific Prompt Formats - Automatically applies model-specific chat templates to structure prompts before inference.
  • Multi-Agent Training - Supports multi-agent reinforcement learning with self-play and competitive environments for training multiple agents.
  • RL Reference Environments - Supports building custom RL environments by subclassing ProblemEnv for reinforcement learning tasks.
  • Self-Play Training Pipelines - Sets up self-play and competitive environments for multi-agent reinforcement learning training.
  • Async Request Throughput Optimizers - Optimizes throughput by sending multiple concurrent generation requests asynchronously.
  • Model Evaluation and Benchmarking - Includes evaluation capabilities for running standard benchmarks on fine-tuned models.
  • Model Checkpoint Uploads - Provides tools for uploading fine-tuned model checkpoints to the HuggingFace Hub for sharing.
  • Checkpoint Saving and Restoration - Ships checkpoint saving and restoration utilities for managing model states during fine-tuning.
  • Concurrent Sampling Engines - Ships an async concurrent sampling engine that maximizes throughput during training rollouts and evaluation.
  • Concurrent Sampling and Training Pipelines - Pipelines concurrent sampling with forward-backward passes and optimizer steps for higher throughput.
  • Asynchronous Request Handlers - Issues multiple concurrent API calls using futures to maximize throughput during training and inference.
  • Concurrent AI Requesting - Implements an async concurrent sampling engine for parallel generation requests during training.

Star 历史

thinking-machines-lab/tinker-cookbook 的 Star 历史图表thinking-machines-lab/tinker-cookbook 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

thinking-machines-lab/tinker-cookbook 是做什么的?

Tinker Cookbook is an open-source framework for fine-tuning large language models, supporting supervised learning, reinforcement learning, and parameter-efficient techniques like LoRA adapters. It provides a complete pipeline for aligning models with human preferences through multi-stage RLHF workflows, from supervised fine-tuning through preference optimization to reinforcement learning.

thinking-machines-lab/tinker-cookbook 的主要功能有哪些?

thinking-machines-lab/tinker-cookbook 的主要功能包括:Language Model Fine-Tuning, Large Language Model Fine-Tuning Frameworks, Reinforcement Learning Training, Supervised Training Pipelines, Reinforcement Learning Fine-Tuning, Large Language Model Fine-Tuning, Reinforcement Learning Environments, Low-Rank Adaptation。

thinking-machines-lab/tinker-cookbook 有哪些开源替代品?

thinking-machines-lab/tinker-cookbook 的开源替代品包括: meta-pytorch/torchtune — Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a… huggingface/alignment-handbook — This project is an alignment framework and suite of pipelines for training language models using supervised… facebookresearch/llama-recipes — This repository is a collection of frameworks and guides for Llama models, functioning as a fine-tuning framework, an… internlm/xtuner — xtuner is a comprehensive training engine for large language models, offering a toolkit for pre-training, supervised… changyeyu/llm-rl-visualized — LLM-RL-Visualized is a visual reference library and collection of knowledge maps designed to explain Large Language… openrlhf/openrlhf — OpenRLHF is a training framework and alignment library designed for reinforcement learning from human feedback across…

Tinker Cookbook 的开源替代方案

相似的开源项目,按与 Tinker Cookbook 的功能重合度排序。
  • meta-pytorch/torchtunemeta-pytorch 的头像

    meta-pytorch/torchtune

    5,774在 GitHub 上查看↗

    Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a config-driven system for instantiating components, orchestrating distributed training, and managing parameter-efficient fine-tuning with quantization support, all through YAML-based configurations and command-line overrides. The library distinguishes itself through its comprehensive post-training workflow orchestration, combining supervised fine-tuning, preference optimization (DPO, PPO, GRPO), knowledge distillation, and quantization-aware training in a single configurable pip

    Python
    在 GitHub 上查看↗5,774
  • huggingface/alignment-handbookhuggingface 的头像

    huggingface/alignment-handbook

    5,621在 GitHub 上查看↗

    This project is an alignment framework and suite of pipelines for training language models using supervised fine-tuning and preference optimization. It provides tools for executing large-scale distributed training across multiple GPUs and compute nodes, alongside a system for measuring model helpfulness and dialogue quality through single-turn and multi-turn benchmarks. The framework includes specialized tools for direct preference optimization to refine model behavior using paired data without a separate reward model. It also supports constitutional AI alignment and the training of reward mo

    Python
    在 GitHub 上查看↗5,621
  • facebookresearch/llama-recipesfacebookresearch 的头像

    facebookresearch/llama-recipes

    18,379在 GitHub 上查看↗

    This repository is a collection of frameworks and guides for Llama models, functioning as a fine-tuning framework, an inference pipeline, and an AI workflow orchestrator. It provides tools for adapting large language models to specific datasets and domains. The project includes a parameter-efficient fine-tuning toolkit that utilizes techniques like low-rank adaptation to reduce memory and compute requirements. It also serves as an implementation guide for retrieval-augmented generation, combining model inference with external data retrieval to improve response accuracy. The capability surfac

    Jupyter Notebook
    在 GitHub 上查看↗18,379
  • internlm/xtunerInternLM 的头像

    InternLM/xtuner

    5,150在 GitHub 上查看↗

    xtuner is a comprehensive training engine for large language models, offering a toolkit for pre-training, supervised fine-tuning, and the optimization of vision-language multimodal models. It serves as a distributed training accelerator and a specialized framework for scaling Mixture-of-Experts models and aligning model behavior through reinforcement learning from human feedback. The project distinguishes itself through advanced memory and compute optimizations, such as sequence parallelism for ultra-long context windows and interleaved pipeline parallelism to reduce GPU idle time. It provide

    Pythonagentdeepseek-v3gpt-oss
    在 GitHub 上查看↗5,150
  • 查看 Tinker Cookbook 的所有 30 个替代方案→