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

Can't start YuE from Pinokio Installation #59

Open
miri4ever opened this issue Feb 8, 2025 · 4 comments
Open

Can't start YuE from Pinokio Installation #59

miri4ever opened this issue Feb 8, 2025 · 4 comments

Comments

@miri4ever
Copy link

M:\Pinokio-AI\api\yue.git\app\inference>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && M:\Pinokio-AI\api\yue.git\app\env\Scripts\activate M:\Pinokio-AI\api\yue.git\app\env && python gradio_server.py --profile 1
Traceback (most recent call last):
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\utils\import_utils.py", line 1852, in get_module
return importlib.import_module("." + module_name, self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MIRI4EVER\AppData\Roaming\uv\python\cpython-3.11.11-windows-x86_64-none\Lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\modeling_utils.py", line 44, in
from .activations import get_activation
ImportError: cannot import name 'get_activation' from 'transformers.activations' (M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\activations.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "M:\Pinokio-AI\api\yue.git\app\inference\gradio_server.py", line 3, in
from mmgp import offload
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\mmgp\offload.py", line 79, in
from optimum.quanto import freeze, qfloat8, qint4 , qint8, quantize, QModuleMixin, QTensor, quantize_module
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\optimum\quanto_init_.py", line 19, in
from .models import *
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\optimum\quanto\models_init_.py", line 30, in
from .transformers_models import *
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\optimum\quanto\models\transformers_models.py", line 33, in
from transformers import AutoConfig, AutoModelForCausalLM, PreTrainedModel
File "", line 1229, in _handle_fromlist
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\utils\import_utils.py", line 1840, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\utils\import_utils.py", line 1854, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
cannot import name 'get_activation' from 'transformers.activations' (M:\Pinokio-AI\api\yue.git\app\env\Lib\site-packages\transformers\activations.py)

(env) (base) M:\Pinokio-AI\api\yue.git\app\inference>

@a43992899
Copy link
Collaborator

@cocktailpeanut

@a43992899
Copy link
Collaborator

Do you mind opening an issue in pinokio's repo?

https://github.com/pinokiofactory/yue

@miri4ever
Copy link
Author

I wasn't aware they also got a GitHub Page as they not mention anywhere, and I got the download link from this page, so I was thinking it was the working one as they mention last updated for Pinokio. I try there now two. Let's see what page can find a solution for this.

Thanks :)(

@deepbeepmeep
Copy link

Pinokio uses https://github.com/deepbeepmeep/YuEGP, maybe the bug is fixed in the latest version

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

3 participants