mirror of
https://github.com/FlashML-org/FreeToken.git
synced 2026-11-25 21:07:55 +08:00
10 lines
390 B
Python
10 lines
390 B
Python
"""Speculative decoding: SpecRunner (the target side) and one Proposer (the draft side) per method."""
|
|
|
|
from freetoken.utils import Registry
|
|
|
|
# method name -> "module:Class" of its Proposer, loaded on use so this package imports no method's code
|
|
PROPOSERS = Registry[str]("Speculative proposer")
|
|
PROPOSERS.register("mtp")("freetoken.spec.mtp.proposer:MTPProposer")
|
|
|
|
__all__ = ["PROPOSERS"]
|