meta/codellama-13b-instruct ✓🔢📝 → 📝

▶️ 61.2K runs 📅 Aug 2023 ⚙️ Cog 0.8.6 🔗 GitHub 📄 Paper ⚖️ License
code-generation text-generation

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 Type: booleanDefault: false
provide debugging output in logs
top_k Type: integerDefault: 50Range: 0 - ∞
When decoding text, samples from the top k most likely tokens; lower to ignore less likely tokens
top_p Type: numberDefault: 0.9Range: 0 - 1
When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
prompt (required) Type: string
Prompt to send to CodeLlama.
temperature Type: numberDefault: 0.75Range: 0.01 - 5
Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
system_prompt Type: stringDefault:
System prompt to send to CodeLlama. This is prepended to the prompt and helps guide system behavior.
max_new_tokens Type: integerDefault: 128Range: 1 - ∞
Maximum number of tokens to generate. A word is generally 2-3 tokens
stop_sequences Type: string
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

Type: arrayItems Type: string

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
Run on Replicate →