Find a way to deal with possible discrepancy between a card's model and model file in metadata
This was discussed here, I'll copy the points over (with slight modification):
We have a tricky situation in our Card class where there can be multiple sources of truth for what the actual model is. One source is the model attribute, the other the model as (optionally) defined by metadata.model_file.
-
self.modelis a model instance and there is nometadata.model_file -
self.modelis a model instance and there is ametadata.model_file -
self.modelis astrorPathand there is nometadata.model_file -
self.modelis astrorPathand there is ametadata.model_fileand they're identical -
self.modelis astrorPathand there is ametadata.model_fileand they're different
I think the getting started code snippet should always refer to the model_file from metadata if present. For case 3, one could argue that the path from self.model should be used for the getting started code snippet, but it's a bit surprising.
For the model diagram and hyperparams, I would argue we should use the data from self.model.
Ideally, we could agree on a "single source of truth" for the model, but it's not clear to me how to do that, as we don't have any mechanism to enforce that they're referring to the same model.