Updated source code link
Browse files
README.md
CHANGED
|
@@ -12,8 +12,9 @@ widget:
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# A code generation T5 model for solidity (web3 smart contract)
|
|
|
|
| 15 |
|
| 16 |
-
##
|
| 17 |
- A hello world example to use this model, notice the input `text` includes
|
| 18 |
- Header solidity version like `pragma solidity ^0.5.7`
|
| 19 |
- Ancestor class/library info, e.g. public functions and constants from `ParentA`
|
|
@@ -101,7 +102,7 @@ function initialSupply() public view returns (uint256) {
|
|
| 101 |
}
|
| 102 |
}
|
| 103 |
```
|
| 104 |
-
- Source training code:
|
| 105 |
|
| 106 |
## Future TODO
|
| 107 |
- The model is significantly under-trained because of lack of GPU budget, need 10x colab resources (~$100 for full train)
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# A code generation T5 model for solidity (web3 smart contract)
|
| 15 |
+
- See https://github.com/hululuzhu/solidity-t5 for more context
|
| 16 |
|
| 17 |
+
## How to use this trained model
|
| 18 |
- A hello world example to use this model, notice the input `text` includes
|
| 19 |
- Header solidity version like `pragma solidity ^0.5.7`
|
| 20 |
- Ancestor class/library info, e.g. public functions and constants from `ParentA`
|
|
|
|
| 102 |
}
|
| 103 |
}
|
| 104 |
```
|
| 105 |
+
- Source training code: See the [end to end notebook](https://github.com/hululuzhu/solidity-t5/blob/main/code/Solidity_T5_Data_Processing_and_Training.ipynb) at code dir here
|
| 106 |
|
| 107 |
## Future TODO
|
| 108 |
- The model is significantly under-trained because of lack of GPU budget, need 10x colab resources (~$100 for full train)
|