You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/16 19:43:00 UTC

[GitHub] Roshrini commented on a change in pull request #9091: Usability fixes for examples

Roshrini commented on a change in pull request #9091: Usability fixes for examples
URL: https://github.com/apache/incubator-mxnet/pull/9091#discussion_r157349576
 
 

 ##########
 File path: example/model-parallel/matrix_factorization/README.md
 ##########
 @@ -0,0 +1,21 @@
+Model Parallel Matrix Factorization
+===================================
+
+The example walks you through a matrix factorization algorithm for recommendations and also
+demonstrates the basic usage of `group2ctxs` in `Module`, which allows one part of the model to be
+trained on cpu and the other on gpu.
+
+To run this example, first make sure you download a dataset of 10 million movie ratings available
+from [the MovieLens project](http://files.grouplens.org/datasets/movielens/) by running following command:
+
+`python get_data.py`
+
+This will download MovieLens 10M dataset under ml-10M100K folder. Now, you can run the training as follows:
+
+`python train.py --num-gpus 2`
 
 Review comment:
   This example shows usage of one part of the model to be trained on CPU and other on GPU. so its necessary to have gpus on the machine. I added one line saying this:
   "it is necessary to have GPUs available on the machine
   to run this example." 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services