Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layers.py not being executed #150

Open
Aradhye2002 opened this issue Dec 12, 2023 · 1 comment
Open

Layers.py not being executed #150

Aradhye2002 opened this issue Dec 12, 2023 · 1 comment

Comments

@Aradhye2002
Copy link

Hi,

I made some changes to the layers.py, however on running the mrpc task on roberta_base, it seems that init() and forward() of the linear layers is not being called at all. I added some print statements inside the forward function to verify this.

In fact, the modeling_roberta.py file is not imported at all which is responsible for importing loralib.

When I ran the model the first time there was some progess bar with "Map" written beside it which was not there in the subsequent runs. Maybe the loralib was read the first time and the model was stored. In all subsequent runs the stored model was run.

Kindly provide guidance.

@zamalali
Copy link

Hi @Aradhye2002,

It seems like your changes in Layers.py might not be taking effect due to potential caching or import issues. Here's a quick solution:

  • Clear Cache: Ensure there's no cached version causing the issue. You can try cleaning your project's build or cache directories.

  • Check Imports: Confirm that you're importing the correct version of Layers.py in your MRPC task script.

  • Dynamic Import: Instead of relying on a static import, you can use importlib to dynamically import Layers.py in your script. This ensures fresh imports in each run.

  • Verify Initialization: Double-check the initialization process of your model to ensure that the init() and forward() functions are
    called.

Give this a try, and let me know if it resolves the issue. Otherwise please provide code snippets of the changes you made :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants