Merge pull request #14981 from wangshuai09/gpu_info_for_ascend

Add training support and change lspci for Ascend NPU
This commit is contained in:
AUTOMATIC1111 2024-03-04 20:06:54 +03:00 committed by GitHub
commit eee46a5094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -230,7 +230,7 @@ class FrozenCLIPEmbedderWithCustomWordsBase(torch.nn.Module):
for fixes in self.hijack.fixes:
for _position, embedding in fixes:
used_embeddings[embedding.name] = embedding
devices.torch_npu_set_device()
z = self.process_tokens(tokens, multipliers)
zs.append(z)