文档

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:
"