Model inference
geniex pull
Download a model and store it locally.
Pulling from a local path:
pull copies files into the GenieX cache. After a successful pull you can safely delete the source to avoid keeping two copies.geniex infer — LLM
Launch an interactive chat session with a language model.
--compute) — pick which compute unit runs the model (default: npu):
geniex infer — VLM
Run vision-language inference with text-only or image input:
geniex serve
Start the OpenAI-compatible local server. See Local server for the API.
message.content into message.reasoning_content, set the per-request reasoning_format field — see Separating reasoning.
Logging
--log is a global flag controlling the CLI’s log output. It is equivalent to the GENIEX_LOG environment variable and takes precedence over it when both are set.
Configuration flags
These flags can be passed togeniex infer to control model loading and generation.
Sampler flags
Control how the model selects tokens during generation.Model flags
Control model loading, context, and generation limits.Increasing the context length
The context window (--nctx) is how much the model can hold at once. When a conversation grows past it you get a context length exceeded error. How to raise it depends on the runtime:
-
llama.cpp (GGUF):
--nctx <N>raises the window at runtime, up to the model’s trained maximum. A larger window uses more KV-cache memory. -
Qualcomm AI Engine Direct (NPU): the context length is baked into the compiled bundle and cannot be raised at runtime —
--nctxhas no effect. Instead:- Add
--sliding-windowto keep chatting past the limit: the oldest context above a small anchored prefix is evicted instead of erroring. - For a genuinely larger window, pull a bundle compiled for a longer context from Qualcomm AI Hub. See Qualcomm AI Engine Direct runtime constraints.
- Add
Utility commands
Was this page helpful?