文档

serve 服务

lms log stream

从 LM Studio 流式传输日志。对于调试发送到模型的提示词非常有用。

lms log stream 让您可以检查 LM Studio 发送给模型以及从模型接收到的确切字符串,并且(在 0.3.26 版本中新增)支持流式传输服务器日志。这对于调试提示词模板、模型 IO 和服务器操作非常有用。

参数标志

-s, --source (可选) : 字符串

日志来源:model(模型)或 server(服务器)(默认:model)

--stats (可选) : 标志

在可用时打印预测统计信息

--filter (可选) : 字符串

模型来源过滤器:input(输入)、output(输出)或 both(两者)

--json (可选) : 标志

以 JSON 格式输出日志(换行分隔)

快速入门

流式传输模型 IO(默认)

lms log stream

流式传输服务器日志

lms log stream --source server

过滤模型日志

# Only the formatted user input
lms log stream --source model --filter input

# Only the model output (emitted once the message completes)
lms log stream --source model --filter output

# Both directions
lms log stream --source model --filter input,output

JSON 输出和统计信息

输出 JSON

lms log stream --source model --filter input,output --json

包含预测统计信息

lms log stream --source model --filter output --stats

本页源代码可在 GitHub 上找到