codegen-350M-mono-measurement_pred-diamonds-seed1 / modeling_code_gen_measurement_pred.py
oliverdk's picture
Upload CodeGenMeasurementPredictor
2b97f0b verified
raw
history blame
509 Bytes
from transformers.models.codegen import CodeGenPreTrainedModel, CodeGenModel
from .modeling_measurement_pred import MeasurementPredictorMixin
from .configuration_code_gen_measuremet_pred import CodeGenMeasurementPredictorConfig
class CodeGenMeasurementPredictor(CodeGenPreTrainedModel, MeasurementPredictorMixin):
config_class = CodeGenMeasurementPredictorConfig
def __init__(self, config):
super().__init__(config)
self.transformer = CodeGenModel(config)
self.post_init()