!PYTHONPATH=$PYTHONPATH:/root/.cache/huggingface/hub/models--RobbiePasquale--lightbulb/snapshots/3d255ef87272610b055f67937014c0b0f69a4b84 python main_menu.py --task advanced_inference --query "Analyze the economic effects of artificial intelligence in the next decade."
Use domain specific distillation to distill the part of the model relevant for you- if you like how llama 3.1 7B responds to healthcare prompts for example, you could use:
Description:
Develops a comprehensive World Model that encapsulates state representations, dynamics, and prediction networks to simulate and predict state transitions within the Tree of Thought framework.
Optimise the KL divergence between the policy of actions (and the tokens that were selected in those actions) and the actual sequences in the training data.
Policy_i = p_i = a_1, ... ,a_n
min - KL(p_i / true_sequences)
Inference:
Thought_i = p_i , ... , p_n
Tree of Thought :
Example:
1
121
122
123
12131
12132
12133
12231
12232
12233
12331
12332
12333
= Graph(system prompt, children = 3, depth = 4, min - KL(p_i / true_sequences))
Graph(Thought_i -> Thought i+1)
Min ThoughtLoss()
Backpropagate back through each section, get gradients for:
The model's goal is to generate a thought, which contains a set of policies, which contains sequences of actions, and an action is a sequence of tokens.
The sequence of tokens is chosen using multi token prediction.
The Thought size is defined based on the user prompt, if the user prompt is in depth, then given the text in the input query, a larger output tree of thought.
Perform the multi token beam search, depending on the action size, for each action will contain a multi token beam search (so an action will contain the state score of k beams for n tokens each time step, for a batch size of b_to).
PPO agent selects the actions given a mcts over actions using their state scores
Based on the tree of thought prompt tree, and given the sequence of actions selected for the policy, feed the chosen policy into the tree of thought, and get the Transformer Language Model to output token sequences based on the tree of thought prompts. There is an actor critic RL agent that selects the next child node in the tree of thought that is used, therefore learning to control how it responds to different user queries. The tree of thought should contain logic for decision making or solving problems in different ways.
Update world model given external evaluation datasets
Given a user prompt, search N websites, using the input search query.
Given meta charactistics of he webpages, use FFN to rank the web pages
Utilise RAG to retrieve and summarize the content from the k highest ranking web pages given the user search query.
Extract and formulate the retrieved information into a custom dataset.
Feed the LLM and World Model the custom search dataset.
Citation
If you use LightBulb in your research, please cite the author:
@misc{RobbiePasquale_lightbulb,
author = {Robbie Pasquale},
title = {LightBulb: An Autonomous Web Search and Language Model Framework},
year = {2024},
publisher = {Huggingface},
howpublished = {\url{https://huggingface.co/RobbiePasquale/lightbulb}},
}
License
This project is licensed under the Apache 2.0 License.