7.20. dasllama-cli — dasLLAMA from the shell
dasllama-cli (utils/dasllama-server/cli.das) is the shell front end of
dasLLAMA: the same engine, the same
public facade and the same backend pick as dasllama-server, without the HTTP layer. One model, one conversation,
one process - a script or a cron job asks a model, hears a clip or speaks a
line with no server running. It ships beside the server in every bundle
(dasllama-cli.exe on Linux and Windows,
dasllama-server.app/Contents/MacOS/dasllama-cli on a Mac) and runs from
the source tree under the JIT:
bin/daslang -jit utils/dasllama-server/cli.das -- chat --model <model.gguf>
7.20.1. Commands
Command |
What it does |
|---|---|
|
Complete a prompt, streamed to stdout; the prompt is |
|
A conversation from the terminal, or from |
|
An audio file (wav, mp3, flac, ogg) to text through |
|
Text to a 16-bit WAV through |
|
The chain: |
|
A text’s embedding vector, one float per line, or |
|
A text’s token ids and pieces, one |
|
The llama-bench rows on a model: |
Every example runs as written on a box whose models directory carries the named
files; utils/dasllama-server/test_cli.das runs each one:
dasllama-cli complete -m SmolLM2-135M-Instruct-Q8_0.gguf --quiet "The capital of France is"
dasllama-cli speak --tts kitten-nano.gguf -o hello.wav "Hello from the command line."
dasllama-cli transcribe --asr Qwen3-ASR-0.6B-Q8_0.gguf --mmproj mmproj-Qwen3-ASR-0.6B-bf16.gguf question.wav
dasllama-cli talk --asr Qwen3-ASR-0.6B-Q8_0.gguf --mmproj mmproj-Qwen3-ASR-0.6B-bf16.gguf --model Qwen3.5-0.8B-Q8_0.gguf --tts kokoro-82m.gguf --in question.wav --out answer.wav
dasllama-cli chat -m gemma-4-E2B-it-Q4_K_M.gguf --image-mmproj mmproj-gemma-4-E2B-it-bf16.gguf --audio-mmproj mmproj-gemma-4-E2B-it-bf16.gguf
dasllama-cli bench -m SmolLM2-135M-Instruct-Q8_0.gguf --npl 2 -o md
7.20.3. Tuning
The CLI shares the box’s tune winners with the server: requiring dasLLAMA pulls
in its [tune_scope], and the policy is auto - the first run from the
source tree on an untuned box tunes and relaunches, every later run is instant,
--tune forces a re-tune. A fat bundle carries no tuner: its kernels are the
class clones, and its first dasllama-cli run on a Mac races the Metal crowns
once into dasllama-cli.tune.json beside the program, as the server’s first
run does into its own. See Kernel tuning.
7.20.4. Testing
utils/dasllama-server/test_cli_args.das is the model-free half, run
everywhere: the plan a command line parses to, the help surfaces, the config
file’s keys and roster, the model-path resolution, and the chat loop’s line
logic. utils/dasllama-server/test_cli.das runs every command end to end,
one child process per cell, on the small models a stocked box carries - the
talk chain on two model columns and the picture and the clip through the
gemma-4-E2B towers - and skips by name where a model is absent.
See also
dasllama-server — an OpenAI-compatible server over dasLLAMA - the OpenAI-compatible server the CLI sits beside
dasLLAMA-08 — Audio Chat - the audio turn the /audio command and talk are built on