Skip to content

Conversation

@lanking520
Copy link
Contributor

Description

Fix some error conditions and telemetry tracking

@lanking520 lanking520 requested review from a team, frankfliu and zachgk as code owners June 26, 2024 16:44
@lanking520 lanking520 merged commit c578e6f into deepjavalibrary:master Jun 26, 2024
f"Ignoring logging speculative decoding metrics")
) and self.lmi_dist_config.speculative_draft_model and request_output.finished:
try:
if self.supports_speculative_decoding and completion_output.acceptance_history:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to change this part to

Suggested change
if self.supports_speculative_decoding and completion_output.acceptance_history:
if self.supports_speculative_decoding and hasattr(completion_output, 'acceptance_history'):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants