We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcb92e7 commit aec08f1Copy full SHA for aec08f1
src/art/model.py
@@ -168,6 +168,14 @@ class TrainableModel(Model):
168
# Use at your own risk.
169
_internal_config: dev.InternalModelConfig | None = None
170
171
+ def __init__(self, **data):
172
+ # Pop any internal config provided at construction and assign it
173
+ internal_cfg = data.pop("_internal_config", None)
174
+ super().__init__(**data)
175
+ if internal_cfg is not None:
176
+ # Bypass BaseModel __setattr__ to allow setting private attr
177
+ object.__setattr__(self, "_internal_config", internal_cfg)
178
+
179
async def register(
180
self,
181
backend: "Backend",
0 commit comments