Back to Models

AlfredPros: CodeLLaMa 7B Instruct Solidity

alfredpros/codellama-7b-instruct-solidity

Description

A finetuned 7 billion parameters Code LLaMA - Instruct model to generate Solidity smart contract using 4-bit QLoRA finetuning provided by PEFT library.

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: AlfredPros: CodeLLaMa 7B Instruct Solidity (alfredpros/codellama-7b-instruct-solidity)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "alfredpros/codellama-7b-instruct-solidity",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the AlfredPros: CodeLLaMa 7B Instruct Solidity model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 0.7$ / 1M tokens
  • Output: 1.1$ / 1M tokens

Token Limits

  • Max Output: 8,192 tokens
  • Max Context: 8,192 tokens

Subscription Tiers

  • free
  • pro
  • ultimate