File size: 343 Bytes
a551d94 b4e2fae |
1 2 3 4 5 6 7 8 9 10 |
from transformers import LlamaForCausalLM
from .configuration_cognitivess import CognitivessConfig
class CognitivessForCausalLM(LlamaForCausalLM):
config_class = CognitivessConfig
def __init__(self, config):
super().__init__(config)
if config.quantization_config:
self.quantize(config.quantization_config) |