文档
link(连接)
runtime 运行时
link(连接)
runtime 运行时
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
lms log stream --source model --filter input,output --json
包含预测统计信息
lms log stream --source model --filter output --stats
本页源代码可在 GitHub 上找到