meta / codellama-70b-instruct

A 70 billion parameter Llama tuned for coding and conversation

  • Public
  • 21.9K runs
  • A100 (80GB)
  • GitHub
  • Paper
  • License

Input

*string
Shift + Return to add a new line

Prompt

string
Shift + Return to add a new line

System prompt to send to CodeLlama. This is prepended to the prompt and helps guide system behavior.

Default: ""

integer

Max number of tokens to return

Default: 500

number

Temperature

Default: 0.8

number

Top P

Default: 0.95

integer

Top K

Default: 10

number
(minimum: 0, maximum: 2)

Frequency penalty

Default: 0

number
(minimum: 0, maximum: 2)

Presence penalty

Default: 0

number
(minimum: 0, maximum: 2)

Repetition penalty

Default: 1.1

Output

📂 To list all text files (.txt extension) in the current directory (excluding subdirectories) that have been modified in the last month, you can use a combination of `find` and `ls`: ```bash ls -1t $(find . -type f -name "*.txt" -mtime -30d | sort) ``` 🔧 Here's how it works: * `find . -type f -name "*.txt"`: Finds all text files in the current directory (excluding subdirectories). `-type f` means regular file. `-name "*.txt"` means files with a `.txt` extension. * `-mtime -30d`: Specifies that we're interested only in those text files that have been modified within the last 30 days. The `find` command accepts a range, so `-30d` is interpreted as "less than or equal to 30 days". * `$( )` : Captures the output of the `find` command and uses it as an input for the `ls -1t` command. * `ls -1t`: Lists files in a single column (`-1`) sorted by modification time (`-t`). The result will be a list of text files, sorted with the most recently modified first. This approach relies on `find` to search and filter for relevant files based on criteria like file type, name, and modification date. Then, it passes those results through `sort` before feeding them to `ls -1t`, which displays the list of files in a single column sorted by their modification time (newest first). **Note:** If you're using MacOS or Linux with GNU findutils installed, you can use `-mtime +30d` instead of `-mtime -30d`. This is because on these platforms, the meaning of `-30d` is "more than 30 days". Source: assistant
Generated in

Run time and cost

This model costs approximately $0.038 to run on Replicate, or 26 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 28 seconds.

Readme

CodeLlama is a family of fine-tuned Llama 2 models for coding. This is CodeLlama-70b-Instruct, a 70 billion parameter Llama model tuned for chatting about code.