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
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)