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

ImportError: cannot import name 'LoggingArgs' from partially initialized module 'nanotron.config.config error (circular imports) #235

Open
Akhilvallala2023 opened this issue Oct 24, 2024 · 0 comments

Comments

@Akhilvallala2023
Copy link

Akhilvallala2023 commented Oct 24, 2024

Description:
I encountered an ImportError related to a circular import in the nanotron library when trying to run my training script in Google Colab. The error message is as follows:
text
"""""""ImportError: cannot import name 'LoggingArgs' from partially initialized module 'nanotron.config.config'"""""""

Steps to Reproduce:
Set up a Google Colab environment with GPU.
Install the required libraries using:
bash
!pip install torch transformers datasets matplotlib nanotron

Run the training script train_custom_smollm.py with the configuration file custom_smollm_config.yaml.
Expected Behavior:
The script should run without any import errors, allowing for successful model training.
Environment:
Python version: 3.10

Google Colab environment
Additional Context:
I have attached screenshots of my setup and the error message.
I attempted reinstalling the library and checking for updates, but the issue persists.
Please let me know if there's a workaround or if further information is needed. You can fill in specific details like the version of nanotron if you have it.

Screenshot 2024-10-23 at 8 13 36 PM

I am getting import error, i don;t know, where I am getting wrong, I did run the code as per the example.
image

image

image

@Akhilvallala2023 Akhilvallala2023 changed the title ImportError: cannot import name 'LoggingArgs' from partially initialized module 'nanotron.config.config error ImportError: cannot import name 'LoggingArgs' from partially initialized module 'nanotron.config.config error (circular imports) Oct 24, 2024
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

1 participant