Skip to content

main : add detailed trace to a log fileΒ #2694

@ggerganov

Description

@ggerganov

We desperately need detailed trace of what is being passed to the model and what has been generated in the main example.
Since we cannot print such verbose information along with the generated text, it has to be dumped to a separate log file.

It should contain info such as:

  • input tokens
  • top K tokens
  • sampled token
  • decisions for adding prefix / suffix / etc.
  • decisions for ignoring EOS
  • decisions for inserting reverse prompt
  • etc.

Basically everything that happens in the state machine of main has to be traced so we can understand better what is going on

See: #2689 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions