Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Clarity-AI-Agent is a project aimed at enhancing the development of decentralized applications (dApps) by fine-tuning LLMs to assist developers in writing smart contracts using the Clarity language

Notifications You must be signed in to change notification settings

OriolPalacios/Clarity-AI-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clarity-AI-Agent

Demo Video

YouTube Demo

Overview

Clarity-AI-Agent is a project aimed at enhancing the development of decentralized applications (dApps) by fine-tuning AI models to assist developers in writing smart contracts using the Clarity language. The project focuses on data augmentation techniques to enrich a dataset containing questions, chain-of-thought (CoT) processes, and code responses, which are then utilized to fine-tune the deepseek r1 model using Low-Rank Adaptation (LoRA).

Clarity AI Extension

Clarity AI Agent Extension

Installation

Python 3.13.1 venv

  1. Make sure you have Python 3.13.1 installed.
  2. Create a virtual environment:
    python -m venv venv
  3. Activate the virtual environment:
    source venv/bin/activate
  4. Install the required packages:
    pip install -r requirements.txt

Data Augmentation

We rely on gemini 2.0 flash, gemini 2.0 pro, and qwen qwq to paraphrase questions and chain-of-thought (CoT) segments using openrouter. We exclude code responses from this process to prevent hallucinations, ensuring the integrity of the generated content.

The following tools and libraries are used in this project:

  • Pandas: For dataset manipulation and processing
  • OpenAI API: For generating additional training data
  • PyTorch: For model training and fine-tuning
  • Hugging Face Transformers: For working with the deepseek r1 model
  • PEFT: For efficient LoRA fine-tuning techniques

Pretrained Model

The fine-tuned model is available on Hugging Face: Hugging Face

You can access and download all model files from the repository above to use the fine-tuned DeepSeek-R1 model for Clarity smart contract development.

Training Metrics

Training metrics and experiment tracking are available on Weights & Biases: Weights & Biases

This report contains detailed information about the fine-tuning process, including loss curves, evaluation metrics, and hyperparameter configurations used during model training.

Contributors

Joel Vegas Jonathan Nolasco Oriol Palacios

About

Clarity-AI-Agent is a project aimed at enhancing the development of decentralized applications (dApps) by fine-tuning LLMs to assist developers in writing smart contracts using the Clarity language

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •