Update README.md
Browse files
README.md
CHANGED
@@ -6,6 +6,9 @@ tags:
|
|
6 |
model-index:
|
7 |
- name: solidity-generator
|
8 |
results: []
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -13,17 +16,33 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
|
14 |
# solidity-generator
|
15 |
|
16 |
-
This model is a
|
17 |
-
|
18 |
-
- Loss: 0.2180
|
19 |
|
20 |
## Model description
|
21 |
|
22 |
-
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
-
More information needed
|
27 |
|
28 |
## Training and evaluation data
|
29 |
|
@@ -63,4 +82,4 @@ The following hyperparameters were used during training:
|
|
63 |
- Transformers 4.31.0
|
64 |
- Pytorch 2.0.1+cu118
|
65 |
- Datasets 2.14.3
|
66 |
-
- Tokenizers 0.13.3
|
|
|
6 |
model-index:
|
7 |
- name: solidity-generator
|
8 |
results: []
|
9 |
+
datasets:
|
10 |
+
- mwritescode/slither-audited-smart-contracts
|
11 |
+
pipeline_tag: text-generation
|
12 |
---
|
13 |
|
14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
16 |
|
17 |
# solidity-generator
|
18 |
|
19 |
+
This model is a model specialized in generating Solidity contract codes. Derived from the [codeparrot/codeparrot-small](https://huggingface.co/codeparrot/codeparrot-small) model by Hugging Face, it's been meticulously trained on an extensive set of Solidity contracts and patterns, making it apt for assisting in drafting or suggesting contract structures.
|
20 |
+
|
|
|
21 |
|
22 |
## Model description
|
23 |
|
24 |
+
This model has been designed specifically for generating Solidity contracts. Being a derivative of the `codeparrot-small` model, it retains the broader capabilities of the parent model while demonstrating a keen proficiency in understanding and generating Solidity-centric texts.
|
25 |
|
26 |
+
### Performance
|
27 |
+
|
28 |
+
The model reported a loss of `0.2180` on the evaluation set.
|
29 |
+
|
30 |
+
## Intended Uses & Limitations
|
31 |
+
|
32 |
+
|
33 |
+
### Intended Uses:
|
34 |
+
1. Assist developers by auto-generating contract code snippets based on prompts.
|
35 |
+
2. Help in understanding and drafting complex contract structures.
|
36 |
+
|
37 |
+
### Limitations:
|
38 |
+
1. The generated code must be reviewed for security and functional correctness.
|
39 |
+
2. The clarity of the generated code largely depends on the specificity of the prompt.
|
40 |
+
|
41 |
+
## Training Details
|
42 |
+
|
43 |
+
### Dataset
|
44 |
+
The model was fine-tuned on an undisclosed dataset comprised of a range of Solidity contracts.
|
45 |
|
|
|
46 |
|
47 |
## Training and evaluation data
|
48 |
|
|
|
82 |
- Transformers 4.31.0
|
83 |
- Pytorch 2.0.1+cu118
|
84 |
- Datasets 2.14.3
|
85 |
+
- Tokenizers 0.13.3
|