codegen-350M-mono-measurement_pred / configuration_code_gen_measuremet_pred.py
oliverdk's picture
Upload CodeGenMeasurementPredictor
59506b2 verified
raw
history blame
410 Bytes
from transformers.models.codegen import CodeGenConfig
from .configuration_measurement_pred import MeasurementPredictorConfig
class CodeGenMeasurementPredictorConfig(MeasurementPredictorConfig, CodeGenConfig):
model_type = "codegen_mp"
def __init__(self, **kwargs):
kwargs["sensor_token_id"] = 42848
super().__init__(**kwargs)
def get_emb_dim(self):
return self.n_embd