Could you link to the functions you have questions about, as the repository is quite large, which makes it hard to follow your questions.
Generally, I think the Huggingface devs might have a faster and better answer, so maybe @Thomas_Wolf finds some time to answer your question.