dummy.py 306 Bytes
Newer Older
Leo Gao's avatar
Leo Gao committed
1
2
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.

Jason Phang's avatar
lib  
Jason Phang committed
3
from lm_eval.base import LM
Jason Phang's avatar
checkin  
Jason Phang committed
4
5
6
7
8
9
10
11
from . import MODEL_REGISTRY


@MODEL_REGISTRY.register("dummy")
class DummyLM(LM):

    def loglikelihood(self, context, continuation):
        return 0.0