Skip to content

u/SeanPedersen

In this archive from Jan 2021 to Jul 2026

5
posts
26
comments
4
media
29
score
1 saved before deletion

Cool project - since you focus on MoE models, pls add this idea: if a small subset of experts of the whole network is only active for most tokens, we should slice vertically so that the hot (active) experts are cached on GPU and cold ones on RAM (if needed computed using CPU). This would allow most tokens to be processed solely on the GPU, leading to massive speedups.

Reference: https://www.lucebox.com/blog/spark

3 points

~/.local/lib/python3.9/site-packages/six.py

Tried it but still throws an exception:

Defaulting to user installation because normal site-packages is not writeable

ERROR: Exception:

Traceback (most recent call last):

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main

status = self.run(options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper

return func(self, options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 305, in run

resolver = self.make_resolver(

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 295, in make_resolver

import pip._internal.resolution.resolvelib.resolver

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 25, in <module>

from .factory import Factory

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 31, in <module>

from .found_candidates import FoundCandidates

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 4, in <module>

from pip._vendor.six.moves import collections_abc # type: ignore

ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)

1 points

pip install --upgrade six

Defaulting to user installation because normal site-packages is not writeable

ERROR: Exception:

Traceback (most recent call last):

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main

status = self.run(options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper

return func(self, options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 305, in run

resolver = self.make_resolver(

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 295, in make_resolver

import pip._internal.resolution.resolvelib.resolver

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 25, in <module>

from .factory import Factory

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 31, in <module>

from .found_candidates import FoundCandidates

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 4, in <module>

from pip._vendor.six.moves import collections_abc # type: ignore

ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)

1 points

which pip

/usr/bin/pip

AND

pip install --upgrade pip

Defaulting to user installation because normal site-packages is not writeable

ERROR: Exception:

Traceback (most recent call last):

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main

status = self.run(options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper

return func(self, options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 305, in run

resolver = self.make_resolver(

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 295, in make_resolver

import pip._internal.resolution.resolvelib.resolver

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 25, in <module>

from .factory import Factory

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 31, in <module>

from .found_candidates import FoundCandidates

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 4, in <module>

from pip._vendor.six.moves import collections_abc # type: ignore

ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)

1 points

Well ok one line was missing (the first, reporting what you said)...

Defaulting to user installation because normal site-packages is not writeable

ERROR: Exception:

Traceback (most recent call last):

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main

status = self.run(options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper

return func(self, options, args)

File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 305, in run

resolver = self.make_resolver(

File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 295, in make_resolver

import pip._internal.resolution.resolvelib.resolver

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 25, in <module>

from .factory import Factory

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 31, in <module>

from .found_candidates import FoundCandidates

File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 4, in <module>

from pip._vendor.six.moves import collections_abc # type: ignore

ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.