Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

PaddlePaddle Document for HackMIT

helinwang edited this page Sep 13, 2017 · 52 revisions

PaddlePaddle Introduction

How to Use Docker

TLDR for new docker user

How to Train Model With Paddle Book Docker Image

  1. pull and run the docker image
# for CPU-only
docker run -it -v $HOME/.cache:/root/.cache --name xxx paddlepaddle/book:latest /bin/bash
# for GPU support
nvidia-docker run -it -v $HOME/.cache:/root/.cache --name xxx paddlepaddle/book:latest-gpu /bin/bash
  1. Navigate to the book chapter directory, such as 02.recognize_digits
cd /book/02.recognize_digits/
  1. Run training process.
python train.py

How to use GPU resource on AWS

For general instructions on using connecting EC2 instance, please refer to AWS's detailed guide.

  1. On your local machine, open up the Terminal application, or other command-line shell applications, navigate to the directory of the private key file hackmit-paddlepaddle-1.pem provided (please contact me for your copy).

  2. Change the permissions of the .pem file so only the root user can read it: chmod 400 hackmit-paddlepaddle-1.pem

    or other filenames using chmod 400 $filename.

  3. Use the ssh command to connect to the instance with the IP address provided. For example, if the IP address is 10.254.142.33,

    ssh -i hackmit-paddlepaddle-1.pem ubuntu@10.254.142.33

Pretrained-Models

https://github.com/PaddlePaddle/book/wiki/PaddlePaddle-Book-pretrained-model

End-to-End Mnist Demo

The code and the documentation for this portion lives here.

PaddlePaddle Inference Server Example

https://github.com/PaddlePaddle/book/tree/develop/serve