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

torch no compiled #167

Open
TanvirHafiz opened this issue Nov 25, 2024 · 1 comment
Open

torch no compiled #167

TanvirHafiz opened this issue Nov 25, 2024 · 1 comment

Comments

@TanvirHafiz
Copy link

TanvirHafiz commented Nov 25, 2024

it gives me this error

F:\PuLID\venv\lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
Please 'pip install apex'
F:\PuLID\venv\lib\site-packages\diffusers\configuration_utils.py:245: FutureWarning: It is deprecated to pass a pretrained model name or path to from_config.If you were trying to load a model, please use <class 'diffusers.models.unets.unet_2d_condition.UNet2DConditionModel'>.load_config(...) followed by <class 'diffusers.models.unets.unet_2d_condition.UNet2DConditionModel'>.from_config(...) instead. Otherwise, please make sure to pass a configuration dictionary instead. This functionality will be removed in v1.0.0.
deprecate("config-passed-as-path", "1.0.0", deprecation_message, standard_warn=False)
Traceback (most recent call last):
File "F:\PuLID\app.py", line 11, in
pipeline = PuLIDPipeline()
File "F:\PuLID\pulid\pipeline.py", line 41, in init
unet = UNet2DConditionModel.from_config(sdxl_base_repo, subfolder='unet').to(self.device, torch.float16)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 1174, in to
return self._apply(convert)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 805, in apply
param_applied = fn(param)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 1160, in convert
return t.to(
File "F:\PuLID\venv\lib\site-packages\torch\cuda_init
.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

tired of torch no compiled. i did install torch torchvision and torchaudio

@TanvirHafiz TanvirHafiz changed the title no modules named torchsde and pip install apex torch no compiled Nov 25, 2024
@TanvirHafiz
Copy link
Author

again this

Traceback (most recent call last):
File "F:\PuLID\app_flux.py", line 326, in
demo = create_demo(args, args.name, args.device, args.offload, args.aggressive_offload)
File "F:\PuLID\app_flux.py", line 197, in create_demo
generator = FluxGenerator(model_name, device, offload, aggressive_offload, args)
File "F:\PuLID\app_flux.py", line 39, in init
self.model, self.ae, self.t5, self.clip = get_models(
File "F:\PuLID\app_flux.py", line 22, in get_models
t5 = load_t5(device, max_length=128)
File "F:\PuLID\flux\util.py", line 165, in load_t5
return HFEmbedder("xlabs-ai/xflux_text_encoders", max_length=max_length, torch_dtype=torch.bfloat16).to(device)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 1174, in to
return self._apply(convert)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 805, in apply
param_applied = fn(param)
File "F:\PuLID\venv\lib\site-packages\torch\nn\modules\module.py", line 1160, in convert
return t.to(
File "F:\PuLID\venv\lib\site-packages\torch\cuda_init
.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

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

1 participant