codegen-350M-mono-measurement_pred-diamonds-seed1 / configuration_code_gen_measuremet_pred.py
oliverdk's picture
Upload CodeGenMeasurementPredictor
2b97f0b verified
raw
history blame contribute delete
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