# ============================================================================= # nlmx ask — settings of the assistant (Maxson), its language model and its # guardrails. A .ask file in TOML syntax. Every key is optional; the command # line wins over the file. Unknown keys are errors. # # nlmx ask -c nlmx.ask "screen data/pk.csv and tell me which model to keep" # # The guardrails in [policy] and [limits] are enforced by nlmx itself, outside # the language model: whatever the model replies, a command that breaks them # is refused before it runs. See docs/ASK.md. # ============================================================================= [assistant] name = "Maxson" # the assistant's name (how it introduces itself) # instructions_file = "my_rules.md" # your own instructions, in plain words instructions_mode = "append" # append: after the built-in instructions # replace: instead of them (the protocol and the # guardrails are always kept) mode = "auto" # auto : Maxson runs analyses or guides you, as you ask # guide: nothing runs; Maxson explains and shows the # commands for you to type (/guide, /auto switch # it during a conversation) manual = true # give Maxson the manual sections that match each request [model] # backend = "embedded" # --llm-backend embedded | server | mock # embedded : llama.cpp inside nlmx (built in by default) and a GGUF model # file; nothing leaves this computer # server : an OpenAI-compatible server on this computer (llama.cpp # `llama-server`, Ollama, LM Studio) at `url` # mock : replies read from `script` (tests and demonstrations) # default : embedded (server only in a build made with --no-default-features) # path = "models/qwen2.5-3b-instruct-q4_k_m.gguf" # --llm-model GGUF file (embedded) # when no file is given (here, --llm-model or the NLMX_MODEL variable), the # first .gguf file is used from: `models` next to nlmx, the folder of nlmx, # `models` in the start folder, the start folder url = "http://127.0.0.1:8080" # --llm-url server address (OpenAI-compatible API); # Ollama: http://127.0.0.1:11434 name = "qwen2.5:3b-instruct" # --llm-name model name the server knows # script = "replies.json" # --llm-script JSON list of replies (mock) temperature = 0.1 # 0 = always the most likely word; low is best for planning max_tokens = 768 # longest reply of the model (tokens) context = 8192 # context window (tokens); the history is trimmed to fit # threads = 4 # CPU threads of the embedded model (default: all; --threads) gpu_layers = "auto" # layers run on a GPU (embedded): auto (all, when this build has # GPU support and a GPU is present) | all | off | a number; --llm-gpu-layers seed = 20241024 # sampling seed (embedded) grammar = true # constrain the replies to the JSON protocol (embedded); # a server gets it only when this is set here # (llama.cpp servers use it; others may refuse it) json_mode = true # ask a server for a JSON object (response_format); # set false if your server refuses it timeout_seconds = 600 # longest wait for one reply [policy] # The commands Maxson may run. Leave a command out to forbid it. `ask` itself, # `resume`, `simulate-study` and `version` are not in the default list. commands = ["inspect", "validate", "qc-data", "qc-nm", "eda", "custom", "report", "nca", "autoinit", "screen", "fit", "vpc", "forest", "cov", "posterior", "sims", "er", "generate", "schema"] # Options Maxson may never use, besides the built-in ones (--overwrite, # --log-file, --print-config, --run-dir, --keep-subject-ids): forbid_options = [] # e.g. ["--param-uncertainty", "--all-equations"] # Folders Maxson may read from, besides the folder nlmx ask is started in # (and its subfolders) and the session folder: read_dirs = [] # e.g. ["../shared_data"] confirm = "every" # every | long | none: which steps need your "yes" # every: every command (default) # long : screen, fit, cov, posterior, vpc, sims, er, generate # none : none (only when you trust the settings) allow_yes = true # whether --yes may skip the confirmations allow_remote_server = false # the server must be on this computer (127.0.0.1, # localhost) unless this is true settings_files = true # every command that has a settings file runs with one # (-c): Maxson writes it from the command's template, or # nlmx writes the template's defaults; `fit` runs with # every estimation setting written out. A copy of the # file goes into the step's folder (reproducibility). [policy.max_values] # The largest value Maxson may give a numeric option. "--subproblems" = 1000 "--samples" = 5000 "--study-replicates" = 200 "--replicates" = 1000 # "--threads" = 4 [limits] max_rounds = 12 # model replies per request max_steps = 15 # commands per request step_timeout_minutes = 120 # a command running longer is stopped total_minutes = 480 # a request running longer is stopped result_chars = 3500 # how much of each command's listing the model reads fix_attempts = 2 # when a command fails, corrected commands Maxson may # try (each still checked and confirmed); 0 = stop manual_chars = 3000 # how much of the manual, a template or a file Maxson # reads at once