Python allows us to pass arguments to [sub/super]classes elegantly by using the *args and **kwargs arguments. Right now we need to manually add support for every argument not only of our library but also every library that we call to build a LM. For example, we currently don't support inject_fused_attention=False despite the fact that transformers and GPTQ do.
This is best practices in Python and will save us substantial amounts of time and code by offloading work that other libraries are already doing to those libraries.
Python allows us to pass arguments to [sub/super]classes elegantly by using the
*args
and**kwargs
arguments. Right now we need to manually add support for every argument not only of our library but also every library that we call to build a LM. For example, we currently don't supportinject_fused_attention=False
despite the fact thattransformers
andGPTQ
do.This is best practices in Python and will save us substantial amounts of time and code by offloading work that other libraries are already doing to those libraries.