Modalities / modalities

A framework for training multimodal foundation models.
MIT License
57 stars 5 forks source link

Permanently fix pydantic warnings about model_ namespace #200

Open flxst opened 1 month ago

flxst commented 1 month ago

The namespace model_ is protected by pydantic (https://docs.pydantic.dev/2.7/api/config/#pydantic.config.ConfigDict.protected_namespaces). Whenever we use an attribute starting with model_, we currently need to add a few lines to suppress the warning, see #108, #109, #199.

We should perhaps come up with a permanent solution in order for the problem to not reappear every time we introduce a new attribute model_ somewhere (e.g. thin wrapper around BaseModel).