mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 22:00:27 +00:00
Update cheatsheets
This commit is contained in:
16
tldr/llm
16
tldr/llm
@@ -16,22 +16,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`llm "{{Ten fun names for a pet pelican}}"`
|
||||
|
||||
- Run a [s]ystem prompt against a file:
|
||||
- Run a system prompt against a file:
|
||||
|
||||
`cat {{path/to/file.py}} | llm --system "{{Explain this code}}"`
|
||||
`cat {{path/to/file.py}} | llm {{[-s|--system]}} "{{Explain this code}}"`
|
||||
|
||||
- Install packages from PyPI into the same environment as LLM:
|
||||
|
||||
`llm install {{package1 package2 ...}}`
|
||||
|
||||
- Download and run a prompt against a [m]odel:
|
||||
- Download and run a prompt against a model:
|
||||
|
||||
`llm --model {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"`
|
||||
`llm {{[-m|--model]}} {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"`
|
||||
|
||||
- Create a [s]ystem prompt and [s]ave it with a template name:
|
||||
- Create a system prompt and save it with a template name:
|
||||
|
||||
`llm --system '{{You are a sentient cheesecake}}' --save {{sentient_cheesecake}}`
|
||||
`llm {{[-s|--system]}} '{{You are a sentient cheesecake}}' --save {{sentient_cheesecake}}`
|
||||
|
||||
- Have an interactive chat with a specific [m]odel using a specific [t]emplate:
|
||||
- Have an interactive chat with a specific model using a specific template:
|
||||
|
||||
`llm chat --model {{chatgpt}} --template {{sentient_cheesecake}}`
|
||||
`llm chat {{[-m|--model]}} {{chatgpt}} {{[-t|--template]}} {{sentient_cheesecake}}`
|
||||
|
||||
Reference in New Issue
Block a user