Modalities / modalities

A framework for training multimodal foundation models.
MIT License
38 stars 3 forks source link

Supported Python Versions #173

Closed flxst closed 2 days ago

flxst commented 1 week ago

According to pyproject.toml, we support the python versions 3.8, 3.9, 3.10 and 3.11, see here.

ISSUE 1: However, in practice, modalities currently only works for 3.10 and 3.11. There is at least one example of code syntax frequently used which is not compatible with python <3.10, namely the typing or operator X | Y, which for earlier python versions would have to be replaced by Union[X, Y]. See here for an example.

Possible solutions: (i) Change the code syntax for compatibility with python 3.8 and 3.9 (ii) Restrict the officially supported python versions to 3.10 and 3.11

ISSUE 2: We currently do unit testing only for python 3.10, see here.

Solution: Add the other supported python versions (i.e. at least 3.11).