simonw--llm
894dd4f1cc
Test / test (==1.10.2, 3.8) (push) Has been cancelled
Test / test (==1.10.2, 3.9) (push) Has been cancelled
Test / test (>=2.0.0, 3.10) (push) Has been cancelled
Test / test (==1.10.2, 3.10) (push) Has been cancelled
Test / test (==1.10.2, 3.11) (push) Has been cancelled
Test / test (==1.10.2, 3.7) (push) Has been cancelled
Test / test (>=2.0.0, 3.11) (push) Has been cancelled
Test / test (>=2.0.0, 3.7) (push) Has been cancelled
Test / test (>=2.0.0, 3.8) (push) Has been cancelled
Test / test (>=2.0.0, 3.9) (push) Has been cancelled
2.3 KiB
2.3 KiB
LLM
A CLI utility and Python library for interacting with Large Language Models, including OpenAI, PaLM and local models installed on your own machine.
Background on this project:
- llm, ttok and strip-tags—CLI tools for working with ChatGPT and other LLMs
- The LLM CLI tool now supports self-hosted language models via plugins
- Accessing Llama 2 from the command-line with the llm-replicate plugin
- Run Llama 2 on your own Mac using LLM and Homebrew
- Catching up on the weird world of LLMs
For more check out the llm tag on my blog.
Quick start
First, install LLM using pip or Homebrew:
pip install llm
Or with Homebrew:
brew install llm
If you have an OpenAI API key key you can run this:
# Paste your OpenAI API key into this
llm keys set openai
# Run a prompt
llm "Ten fun names for a pet pelican"
# Run a system prompt against a file
cat myfile.py | llm -s "Explain this code"
Or you can {ref}install a plugin <installing-plugins> and use models that can run on your local device:
# Install the plugin
llm install llm-gpt4all
# Download and run a prompt against the Vicuna model
llm -m orca-mini-7b 'What is the capital of France?'
Contents
---
maxdepth: 3
---
setup
usage
other-models
embeddings/index
plugins/index
aliases
python-api
reference
templates
logging
related-tools
help
contributing
changelog