Skip to content

Commit

Permalink
log max step stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Nov 15, 2024
1 parent fa6b6a9 commit e85be12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions llgtrt/src/routes/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ fn valid_utf8_len(data: &Vec<u8>) -> usize {
}

fn take_final_logs(llg: &mut Constraint) -> Result<String> {
log::info!("llg-max-step: {:?}", llg.parser.max_step_stats());

if !llg.log_json_progress && llg.parser.logger.buffer_level() == 0 {
return Ok(String::new());
}
Expand Down
2 changes: 1 addition & 1 deletion llguidance

0 comments on commit e85be12

Please sign in to comment.