Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 629A3187EC for ; Sat, 21 Nov 2015 03:52:11 +0000 (UTC) Received: (qmail 26333 invoked by uid 500); 21 Nov 2015 03:52:11 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 26239 invoked by uid 500); 21 Nov 2015 03:52:11 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 26199 invoked by uid 99); 21 Nov 2015 03:52:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2015 03:52:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 11AD82C1F63 for ; Sat, 21 Nov 2015 03:52:11 +0000 (UTC) Date: Sat, 21 Nov 2015 03:52:11 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-11898) Use broadcast for the global tables in Word2Vec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-11898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-11898: ------------------------------------ Assignee: (was: Apache Spark) > Use broadcast for the global tables in Word2Vec > ----------------------------------------------- > > Key: SPARK-11898 > URL: https://issues.apache.org/jira/browse/SPARK-11898 > Project: Spark > Issue Type: Improvement > Components: MLlib > Affects Versions: 1.5.2 > Reporter: yuhao yang > > syn0Global and sync1Global in word2vec are quite large objects with size (vocab * vectorSize * 8), yet they are passed to worker using basic task serialization. > Use broadcast can greatly improve the performance. My benchmark shows that, for 1M vocabulary and default vectorSize 100, changing to broadcast can help, > 1. decrease the worker memory consumption by 45%. > 2. decrease running time by 40%. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org