Repository navigation
Conversation
…r users and products.
…verywhere it needs to go.
|
Merged build triggered. |
|
Merged build started. |
|
I also want to start a conversation here on how we want to test this. Certainly I should add test cases here, but I'm unsure of what exactly to test here. It may make sense, at some point, to tweak the coefficients for outer products and Choleskies in the computation cost estimate, for instance, or to refine the communication cost estimate somehow. Small, explicit test case with a couple of users and a couple of products that checks for specific values would pose something of a nuisance to whoever is doing that tweaking. I'm not quite sure how to write a test encapsulating "the asymptotic behaviour of the computation cost ought to look like numRatings * rank^2 + (users + products) * rank^3" that wouldn't itself pose such a nuisance. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
There was a problem hiding this comment.
Instead of summing the cost, we should show partition-wise cost in order to check the load balancing. Same for communication.
There was a problem hiding this comment.
That's a pretty good idea. Implemented.
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
There was a problem hiding this comment.
ArrayBuffer is always mutable, but BitSet/HashSet/HashMap have two versions. Import scala.collection.mutable and use mutable.BitSet, mutable.HashSet, and mutable.HashMap in code.
There was a problem hiding this comment.
Leaving the BitSet alone for now; that's a different piece of code. Doing that for HashSet and HashMap.
|
Build triggered. |
|
Build started. |
|
Build triggered. |
|
Build started. |
|
Build finished. |
1 similar comment
|
Build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14613/ |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14612/ |
|
StreamingContextSuite's "stop gracefully" test failed here. |
|
@tmyklebu The "Address already in use" message is an exception captured in an WARN message. It is not a test failure. But "stop gracefully is ... |
|
Point being that Jenkins tests have failed repeatedly, apparently for reasons that have nothing to do with this change. (The BindException was the first weird thing I saw in that log, but it seems to happen all the time. The last weird thing is the OOME during VM teardown.) |
Fixed bug where task set managers are added to queue twice @mateiz can you verify that this is a bug and wasn't intentional? (https://github.com/apache/incubator-spark/commit/90a04dab8d9a2a9a372cea7cdf46cc0fd0f2f76c#diff-7fa4f84a961750c374f2120ca70e96edR551) This bug leads to a small performance hit because task set managers will get offered each rejected resource offer twice, but doesn't lead to any incorrect functionality. Thanks to @hdc1112 for pointing this out.
Fixed bug where task set managers are added to queue twice @mateiz can you verify that this is a bug and wasn't intentional? (https://github.com/apache/incubator-spark/commit/90a04dab8d9a2a9a372cea7cdf46cc0fd0f2f76c#diff-7fa4f84a961750c374f2120ca70e96edR551) This bug leads to a small performance hit because task set managers will get offered each rejected resource offer twice, but doesn't lead to any incorrect functionality. Thanks to @hdc1112 for pointing this out. (cherry picked from commit 5bcfd79) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
|
@tmyklebu could you put |
Continue the work from apache#493. Closes apache#493 and Closes apache#593 Author: Tor Myklebust <tmyklebu@gmail.com> Author: Xiangrui Meng <meng@databricks.com> Closes apache#1731 from mengxr/tmyklebu-alscost and squashes the following commits: 9b56a8b [Xiangrui Meng] updated API and added a simple test 68a3229 [Xiangrui Meng] merge master 217bd1d [Tor Myklebust] Documentation and choleskies -> subproblems. 8cbb718 [Tor Myklebust] Braces get spaces. 0455cd4 [Tor Myklebust] Parens for collectAsMap. 2b2febe [Tor Myklebust] Use `makeLinkRDDs` when estimating costs. 2ab7a5d [Tor Myklebust] Reindent estimateCost's declaration and make it return Seqs. 8b21e6d [Tor Myklebust] Fix overlong lines. 8cbebf1 [Tor Myklebust] Rename and clean up the return format of cost estimator. 6615ed5 [Tor Myklebust] It's more useful to give per-partition estimates. Do that. 5530678 [Tor Myklebust] Merge branch 'master' of https://github.com/apache/spark into alscost 6c31324 [Tor Myklebust] Make it actually build... a1184d1 [Tor Myklebust] Mark ALS.evaluatePartitioner DeveloperApi. 657a71b [Tor Myklebust] Simple-minded estimates of computation and communication costs in ALS. dcf583a [Tor Myklebust] Remove the partitioner member variable; instead, thread that needle everywhere it needs to go. 23d6f91 [Tor Myklebust] Stop making the partitioner configurable. 495784f [Tor Myklebust] Merge branch 'master' of https://github.com/apache/spark 674933a [Tor Myklebust] Fix style. 40edc23 [Tor Myklebust] Fix missing space. f841345 [Tor Myklebust] Fix daft bug creating 'pairs', also for -> foreach. 5ec9e6c [Tor Myklebust] Clean a couple of things up using 'map'. 36a0f43 [Tor Myklebust] Make the partitioner private. d872b09 [Tor Myklebust] Add negative id ALS test. df27697 [Tor Myklebust] Support custom partitioners. Currently we use the same partitioner for users and products. c90b6d8 [Tor Myklebust] Scramble user and product ids before bucketing. c774d7d [Tor Myklebust] Make the partitioner a member variable and use it instead of modding directly.
Fixed bug where task set managers are added to queue twice @mateiz can you verify that this is a bug and wasn't intentional? (https://github.com/apache/incubator-spark/commit/90a04dab8d9a2a9a372cea7cdf46cc0fd0f2f76c#diff-7fa4f84a961750c374f2120ca70e96edR551) This bug leads to a small performance hit because task set managers will get offered each rejected resource offer twice, but doesn't lead to any incorrect functionality. Thanks to @hdc1112 for pointing this out. (cherry picked from commit 5bcfd79) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
* [Issue apache#196]Enable GPU AI job * Fix gpu jobs issue * Remove the pre GPU env task This will ignore the CUDA and NVIDIA driver installation when job use huaweicloud. Now, GPU resources only support Tesla V100 GPU on huaweicloud with a specific flavor. Using the cloudimage for fitting flavor, gpu version, driver version and linux kernel version. Periodly uploading the new gpu version manually for now.
This pull request adds a function
evaluatePartitionerto theALSobject. This function takes a dataset, a rank, and user and product Partitioners and returns estimates of the communication cost (in bytes) and computation cost (currently roughly in flops) of a single iteration of alternating least squares.The communication cost estimate considers only the number of bytes needed for the data in the feature vectors. It does not consider the
InLinkBlocks orOutLinkBlocksor array headers for the feature vectors or anything. It also is oblivious to compression. Thus it is inaccurate. However, the changes in this pull request are sufficient to meet the goals described in [SPARK-1580] and, for better or worse, are independent of those particular implementation details.Likewise, the computation cost estimate considers only the number of floating-point operations needed to form and factorise the matrices that come up. No attention is paid to loop overhead or any other vagaries of the current implementation.
This pull request also appears to contain a bunch of commits that have already made it into trunk. I'm not really sure why that's the case or how to fix it; I'd appreciate guidance.