You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2016/01/11 10:15:38 UTC
svn commit: r1723990 - in /incubator/singa/site/trunk/content/markdown:
docs/index.md docs/zh/ docs/zh/overview.md docs/zh/programming-guide.md
downloads.md releases/RELEASE_NOTES_0.2.0.md
Author: wangwei
Date: Mon Jan 11 09:15:38 2016
New Revision: 1723990
URL: http://svn.apache.org/viewvc?rev=1723990&view=rev
Log:
Add chinese pages by Xiangrui Cai.
Added:
incubator/singa/site/trunk/content/markdown/docs/zh/
incubator/singa/site/trunk/content/markdown/docs/zh/overview.md (with props)
incubator/singa/site/trunk/content/markdown/docs/zh/programming-guide.md
Modified:
incubator/singa/site/trunk/content/markdown/docs/index.md
incubator/singa/site/trunk/content/markdown/downloads.md
incubator/singa/site/trunk/content/markdown/releases/RELEASE_NOTES_0.2.0.md
Modified: incubator/singa/site/trunk/content/markdown/docs/index.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/docs/index.md?rev=1723990&r1=1723989&r2=1723990&view=diff
==============================================================================
--- incubator/singa/site/trunk/content/markdown/docs/index.md (original)
+++ incubator/singa/site/trunk/content/markdown/docs/index.md Mon Jan 11 09:15:38 2016
@@ -1,5 +1,7 @@
# Latest Documentation
+---
+
* [Introduction](overview.html)
* [Installation](installation.html)
* [Quick Start](quick-start.html)
@@ -21,3 +23,8 @@
* [MLP](mlp.html)
* [RBM + Auto-encoder](rbm.html)
* [RNN](rnn.html)
+
+---
+
+* [ç®ä»](zh/overview.html)
+* [使ç¨æå](zh/programming-guide.html)
Added: incubator/singa/site/trunk/content/markdown/docs/zh/overview.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/docs/zh/overview.md?rev=1723990&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/singa/site/trunk/content/markdown/docs/zh/overview.md
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/singa/site/trunk/content/markdown/docs/zh/programming-guide.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/docs/zh/programming-guide.md?rev=1723990&view=auto
==============================================================================
--- incubator/singa/site/trunk/content/markdown/docs/zh/programming-guide.md (added)
+++ incubator/singa/site/trunk/content/markdown/docs/zh/programming-guide.md Mon Jan 11 09:15:38 2016
@@ -0,0 +1,67 @@
+# ç¼ç¨æå
+
+---
+
+è¦æ交ä¸ä¸ªè®ç»ä½ä¸ï¼ç¨æ·éè¦æä¾å¾1ä¸çå个é¨åçé
ç½®ï¼
+
+ * [NeuralNet](../neural-net.md) ï¼æè¿°ç¥ç»ç½ç»ç»æï¼å
æ¬æ¯å±çå
·ä½è®¾ç½®åå±ä¸å±çè¿æ¥å
³ç³»ï¼
+ * [TrainOneBatch](../train-one-batch.md) ï¼è¯¥ç®æ³éè¦æ ¹æ®ä¸åç模åç±»å«èå®å¶;
+ * [Updater](../updater.md) ï¼å®ä¹æå¡å¨ç«¯æ´æ°åæ°çåè®®ï¼
+ * [Cluster Topology](../distributed-training.md) ï¼æå®æå¡å¨åå·¥ä½è
çåå¸å¼æææ¶æã
+
+*å级ç¨æ·æå* å°ä»ç»å¦ä½å©ç¨å
建å±æ交ä¸ä¸ªè®ç»ä½ä¸ï¼è *é«çº§ç¨æ·æå* å°è¯¦ç»ä»ç»å¦ä½ç¼åç¨æ·èªå·±ç主å½æ°å¹¶æ³¨åèªå·±å®ç°çç»ä»¶ãæ¤å¤ï¼é«çº§ç¨æ·åå级ç¨æ·å¯¹è®ç»æ°æ®éç[å¤ç](../data.md)æ¹å¼æ¯ç¸åçã
+
+<img src="../../../../content/resources/images/overview.png" align="center" width="400px"/>
+<span><strong>å¾ 1 - SINGA æ¦è§</strong></span>
+
+
+
+## å级ç¨æ·æå
+
+ç¨æ·å¯ä»¥ä½¿ç¨SINGAæä¾ç主å½æ°æ交è®ç»ä½ä¸ã对äºè¿ç§æ
åµï¼ç¨æ·å¿
é¡»å¨å½ä»¤è¡ä¸æä¾æ ¹æ® [JobProto](../api/classsinga_1_1JobProto.html) 设置çä½ä¸é
ç½®æ件ï¼
+
+ ./bin/singa-run.sh -conf <path to job conf> [-resume]
+
+`-resume` 表示ä»ä¸æ¬¡ç[æ£æ¥ç¹ï¼checkpointï¼](../checkpoint.md)继ç»è®ç»ã
+[MLP](../mlp.md) 模åå [CNN](../cnn.md) 模å使ç¨å
建å±æ交è®ç»ä½ä¸ã请é
读ç¸å
³é¡µé¢ï¼æ¥çå®ä»¬çä½ä¸é
ç½®æ件ï¼è¿äºé¡µé¢ä¼ä»ç»æ¯ä¸ªç»ä»¶é
ç½®çç»èã
+
+## é«çº§ç¨æ·æå
+
+å¦æç¨æ·ç模åä¸å
å«ä¸äºèªå·±å®ä¹çç»ä»¶ï¼æ¯å¦[Updater](../updater.md)ï¼ç¨æ·å¿
é¡»èªå·±ç¼å主å½æ°æ³¨åè¿äºç»ä»¶ï¼è·Hadoopç主å½æ°ç±»ä¼¼ãä¸è¬å°ï¼ä¸»å½æ°åºè¯¥
+
+ * åå§åSINGAï¼å¦ï¼è®¾ç½®æ¥å¿ï¼
+ * 注åç¨æ·èªå®ä¹ç»ä»¶ï¼
+ * å建ä½ä¸é
ç½®å¹¶ä¼ éç»SINGA driverã
+
+主å½æ°ç¤ºä¾
+
+ #include "singa.h"
+ #include "user.h" // header for user code
+
+ int main(int argc, char** argv) {
+ singa::Driver driver;
+ driver.Init(argc, argv);
+ bool resume;
+ // parse resume option from argv.
+
+ // register user defined layers
+ driver.RegisterLayer<FooLayer>(kFooLayer);
+ // register user defined updater
+ driver.RegisterUpdater<FooUpdater>(kFooUpdater);
+ ...
+ auto jobConf = driver.job_conf();
+ // update jobConf
+
+ driver.Train(resume, jobConf);
+ return 0;
+ }
+
+driver ç±»' `Init` æ¹æ³å è½½ç¨æ·å¨å½ä»¤è¡åæ°ä¸ ï¼`-conf <job conf>`ï¼æä¾çä½ä¸é
ç½®æ件ï¼è³å°å
å«é群ææç»æï¼ï¼å¹¶è¿å`jobConf`ç»ç¨æ·ï¼ç¨æ·å¯æ´æ°åæ·»å ç¥ç»ç½ç»æè
Updaterçé
ç½®ãå¦æå®ä¹äºLayerãUpdaterãWorkeræè
Paramçåç±»ï¼ç¨æ·éè¦éè¿driver为å®ä»¬æ³¨åãæåï¼ä½ä¸é
ç½®ä¼è¢«æ交å°driverï¼ç±driverå¯å¨è®ç»ã
+
+å°æ¥æ们ä¼æä¾ç±»ä¼¼[keras](https://github.com/fchollet/keras) ç帮å©å·¥å
·ï¼ä½¿ä½ä¸é
ç½®æ´å ç®åã
+
+ç¨æ·éè¦ä½¿ç¨SINGAåº(*.libs/libsinga.so*)ç¼è¯åé¾æ¥èªå·±ç代ç ï¼å¦ï¼layerçå®ç°å主å½æ°ï¼ï¼å¾å°å¯æ§è¡æ件ï¼å¦å为*mysinga* çæ件ãæ§è¡ä»¥ä¸å½ä»¤å¯å¨è¯¥ç¨åºï¼ç¨æ·éè¦å°*mysinga* åä½ä¸é
ç½®æ件çè·¯å¾ä¼ ç» *./bin/singa-run.sh* ã
+
+ ./bin/singa-run.sh -conf <path to job conf> -exec <path to mysinga> [other arguments]
+
+[RNN application](../rnn.md) æä¾äºä¸ä¸ªå®æ´çå®ç°ä¸»å½æ°è®ç»ç¹å®RNN模åçä¾åã
Modified: incubator/singa/site/trunk/content/markdown/downloads.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/downloads.md?rev=1723990&r1=1723989&r2=1723990&view=diff
==============================================================================
--- incubator/singa/site/trunk/content/markdown/downloads.md (original)
+++ incubator/singa/site/trunk/content/markdown/downloads.md Mon Jan 11 09:15:38 2016
@@ -10,7 +10,7 @@
* [Release Notes 0.2.0](releases/RELEASE_NOTES_0.2.0.html)
* New features and major updates,
* [Training on GPU](docs/gpu.html) enables training of complex models on a single node with multiple GPU cards.
- * [Hybrid neural net partitioning](docs/frameworks.html) supports data and model parallelism at the same time.
+ * [Hybrid neural net partitioning](docs/hybrid.html) supports data and model parallelism at the same time.
* [Python wrapper](docs/python.html) makes it easy to configure the job, including neural net and SGD algorithm.
* [RNN model and BPTT algorithm](docs/rnn.html) are implemented to support applications based on RNN models, e.g., GRU.
* [Cloud software integration](docs/distributed-training.html) includes Mesos, Docker and HDFS.
Modified: incubator/singa/site/trunk/content/markdown/releases/RELEASE_NOTES_0.2.0.md
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/content/markdown/releases/RELEASE_NOTES_0.2.0.md?rev=1723990&r1=1723989&r2=1723990&view=diff
==============================================================================
--- incubator/singa/site/trunk/content/markdown/releases/RELEASE_NOTES_0.2.0.md (original)
+++ incubator/singa/site/trunk/content/markdown/releases/RELEASE_NOTES_0.2.0.md Mon Jan 11 09:15:38 2016
@@ -10,7 +10,7 @@ of popular deep learning models.
This release includes the following **major features**:
* [Training on GPU](../docs/gpu.html) enables training of complex models on a single node with multiple GPU cards.
-* [Hybrid neural net partitioning](../docs/frameworks.html) supports data and model parallelism at the same time.
+* [Hybrid neural net partitioning](../docs/hybrid.html) supports data and model parallelism at the same time.
* [Python wrapper](../docs/python.html) makes it easy to configure the job, including neural net and SGD algorithm.
* [RNN model and BPTT algorithm](../docs/rnn.html) are implemented to support applications based on RNN models, e.g., GRU.
* [Cloud software integration](../docs/distributed-training.md) includes Mesos, Docker and HDFS.