AlfredPros: CodeLLaMa 7B Instruct Solidity API
Access AlfredPros: CodeLLaMa 7B Instruct Solidity from AlfredPros using Puter.js AI API.
Get Startedalfredpros/codellama-7b-instruct-solidity
Model Card
CodeLlama 7B Instruct Solidity is a fine-tuned 7 billion parameter Code LLaMA model specialized for generating Solidity smart contracts. It was trained using 4-bit QLoRA fine-tuning on a dataset of 6,003 GPT-generated instruction and Solidity code pairs. The model takes human instructions and produces working Solidity code for blockchain applications.
Context Window
N/A
tokens
Max Output
4,096
tokens
Input Cost
$0.8
per million tokens
Output Cost
$1.2
per million tokens
API Usage Example
Add AlfredPros: CodeLLaMa 7B Instruct Solidity to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "alfredpros/codellama-7b-instruct-solidity"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Get started with Puter.js
Add AlfredPros: CodeLLaMa 7B Instruct Solidity to your app without worrying about API keys or setup.
Read the Docs View Tutorials