← 开源
dCaples

AutoDidact

Autonomously train research-agent LLMs on custom data using reinforcement learning and self-verification.

Model DevelopmentFine-tuningJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
689
Star
64
Fork
+1
本周
2
贡献者
创建于 2025-03-08 · 更新于 2026-10-14 · 今日第 14966 名
主要开发者
dCapleseltociear

dCaples/AutoDidact 排名第 14,966,有 689 个星标。

同类别比较

dCaples/AutoDidact 排名第 14,966,此处有 8 个同类条目;Yijunmaverick/CartoonGAN-Test-Pytorch-Torch 排名第 14,965。

同类别比较
名称排名指标
ShichenLiu/CondenseNet14,957
语言:
Python
星标数:
690
分叉数:
128
简介:
CondenseNet: Light weighted CNN for mobile devices
maxpumperla/betago14,959
语言:
Python
星标数:
690
分叉数:
164
简介:
BetaGo: AlphaGo for the masses, live on GitHub.
NVIDIA-RTX/RTXNTC14,963
语言:
C++
星标数:
689
分叉数:
49
简介:
NVIDIA Neural Texture Compression SDK
Yijunmaverick/CartoonGAN-Test-Pytorch-Torch14,965
语言:
Python
星标数:
689
分叉数:
202
简介:
Pytorch and Torch testing code of CartoonGAN [Chen et al., CVPR18]
leggedrobotics/robotic_world_model14,972
语言:
Python
星标数:
689
分叉数:
53
简介:
Repository for our papers: Robotic World Model: A Neural Network Simulator for Robust Policy Optimization in Robotics and Uncertainty-Aware Robotic World Model Makes Offline Model-Based Reinforcement Learning Work on Real Robots
lyndonzheng/Pluralistic-Inpainting14,973
语言:
Python
星标数:
689
分叉数:
145
简介:
[CVPR 2019]: Pluralistic Image Completion
nyu-systems/Grendel-GS14,974
语言:
Python
星标数:
689
分叉数:
43
简介:
[ICLR 2025 Oral] On Scaling Up 3D Gaussian Splatting Training
wichtounet/dll14,977
语言:
C++
星标数:
689
分叉数:
157
简介:
Fast Deep Learning Library (DLL) for C++ (ANNs, CNNs, RBMs, DBNs...)
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Model Development
子类别Fine-tuning
关键词RL
星标数689
分叉数64
贡献者2
创建日期2025-03-08
更新日期2026-10-14
1 天星标数0
7 天星标数1
排名14,966
上次排名6,616
排名变化-8,350
7 天星标排名10,923
上次 7 天星标排名10,979
7 天星标排名变化56
总星标排名15,059
上次总星标排名15,028
总星标排名变化-31
国家USA
README 摘录

**AutoDidact: Bootstrapping Search Through Self-Verification** **Research exploring how small LLMs can autonomously enhance their own research and reasoning capabilities by generating, researching, and answering self-created question-answer pairs, learning agentic search via reinforcement learning. ** **Credits:** This project was built using Unsloth's Efficient GRPO code, and adds support for function calling and agentic loops. **Autonomous Self-Verification:** Llama-8B evaluates the accuracy of its own answers, creating a self-improving feedback loop. **GRPO Reinforcement Learning:** Implements Group Relative Policy

Optimization (GRPO) to refine Llama-8B’s ability to research, search, and reason effectively. **Fully Autonomous Open-Source Pipeline:** Every step, including question generation, answer research, verification, embedding creation, and reinforcement learning, runs locally using open-source models. On a validation set of 68 questions, **accuracy more than doubled from 23% to 59%**. Hallucinating responses instead of actually querying the corpus. Generating entire sequences where it **role-played both** the search engine and itself, responding to imaginary search results. Through

training, however, the model **learned to reason and search effectively**. It began issuing **well-formed queries**, refining its searches based on partial results, and successfully retrieving accurate answers. The following example demonstrates this learned adaptive search behavior **after training**. **Example Question** **What was the reason for substituting the backup Command Module Pilot 3 days prior to the Apollo 13 flight? **Query** : **Outcome**: Retrieved operational support details, but no explanation for the substitution. **Agent's Action**: Recognized missing information → **Refined query**. **Query

** : **Outcome**: Retrieved general mission anomaly details, but still no direct answer. **Agent's Action**: Increased query specificity. **Query** : **Outcome**: Found general mission reports, but still lacked a clear reason for substitution. **Agent's Action**: Hypothesized illness might be a factor → **Refined query accordingly**. **Query** : **Outcome**: Retrieved the **exact explanation**: **Final Answer** The original Command Module Pilot lacked immunity to measles, necessitating his replacement by Jack Swigert. This example shows how llama learns to do multiple searches to find answers to its questions

