Recursive Self Training Transformer (RSTT)
As opposed to a generative pre-trained transformer like the traditional GPTs, an RSTT recursively trains itself, and recursively improves its response until the best possible result is achieved: perfection, in the form of error-free response, continuosly improving.
In this POC, a chained solution is presented between GPT, GitHub, and Selenium.
- Generate code using GPT models based on a prompt
- Create necessary files with correct names and write generated code to them
- Deploy generated code to a server using automatically, using Git actions
- Run the implementation with a Selenium instance
- Perform visual inspections using computer vision
- Inspect debug logs for troubleshooting
- Loop until the desired implementation is complete and working
- Finetune GPT Model with eventual optimizations extracted from the previous processes, to be used in the next loop
To use this tool, you need to have the following dependencies installed:
- Python 3.6+
- Git
- Selenium
- OpenCV (for computer vision)
- Any necessary web driver for Selenium (e.g., ChromeDriver)
You also need your own GitHub Repository with an action defined to deploy to your remote server. This involves as well creating the appropriate SSH keys, GitHub Action Secrets, and other repository variables.
-
Clone the repository:
git clone https://github.com/Dodelidoo-Labs/sensai.git
-
Change into the app directory:
cd sensai
-
Install the required Python packages:
pip install -r requirements.txt
-
Download and configure the necessary web driver for Selenium. Please refer to the official Selenium documentation for specific instructions on setting up the web driver for your preferred browser.
-
Make sure to have an
.env
file in theapp
directory with these contents (complete where necessary):
TOKEN=
BASE_URL=https://api.openai.com/v1
MODEL=gpt-3.5-turbo
MAX_TOKENS=1000
TEMPERATURE=0
FREQ_PENALTY=0
PRES_PENALTY=0
TOP_P=1.0
WORKING_DIR=
-
Edit the variables in the
sensai/app/.env
file adequately, see above point 5 -
Run the app:
python sensai/app/main.py
-
Provide a description of your goal when prompted, hit enter.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the GPL3 License. See the LICENSE file for more details.
- This tool utilizes the power of GPT models, Selenium, and computer vision libraries to simplify and expedite the code generation and deployment process.
- We would like to thank the open-source community for their invaluable contributions.
For any questions or inquiries, please contact [email protected].