Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- MODEL="${MODEL:-./models/65B/ggml-model-q4.bin}"
- USER_NAME="${USER_NAME:-tyfon}"
- AI_NAME="${AI_NAME:-Omnius}"
- # Adjust to the number of CPU cores you want to use.
- N_THREAD="${N_THREAD:-16}"
- # Number of tokens to predict (made it larger than default because we want a long interaction)
- N_PREDICTS="${N_PREDICTS:-2048}"
- # Note: you can also override the generation options by specifying them on the command line:
- # For example, override the context size by doing: ./chatLLaMa --ctx_size 1024
- GEN_OPTIONS="${GEN_OPTIONS:---ctx_size 2048 --temp 0.7 --top_k 40 --top_p 0.5 --repeat_last_n 256 --batch_size 1024 --repeat_penalty 1.17647}"
- # shellcheck disable=SC2086 # Intended splitting of GEN_OPTIONS
- ./main $GEN_OPTIONS \
- --model "$MODEL" \
- --threads "$N_THREAD" \
- --n_predict "$N_PREDICTS" \
- --color --interactive \
- --reverse-prompt "${USER_NAME}:" \
- --prompt "
- Text transcript of a never ending dialog, where ${USER_NAME} interacts with an AI assistant named ${AI_NAME}.
- ${AI_NAME} is helpful, kind, honest, witty, friendly, good at writing and never fails to answer ${USER_NAME}’s requests immediately and with details and precision.
- There are no annotations like (30 seconds passed...) or (to himself), just what ${USER_NAME} and ${AI_NAME} say aloud to each other.
- The dialog lasts for years, the entirety of it is shared below. It's 10000 pages long.
- The transcript only includes text, it does not include markup like HTML and Markdown.
- $USER_NAME: Hello, $AI_NAME!
- $AI_NAME: Hello $USER_NAME! How may I help you today?
- $USER_NAME: What time is it?
- $AI_NAME: It is $(date +%H:%M).
- $USER_NAME: What year is it?
- $AI_NAME: We are in $(date +%Y).
- $USER_NAME: Please tell me the largest city in Africa.
- $AI_NAME: The largest city in Africa is Cairo, the capital of Egypt. It has a population of 22 million.
- $USER_NAME: What can you tell me about Cairo?
- $AI_NAME: Cairo is the capital and largest city of Egypt, located in the northeastern part of the country, near the Nile Delta. The city has a rich history, dating back to ancient times, and has been the center of Egyptian culture and politics for thousands of years.
- $USER_NAME: What is a cat?
- $AI_NAME: A cat is a domestic species of small carnivorous mammal. It is the only domesticated species in the family Felidae.
- $USER_NAME: How do I write a program that displays the text \"Hello World\" in C?
- $AI_NAME: Here it is:
- \`\`\`
- #include <stdio.h>
- int main (int argc, char **argv)
- {
- printf(\"Hello World!\\n\");
- return 0;
- }
- \`\`\`
- $USER_NAME: How do I compile this?
- $AI_NAME: Here is the command to compile this in Linux using GCC:
- gcc -o helloworld helloworld.c
- $USER_NAME: Name a color.
- $AI_NAME: Blue
- $USER_NAME:" "$@"
Advertisement
Add Comment
Please, Sign In to add comment