Skip to main content

Protocol GPT

Protocol GPT

Our platform blends AI with blockchain to provide specialized GPT models, fostering a community-driven marketplace. It emphasizes transparency and scalability in DApp development, using Cartesi's Linux VM for blockchain-verified AI models
Hackathon ProjectAI/ML

Team

Mehmet Fahri Bilici
Ege Arikan
Dogukan Ali Gundogan
Cem Denizsel

Share project

About Protocol GPT

We have a login mechanism that takes wallet address and then shows WorldCoin QR. When a user finishes the authentication, the json result is sent to our smart contract to verify user on chain. After the verification whenever the user want to create a protocol, if he/she is verified, the creation process is starts.

In order to validate users uniqueness we use Proof of personhood of WorldCoin. In our first smart contract that interacts with our frontend we receive the root, nullifierHash and the proof which was generated on the frontend. then we use them to verify that this user is unique and interacts with us through our frontend. after verification then we let the user send a prompt to our personalised GPT Model. in Cartesi. This happens through Hyperlane. Our verifier contract sends the prompt or the GPTData contract creation method via Hyperlane to our another contract in Scroll. Scroll provides proofs for each tx thanks to its zk-evm nature so every step until our LLM model is verifiable. Then those messages come to our Factory Contract in Scroll and according to commands either a new data contract is created to feed our model or we directly send our prompt to our model.

We used huggingface models in our first trial. Due to Cartesi Linux runtime uses risc-v architecture some of the dependencies cant be compiled. Because of that we used LLAMA 2 cpp version. With this version ve are using llama 2 7B version with 4 bit quantization. So we are using less memory for loading model. This approach solved our dependency issue. Hence our current DApp which serves as custom gpt model almost ready to deploy Cartesi Machine We are also using inspect requests in our dapp to in order to show what information we stored so we are ensuring transparency.

Describe what could be next for your project?

Adding different models like image generation

Last updated: Dec 11, 2023
Anyone is free to submit information about their project. Do your own research and use your best judgment when using or interacting with any of the projects listed in this directory. Being listed in this directory is not an endorsement from the Cartesi Foundation or any other related entity.

Explore similar projects

ChainGPT
Hackathon Project

ChainGPT

Decentralised & verifiable chat AI, backed by the blockchain: a port of Alpaca LLM model leveraging the Cartesi app-specific rollups

Last updated: Oct 20, 2023
Decentralized Air Quality Classifier
Hackathon Project

Decentralized Air Quality Classifier

This project leverages the Cartesi Rollups technology to offer a decentralized solution for real-time AQI prediction. By integrating machine learning algorithms, Data Analysis techniques and a vast spectrum of environmental data, we aim to provide accurate and real-time AQI predictions.

Last updated: Nov 29, 2023
Lilium
In progress - Alpha

Lilium

Lilium DApp is a pioneering project dedicated to environmental conservation through the generation and trading of verified carbon credits.

Last updated: Dec 11, 2023