Switch from AutoModel to AutoModelMixin. Use correct class definitions.