Lllm
Local LLMs in One Line Of Code (thanks to llamafile)
Install / Use
/learn @disler/LllmREADME
LLLM - Local LLMs with llamafile

Quick setup
Get up and running quickly with these instructions
- Download these files from the docs and place them in this directory
- Run the commands below
Commands
Run these commands from this directory
- Run a prompt on mistral-7b, no logging
./mistral-7b-instruct-v0.1-Q4_K_M-main.llamafile -p "list 5 pros and cons of python" --log-disable
- Run the self contained, web server UI for mistral-7b
./mistral-7b-instruct-v0.1-Q4_K_M-server.llamafile
- Run wizard coder
./wizardcoder-python-13b-main.llamafile
Reusable bash function (local_llm.sh:lllm())
Let's build a reusable local llm function to call local LLMs from anywhere.
There are many better ways to do this, but heres a simple, quick way to get local LLMs anywhere in your terminal’
I recommend checking out ‘LLM’ for a complete in terminal, LLM solution.
- Test out the lllm() function with
source local_llm.sh - Example commands
lllm "Explain LLM architecture"lllm "list 5 pros and cons of python" mistral 0.9lllm "count items in list that are str and bool types" wizard
- Move the lllm function into your .bashrc or .zshrc or .bash_profile
- Now you can call lllm() from anywhere in your terminal
Resources
- watch the devlog where we create this repo
- https://youtu.be/XnoKvdeZAN8
- llamafile codebase
- https://github.com/Mozilla-Ocho/llamafile/tree/0.3
- Original llamafile introduction
- https://hacks.mozilla.org/2023/11/introducing-llamafile/
- Core author - creator of llamafile * cosmopolitan
- https://justine.lol/
- Original Blog Post
- https://justine.lol/oneliners/
- How llamafile works
- https://github.com/Mozilla-Ocho/llamafile/tree/0.3?tab=readme-ov-file#how-llamafile-works
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
