read embeddings from resources jar, fixed model serialization