meta/codellama-7b-instruct 🔢📝 → 📝
About
A 7 billion parameter Llama tuned for coding and conversation

Example Output
"Write a javascript function that calculates euclidean distance between two coordinates of any dimension"
Output
Here is an example of how you could define such a function in JavaScript:
function computeEuclideanDistance(coord1, coord2) {
// Get the dimensions of both coordinate arrays
var dim1 = coord1.length;
var dim2 = coord2.length;
// Initialize the sum of squared differences
var sumOfSquaredDifferences = 0;
// Iterate over each element in both coordinate arrays and calculate the difference and square it to get the squared difference and then add up all these squared differences to get the total sum of squared differences.
for ( var i = 0; i < Math.min(dim1, dim2)); i++) {
sumOfSquaredDifferences += Math.pow((coord1[i]) - ((coord2[i]))), 2);
}
return Math.sqrt(sumOfSquaredDifferences)), dim1 + dim2));
}
Performance Metrics
All Input Parameters
{ "debug": false, "top_k": 250, "top_p": 0.95, "prompt": "Write a javascript function that calculates euclidean distance between two coordinates of any dimension", "temperature": 0.95, "max_new_tokens": 500, "min_new_tokens": -1, "repetition_penalty": 1.15, "repetition_penalty_sustain": 256, "token_repetition_penalty_decay": 128 }
Input Parameters
- top_k
- Top K
- top_p
- Top P
- prompt (required)
- Prompt
- max_tokens
- Max number of tokens to return
- temperature
- Temperature
- system_prompt
- System prompt to send to CodeLlama. This is prepended to the prompt and helps guide system behavior.
- repeat_penalty
- Repetition penalty
- presence_penalty
- Presence penalty
- frequency_penalty
- Frequency penalty
Output Schema
Output
Example Execution Logs
Prompt: [INST] <<SYS>> <</SYS>> Write a javascript function that calculates euclidean distance between two coordinates of any dimension [/INST] ** Speed: 78.34 tokens/second
Version Details
- Version ID
aac3ab196f8a75729aab9368cd45ea6ad3fc793b6cda93b1ded17299df369332
- Version Created
- January 8, 2024