Reputation: 1
I intend to utilize the transformers library from Hugging Face to invoke open-source models available on Hugging Face locally. Additionally, I plan to conduct certain tests by modifying the transformers library.
To ensure that my modifications are promptly documented on GitHub, I have attempted to save the transformers library in a specified directory named "mytransformer." However, the transformers library contains numerous calls such as from transformers.xxx import xx
. What steps should I take to modify these calls to guarantee that when I subsequently use "mytransformers," all internal calls reference the files stored under "mytransformers"?
I attempted to directly copy the Transformers library into a folder named "mytransformers" within my project, and then invoke it via "import mytransformers." However, during execution, since the Transformers library contains calls to some of its own files, it reverts to invoking the Transformers library itself. Nevertheless, I desire all invocations to target the files under the "mytransformers" directory, as all my modifications reside within the "mytransformers" folder.
Upvotes: 0
Views: 30