Skip to content

Commit e8e94f4

Browse files
author
mike dupont
committed
working
1 parent 9fb2c73 commit e8e94f4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

print.hpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ REFL_FIELD( params)
104104
REFL_FIELD( mirostat_mu)
105105
REFL_FIELD( grammar)
106106
REFL_FIELD( parsed_grammar)
107-
REFL_FIELD( prev)
108-
REFL_FIELD( cur)
107+
//REFL_FIELD( prev) // TODO fixme has null data
108+
//REFL_FIELD( cur)
109109
REFL_END
110110

111111
REFL_TYPE(llama_token_data )
@@ -415,10 +415,10 @@ REFL_FIELD( t_p_eval_us )
415415
REFL_FIELD( n_sample )
416416
REFL_FIELD( n_p_eval )
417417
REFL_FIELD( n_eval )
418-
REFL_FIELD( logits)
418+
//REFL_FIELD( logits) crash
419419
REFL_FIELD( logits_all )
420420
REFL_FIELD( embedding)
421-
REFL_FIELD( work_buffer)
421+
//REFL_FIELD( work_buffer)
422422
REFL_FIELD( buf_compute)
423423
REFL_FIELD( buf_alloc)
424424
REFL_FIELD( alloc )
@@ -492,7 +492,7 @@ REFL_END
492492

493493

494494
REFL_TYPE(llama_logit_info)
495-
REFL_FIELD(logits)
495+
// REFL_FIELD(logits)
496496
REFL_FIELD(n_vocab)
497497
REFL_END
498498

@@ -621,7 +621,9 @@ namespace runtime2
621621
}
622622
else if constexpr (detail::is_ostream_printable_v<CharT, T>) {
623623
// type supports printing natively, just use that
624-
os << value;
624+
625+
os << value;
626+
625627
}
626628
else {
627629
debug_detailed(os, value, depth);
@@ -640,14 +642,15 @@ namespace runtime2
640642
if (!compact) os << '\n';
641643
int new_depth = next_depth(depth);
642644
indent(os, new_depth);
643-
644-
debug_impl(os, *it, new_depth);
645-
if (std::next(it, 1) != end) {
645+
646+
debug_impl(os, *it, new_depth);
647+
if (std::next(it, 1) != end) {
646648
os << ", ";
647-
}
648-
else if (!compact) {
649+
}
650+
else if (!compact) {
649651
os << '\n';
650-
}
652+
}
653+
651654
}
652655

653656
indent(os, depth);

0 commit comments

Comments
 (0)