unsloth icon indicating copy to clipboard operation
unsloth copied to clipboard

Unsloth start too many processes

Open SidneyLann opened this issue 1 year ago • 5 comments

Image

Image

all versions of unsloth after 2024.7 start too many processes, 2024.7 has no this issue.

SidneyLann avatar Feb 12 '25 23:02 SidneyLann

Image

Image

all versions of unsloth after 2024.7 start too many processes, 2024.7 has no this issue. MM that's weird, was going to ask if it could be unsloth-zoo but that was created in Oct 2024.

Is this happening for local only? Did you do a complete fresh uninstall and reinstall?

shimmyshimmer avatar Feb 13 '25 02:02 shimmyshimmer

Is this happening for local only? ----I only use local way, don't know how to use other method

Did you do a complete fresh uninstall and reinstall?----yes

SidneyLann avatar Feb 13 '25 07:02 SidneyLann

Seems caused by the module been imported multiple times. We fixed this by put the code under if __name__ == "__main__".

kkpattern avatar Feb 13 '25 11:02 kkpattern

Seems caused by the module been imported multiple times. We fixed this by put the code under if __name__ == "__main__".

@kkpattern Why can't see the fixed? what's the content of the fixed?

SidneyLann avatar Feb 26 '25 12:02 SidneyLann

Seems caused by the module been imported multiple times. We fixed this by put the code under if __name__ == "__main__".

@kkpattern @shimmyshimmer Could you please guide me to investigate this issue to do a PR?

SidneyLann avatar Apr 16 '25 11:04 SidneyLann