/ releasenotes / notes / fix-device-deserialization-st-embedder-c4efad96dd3869d5.yaml
fix-device-deserialization-st-embedder-c4efad96dd3869d5.yaml
1  ---
2  fixes:
3    - |
4      Updates the from_dict method of SentenceTransformersTextEmbedder, SentenceTransformersDocumentEmbedder, NamedEntityExtractor, SentenceTransformersDiversityRanker and LocalWhisperTranscriber to allow None as a valid value for device when deserializing from a YAML file.
5      This allows a deserialized pipeline to auto-determine what device to use using the ComponentDevice.resolve_device logic.