Skip to content

Conversation

@mahmoudhas
Copy link
Contributor

Adds speculation mode BASETEN_LOOKAHEAD as an alias to:

    speculator:
      speculative_decoding_mode: LOOKAHEAD_DECODING
      enable_b10_lookahead: true
      lookahead_windows_size: 1
      lookahead_ngram_size: 32
      lookahead_verification_set_size: 1

self._validate_spec_dec_mode()

def _resolve_baseten_lookahead(self):
if self.speculative_decoding_mode == TrussSpecDecMode.BASETEN_LOOKAHEAD:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will not work and not persist. Its just how pydantic works.. :/

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