import torchdevice = "mps" if torch.backends.mps.is_available() else "cpu"embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-large-zh-v1.5",device=device,embed_batch_size=16,)同时确认python - <<EOFimport torchprint(torch.backends.mps.is_available())EOF看到True才说明你真的在用 Apple GPU