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

Pip install error #20

Open
HelloWorldLTY opened this issue May 27, 2023 · 6 comments
Open

Pip install error #20

HelloWorldLTY opened this issue May 27, 2023 · 6 comments

Comments

@HelloWorldLTY
Copy link

HelloWorldLTY commented May 27, 2023

Hi, I use pip install and I got this error when I imported this optimizer:

from Sophia import SophiaG 
  3 from Sophia.Sophia import SophiaG
  4 # from decoupled_sophia.decoupled_sophia.decoupled_sophia import DecoupledSophia

----> 5 from experiments.training import trainer
7 # from Sophia.decoupled_sophia.decoupled_sophia import DecoupledSophia

ModuleNotFoundError: No module named 'experiments'

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@hailuu684
Copy link

I am not sure though but you can clone the repo to your working repo, then just import it as your other directory

@sdbds
Copy link
Contributor

sdbds commented May 27, 2023

fixed #14

@HelloWorldLTY
Copy link
Author

I am not sure though but you can clone the repo to your working repo, then just import it as your other directory

Thanks for your reply, but I have a feeling you may not be clear about the relationship between pip install and import package, here is a good resource: https://www.reddit.com/r/learnpython/comments/ynjjkf/difference_between_pip_install_module_vs_import/

@hailuu684
Copy link

Thank you for your reference. Yes I am not sure about pip and import packages. So while waiting for an update, I just import it to see its performance.

@SagiPolaczek
Copy link

SagiPolaczek commented Jul 8, 2023

Still relevant when using pip install and when using the repo in editable mode the issue is even worse: it initiates the training in experiments.training.

@SagiPolaczek
Copy link

Still relevant when using pip install and when using the repo in editable mode the issue is even worse: it initiates the training in experiments.training.

Of course it will https://github.com/kyegomez/Sophia/blob/ffd608b6464acb5b7de4297511fa5636fc033aa5/setup.py#L4C29-L5C40

Are you guys only know how to multiply matrices?

@ivanstepanovftw Irrelevant and poor comments.

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

4 participants