amonshano's picture
Add Echo-Memory codebase used for this run (CC BY 4.0, JD Echo Team) (part 2)
eafbe80 verified
Raw
History Blame Contribute Delete
485 Bytes
from __future__ import annotations
import fla # noqa
from lm_eval.__main__ import cli_evaluate
from lm_eval.api.registry import register_model
from lm_eval.models.huggingface import HFLM
@register_model('fla')
class FlashLinearAttentionLMWrapper(HFLM):
def __init__(self, **kwargs) -> FlashLinearAttentionLMWrapper:
# TODO: provide options for doing inference with different kernels
super().__init__(**kwargs)
if __name__ == "__main__":
cli_evaluate()