naive_speculate.dependency.container¶
Provide DependencyContainer, as dependency provider for speculative decoding components.
DependencyContainer
¶
Centralized container for initializing and managing all necessary dependencies.
Specifically, it handles the initialization of the tokenizer, the speculative decoder, and the autoregressive decoder, based on the provided configurations.
Attributes:
| Name | Type | Description |
|---|---|---|
config |
SpeculateConfig
|
Configurations used for initializing dependencies. |