Closed iamamiramine closed 3 months ago
I solved it by adding the following to the model.save
method before the json.dump(attribute, f)
function:
attributes["config"] = attributes["config"].get_config_dict(self.llm)[0]
get_config_dict
is available in the base class of GPT2Config class PretrainedConfig
It would be great if any of Tabula contributors can confirm.
I get the following error when saving the model using
model.save
:Any idea how to solve it?