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

Not using cuda #7

Open
a43992899 opened this issue Feb 8, 2025 · 1 comment
Open

Not using cuda #7

a43992899 opened this issue Feb 8, 2025 · 1 comment

Comments

@a43992899
Copy link

Some people report that pinokio version of YuE does not recognize cuda, but comfyui works fine.

multimodal-art-projection/YuE#56

@BAIS1C
Copy link

BAIS1C commented Feb 13, 2025

yep,

You are attempting to use Flash Attention 2.0 with a model not initialized on GPU. Make sure to move the model to GPU after initializing it on CPU with model.to('cuda').
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 6.27it/s]
C:\Users\b4sic\pinokio\api\yue.git\app\env\Lib\site-packages\torch\nn\utils\weight_norm.py:143: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
C:\Users\b4sic\pinokio\api\yue.git\app\inference\gradio_server.py:136: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
parameter_dict = torch.load(args.resume_path, map_location='cpu')
************ Memory Management for the GPU Poor (mmgp 3.1.4-15) by DeepBeepMeep ************
You have chosen a profile that requires at least 48 GB of RAM and 24 GB of VRAM. Some VRAM is consumed just to make the model runs faster.
Pinning data of 'transformer' to reserved RAM
The whole model was pinned to reserved RAM: 51 large blocks spread across 11872.51 MB
Hooked to model 'transformer' (LlamaForCausalLM)
Pinning data of 'stage2' to reserved RAM
The whole model was pinned to reserved RAM: 16 large blocks spread across 3743.25 MB
Hooked to model 'stage2' (LlamaForCausalLM)

To create a public link, set share=True in launch().

Despite the fact tht nvcc --version shows cuda 11.8 active

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

2 participants