Explain, analyze, and visualize NLP language models. Ecco creates interactive visualizations directly in Jupyter notebooks explaining the behavior of Transformer-based language models (like GPT2, BERT, RoBERTA, T5, and T0).
Problem:
The comparison of versions in the lm generate method is buggy as it is just comparing strings. For e.g. "4.6.1" > "4.13" when just comparing strings, but that is not the intended behavior when comparing versions.
Solution:
Use the version.parse functionality of the packaging package (that is already installed as a requirement of one of the required packages present in the requirements.txt). This will make the string version to be binded to a Version object that has the comparison methods implemented with the intended behavior for version comparison.
Problem: The comparison of versions in the lm generate method is buggy as it is just comparing strings. For e.g. "4.6.1" > "4.13" when just comparing strings, but that is not the intended behavior when comparing versions.
Solution: Use the
version.parse
functionality of thepackaging
package (that is already installed as a requirement of one of the required packages present in the requirements.txt). This will make the string version to be binded to a Version object that has the comparison methods implemented with the intended behavior for version comparison.Local setup to reproduce bug: Code:
Error:
Relevant Packages version: