Update model.py

set config.ranks as default rank for a tag