文档

lms log stream 参考

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

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


专业提示

如果您还没有,请按照此处的说明在您的机器上引导lms

使用lms log stream调试您的提示

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

打开终端并运行以下命令

lms log stream

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

示例输出

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