GitHub user Krimit opened a pull request:
https://github.com/apache/spark/pull/16607
[SPARK-19247][ML] Save large models
## What changes were proposed in this pull request?
* save word2vec models as distributed files rather than as one large datum.
Backwards compatibility with the previous save format is maintained by checking
for the "wordIndex" column
* migrate the fix for loading large models (SPARK-11994) to ml word2vec
## How was this patch tested?
Tested loading the new and old formats locally
@srowen @yanboliang @MLnick
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Krimit/spark saveLargeModels
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16607.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16607
----
commit 2a71796bbf43e93750d81531c50b84bac6856df3
Author: Asher Krim <[email protected]>
Date: 2017-01-13T23:13:14Z
new word2vec save format of sequence of wordVectors
backwards compatibility maintained by checking the spark version. The new
format should make it more feasible to save large models
commit ac935731f2dc8316e17257fbbca2d10932ed853f
Author: Asher Krim <[email protected]>
Date: 2017-01-14T19:40:41Z
reintroduce SPARK-11994 to keep partition sizes reasonably small
The fix was never migrated to the ml version of Word2Vec
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]