Meta
Meta

Meta: CodeLlama 70B Instruct

meta-llama/codellama-70b-instruct

Code Llama is a family of large language models for code. This one is based on Llama 2 70B and provides zero-shot instruction-following ability for programming tasks.

Context Window

2,048

0

Using Meta: CodeLlama 70B Instruct with Python API

Using Meta: CodeLlama 70B Instruct with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="meta-llama/codellama-70b-instruct",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)