Docs
Browse documentation

Docs / Reference

CLI reference

Every command and the shared runtime, sampling, context, and backend flags in fermion 0.1.14.

Commands

CommandPurposeCommand-specific options
fermion chatInteractive streaming REPL.--draft
fermion generateOne-shot completion, greedy by default.prompt, --raw, --draft
fermion infoHeader, completeness, SHA-256, and selected backend.--no-checksum
fermion serveOpenAI-compatible local HTTP service.host, port, auth, sessions, tools, draft
fermion inspectContainer geometry, occupancy, bytes, and KV cost.--layer, --projection, --sha256, --json
fermion verifyCompare plain and drafted token streams.--draft required, --prompts
fermion benchSingle-stream local benchmark.--tokens, --prompt, --warmup, --draft

Shared flags and defaults

FlagDefaultMeaning
--modelFermionResearch/Neutrino-8BA local artifact, model directory, or Hugging Face repository id.
--devicecpucpu, mps, or cuda. Native execution requires cpu.
--dtypeautoPyTorch activation dtype: auto, bfloat16, float16, or float32.
--max-new256 generate; 1024 chat/serveMaximum generated tokens.
--temperature0 generate; 0.01 chat/serveZero selects deterministic argmax.
--top-p1.0Nucleus sampling when temperature is above zero.
--rep-penalty1.0 generate; 1.05 chat/serveMultiplicative repetition penalty.
--pen-window256Recent-token window used by repetition penalty.
--backendautoauto, native, or torch. native fails if the optimized runner is unavailable.
--native-binnoneUse a specific native runner binary.
--kv-dtypefp16Native KV storage: fp16, fp32, or int8.
--yarn-factoroffExperimental native-only RoPE scaling.
--yarn-orig-maxmodel maximumOriginal context boundary used by YaRN.

Serve-only flags

FlagDefaultMeaning
--host127.0.0.1Bind address.
--port8000Listening port.
--draftnoneDraft path, model id, or auto.
--api-keynoneRequire a bearer key on /v1 routes.
--corsoffAllow cross-origin browser requests.
--served-model-namecontainer filenameModel id reported by the API.
--max-new-ceiling4096Clamp client token requests to a server maximum.
--session-ctx8192Resident native KV capacity.
--no-sessionoffDisable the resident session runner.
--stuck-detectorenforceenforce, observe, or off.
--stuck-repeat3Repeated identical-call threshold.
--stuck-alt6Strict alternation window.
--stuck-error2Repeated identical-error threshold.
--stuck-whitelistemptyComma-separated tools that may repeat.
--stuck-no-auto-whitelistoffDisable automatic poll-tool detection.
--tool-profilegradedgraded, vendor, vendor-thinking, or antiloop.

Built-in help

shell
fermion --version
fermion --help
fermion serve --help