Safetensors
custom_code
mranzinger commited on
Commit
44653a0
·
verified ·
1 Parent(s): 4ca3b53

Update hf_model.py

Browse files
Files changed (1) hide show
  1. hf_model.py +3 -1
hf_model.py CHANGED
@@ -97,7 +97,9 @@ class RADIOModel(PreTrainedModel):
97
 
98
  def __init__(self, config: RADIOConfig):
99
  super().__init__(config)
100
-
 
 
101
  RADIOArgs = namedtuple("RADIOArgs", config.args.keys())
102
  args = RADIOArgs(**config.args)
103
  self.config = config
 
97
 
98
  def __init__(self, config: RADIOConfig):
99
  super().__init__(config)
100
+ if hasattr(super(), "post_init"):
101
+ super().post_init()
102
+
103
  RADIOArgs = namedtuple("RADIOArgs", config.args.keys())
104
  args = RADIOArgs(**config.args)
105
  self.config = config