. ** ** – Enables semantic search over document corpus. ** ** – Manages document/query embedding generation. ** ** – Controls agent interactions and reward logic. Then, rerun: This will generate new question-answer pairs and build a search index, allowing you to train a research agent on **any dataset**.

常见问题

记录了多少星标和分叉?

dCaples/AutoDidact 有 689 个星标和 64 个分叉。

仓库排名是多少?

dCaples/AutoDidact 排名第 14,966。

记录的语言和类别是什么?

dCaples/AutoDidact 有 689 个星标,语言为 Jupyter Notebook,类别为 Model Development。

哪个仓库排名最接近?

dCaples/AutoDidact 与 Yijunmaverick/CartoonGAN-Test-Pytorch-Torch 比较,后者排名第 14,965,有 689 个星标。

README

AutoDidact: Bootstrapping Search Through Self-Verification

Research exploring how small LLMs can autonomously enhance their own research and reasoning capabilities by generating, researching, and answering self-created question-answer pairs, learning agentic search via reinforcement learning. All running on a single RTX 4090!

Credits: This project was built using Unsloth's Efficient GRPO code, and adds support for function calling and agentic loops.


🚀 Key Features

  • Self-Bootstrapping with Llama-8B: Llama-8B autonomously generates meaningful question-answer pairs from documents, then trains itself to search the corpus effectively to answer these self-generated questions.
  • Autonomous Self-Verification: Llama-8B evaluates the accuracy of its own answers, creating a self-improving feedback loop.
  • GRPO Reinforcement Learning: Implements Group Relative Policy Optimization (GRPO) to refine Llama-8B’s ability to research, search, and reason effectively.
  • Fully Autonomous Open-Source Pipeline: Every step, including question generation, answer research, verification, embedding creation, and reinforcement learning, runs locally using open-source models.

📊 Demonstrated Results

After just 100 steps of GRPO training (1 hour on a single RTX 4090 GPU), Llama-8B significantly improved its ability to research and answer questions from the Apollo 13 mission report.

On a validation set of 68 questions, accuracy more than doubled from 23% to 59%.


🔍 Example: Adaptive Search Trajectory

At the start of training, the model frequently misused the search tool, often:

  • Formatting tool calls incorrectly.
  • Hallucinating responses instead of actually querying the corpus.
  • Generating entire sequences where it role-played both the search engine and itself, responding to imaginary search results.

Through training, however, the model learned to reason and search effectively. It began issuing well-formed queries, refining its searches based on partial results, and successfully retrieving accurate answers.

The following example demonstrates this learned adaptive search behavior after training.

Example Question

What was the reason for substituting the backup Command Module Pilot 3 days prior to the Apollo 13 flight?

Step-by-Step Search Process

  1. Query : "Apollo 13 Command Module Pilot substitution"

    • Outcome: Retrieved operational support details, but no explanation for the substitution.
    • Agent's Action: Recognized missing information → Refined query.
  2. Query : "Apollo 13 Command Module Pilot substitution reason"

    • Outcome: Retrieved general mission anomaly details, but still no direct answer.
    • Agent's Action: Increased query specificity.
  3. Query : "Apollo 13 John 'Jack' Swigert substitution"

    • Outcome: Found general mission reports, but still lacked a clear reason for substitution.
    • Agent's Action: Hypothesized illness might be a factor → Refined query accordingly.
  4. Query : "Apollo 13 Jack Swigert illness substitution"

    • Outcome: Retrieved the exact explanation: "Several days prior to launch, the backup Lunar Module Pilot became sick with measles. Examinations of the prime crew indicated that the Command Module Pilot was not immune to the disease; therefore, the backup Command Module Pilot was substituted."

Final Answer

The original Command Module Pilot lacked immunity to measles, necessitating his replacement by Jack Swigert.

This example shows how llama learns to do multiple searches to find answers to its questions.


📈 Quickstart

Installation

pip install -r requirements.txt

Data Generation & Training

Begin by generating the embeddings, questions, and answers:

python generate_data.py  # Generate QA pairs and embeddings for your documents

Now, run autodidact.ipynb and watch your research agent learn!


🛠️ Code Structure

  • generate_data.py – Automates QA pair generation and indexing.
  • search_module.py – Enables semantic search over document corpus.
  • embeddings.py – Manages document/query embedding generation.
  • rl_helpers.py – Controls agent interactions and reward logic.
  • autodidact.ipynb – Full training pipeline example.

🔬 Customizing the Dataset

Replace the existing Apollo 13 mission report (data/mission_report.md) with your own markdown file. Then, rerun:

python generate_data.py

This will generate new question-answer pairs and build a search index, allowing you to train a research agent on any dataset.


排名相邻
同类项目