文档

lms log stream 参考

lms log stream 允许您检查发送到模型的精确输入字符串。

这对于调试提示模板问题和其他意外的 LLM 行为特别有用。


小贴士

如果您尚未引导启动 lms,请按照此处的说明进行操作。

使用 lms log stream 调试您的提示词

lms log stream 允许您检查发送到模型的精确输入字符串。

打开终端并运行以下命令

lms log stream

这将开始从 LM Studio 流式传输日志。在聊天 UI 中发送消息或向本地服务器发送请求以查看日志。

示例输出

$ lms log stream
I Streaming logs from LM Studio

timestamp: 5/2/2024, 9:49:47 PM
type: llm.prediction.input
modelIdentifier: TheBloke/TinyLlama-1.1B-1T-OpenOrca-GGUF/tinyllama-1.1b-1t-openorca.Q2_K.gguf
modelPath: TheBloke/TinyLlama-1.1B-1T-OpenOrca-GGUF/tinyllama-1.1b-1t-openorca.Q2_K.gguf
input: "Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
Hello, what's your name?
### Response:
"