Hassan S
07/28/2025, 12:14 PMStefan Krawczyk
07/28/2025, 4:21 PMStefan Krawczyk
07/28/2025, 4:23 PM@config.when could be an option, or having an optional argument; or always checking for model weights, and if none are passed through starting fresh, and if some are passed through then you utilize them?Hassan S
07/29/2025, 9:09 AMHassan S
07/29/2025, 9:10 AMStefan Krawczyk
07/29/2025, 3:06 PMdef prior_model_weights(file_path: str) -> Weights | None:
# check for weights -- load or return None
def trained_model(prior_model_weights: Weights | None, ...) -> Model:
# train model -- check if weights is None or not ...
def write_model_file(trained_model: Model, file_path: str) -> dict:
# write models
something like that shoudl work -- now if the | None annotation doesn't work, file a bug 🙂