Downloads · 30 days
9
35% of all-time downloads
Wolf-moon/smart_contact_scam_detecting
smart_contact_scam_detecting is a machine learning model from Wolf-moon. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
9
35% of all-time downloads
All-time downloads
26
Public
Repo size
288 MB
Likes
0
Public
Click a slice to open those files.
.zip161 MB · 53%
From the Hugging Face model README
This project leverages Deep Learning and Natural Language Processing (NLP) to detect vulnerabilities and scam patterns in Solidity Smart Contracts. By fine-tuning the pre-trained GraphCodeBERT model, the system classifies contracts as either "Safe" or "Scam" with high accuracy.
The model weights are hosted on Hugging Face Hub to handle large file sizes efficiently, while the source code resides here on GitHub.
microsoft/graphcodebert-base (State-of-the-art for code understanding).The model was trained on a dataset containing Solidity smart contracts labeled as:
Dataset preprocessing involved tokenization, truncation (512 tokens), and dynamic padding.
git clone [https://github.com/Trust-in-depth/Smartcontrats.git](https://github.com/Trust-in-depth/Smartcontrats.git)
cd smartcontrats