Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Last active August 2, 2023 13:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cecilemuller/3aca6effebb0d9642506142f01184e06 to your computer and use it in GitHub Desktop.
Save cecilemuller/3aca6effebb0d9642506142f01184e06 to your computer and use it in GitHub Desktop.
LLM on MacOS
brew install llm
llm install llm-llama-cpp
llm install llama-cpp-python
llm llama-cpp download-model https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q8_0.bin --alias llama2-7b --llama2-chat
llm llama-cpp download-model https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/llama-2-13b-chat.ggmlv3.q8_0.bin --alias llama2-13b --llama2-chat
llm llama-cpp download-model https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GGML/resolve/main/Wizard-Vicuna-7B-Uncensored.ggmlv3.q4_0.bin --alias wizard-7b --alias autocomplete
llm -m llama2-7b 'Tell me a joke about a bird' --system 'You are funny'
llm -m llama2-13b 'Tell me a joke about a bird' --system 'You are funny'
llm -m autocomplete 'A cocktail recipe involving oranges:'
llm 'Another recipe:' --continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment