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

Example Output
Prompt:
"Write a javascript function that calculates euclidean distance between two coordinates of any dimension"
Output
function getEuclideanDistance(coord1, coord2) {
// Calculate the difference between each coordinate pair in both sets.
diffX = Math.abs(coord1[0] - coord2[0])) {
diffY = Math.abs(coord1[1] - coord2[1])))) {
diffZ = Math.abs(coord1[2] - coord2[2]]))))))) ???');
return dist; } var exampleCoordsArray = [[34.659,-118.8],[34.672,-118.7]], output = calculateEuclideanDistanceForTwoDimensionalCoordinatesOfAnyLength(exampleCoordsArray)); console.log('The output is: ', output]);
Performance Metrics
3.62s
Prediction Time
3.57s
Total Time
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
- debug
- provide debugging output in logs
- top_k
- When decoding text, samples from the top k most likely tokens; lower to ignore less likely tokens
- top_p
- When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
- prompt (required)
- Prompt to send to CodeLlama.
- temperature
- Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
- system_prompt
- System prompt to send to CodeLlama. This is prepended to the prompt and helps guide system behavior.
- max_new_tokens
- Maximum number of tokens to generate. A word is generally 2-3 tokens
- stop_sequences
- A comma-separated list of sequences to stop generation at. For example, '<end>,<stop>' will stop generation at the first instance of 'end' or '<stop>'.
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: 47.62 tokens/second
Version Details
- Version ID
be553392065353425e0f0193d2a896d6a5ff201549f5d7cd9180c8dfdeac39ed
- Version Created
- September 6, 2023