codegen-350M-mono-measurement_pred-diamonds-seed7 / configuration_code_gen_measuremet_pred.py
oliverdk's picture
End of training
995430d 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