Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

This is a guide for how to play around with TOC. See paper Tuple-oriented-compression for Large-scale Mini-batch Gradient Descent in Sigmod 2019 for more details.

Step1, start a machine: In Google cloud, create a ubuntu 16.04 instance with 500 GB boot disk, 15 GB memory, and 4 CPUs.

Step2, install some dependencies:

$ sudo apt-get update

$ sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev

$ sudo apt-get -y install libsnappy-dev

$ sudo apt-get -y install libboost-all-dev

$ sudo apt-get install make

$ sudo apt-get install g++

Step3, get the data

$ cd ~/

$ git clone https://github.com/fenganli/toc-release-code.git

Step4, get infimnist

$ cd ~/toc-release-code/

$ wget https://leon.bottou.org/_media/projects/infimnist.tar.gz

$ tar -xvzf infimnist.tar.gz

$ cd ~/toc-release-code/infimnist

$ make infimnist

Step5, generate the data: You can first generate a small dataset with 1 file shards:

$ cd ~/toc-release-code/data_processing

$ make generate_mini_batches

$ bash slice_infimnist.sh 1

$ bash generate_mini_batches_libsvm.sh 1

If you want to see the full power of toc, you can generate a large dataset with 100 file shards, it may take a while though.

Step6, train a neural network using mini-batch gradient descent powered by TOC:

$ cd ~/toc-release-code/models

$ make train_models

$ bash train_models.sh

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages