-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KG] Update CI to cover Knowledge Graph (dmlc#913)
* upd * fig edgebatch edges * add test * trigger * Update README.md for pytorch PinSage example. Add noting that the PinSage model example under example/pytorch/recommendation only work with Python 3.6+ as its dataset loader depends on stanfordnlp package which work only with Python 3.6+. * Provid a frame agnostic API to test nn modules on both CPU and CUDA side. 1. make dgl.nn.xxx frame agnostic 2. make test.backend include dgl.nn modules 3. modify test_edge_softmax of test/mxnet/test_nn.py and test/pytorch/test_nn.py work on both CPU and GPU * Fix style * Delete unused code * Make agnostic test only related to tests/backend 1. clear all agnostic related code in dgl.nn 2. make test_graph_conv agnostic to cpu/gpu * Fix code style * fix * doc * Make all test code under tests.mxnet/pytorch.test_nn.py work on both CPU and GPU. * Fix syntex * Remove rand * Add TAGCN nn.module and example * Now tagcn can run on CPU. * Add unitest for TGConv * Fix style * For pubmed dataset, using --lr=0.005 can achieve better acc * Fix style * Fix some descriptions * trigger * Fix doc * Add nn.TGConv and example * Fix bug * Update data in mxnet.tagcn test acc. * Fix some comments and code * delete useless code * Fix namming * Fix bug * Fix bug * Add test for mxnet TAGCov * Add test code for mxnet TAGCov * Update some docs * Fix some code * Update docs dgl.nn.mxnet * Update weight init * Fix * reproduce the bug * Fix concurrency bug reported at dmlc#755. Also make test_shared_mem_store.py more deterministic. * Update test_shared_mem_store.py * Update dmlc/core * Update Knowledge Graph CI with new Docker image * Remove unused line_profierx * Poke Jenkins * Update test with exit code check and simplify docker * Update Jenkinsfile to make app test a standalone stage * Update kg_test * Update Jenkinsfile * Make some KG test parallel * Update * KG MXNet does not support ComplEx * Update Jenkinsfile * Update Jenkins file * Change torch-1.2 to torch-1.2-cu92 * ci * Update ubuntu_install_mxnet_cpu.sh * Update ubuntu_install_mxnet_gpu.sh * We only need to test train and eval script. Delete some test code
- Loading branch information
1 parent
bde7525
commit 93e3c49
Showing
10 changed files
with
160 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# CI docker CPU env | ||
# Adapted from github.com/dmlc/tvm/docker/Dockerfile.ci_cpu | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update --fix-missing | ||
|
||
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh | ||
RUN bash /install/ubuntu_install_core.sh | ||
|
||
COPY install/ubuntu_install_build.sh /install/ubuntu_install_build.sh | ||
RUN bash /install/ubuntu_install_build.sh | ||
|
||
# ANTLR deps | ||
COPY install/ubuntu_install_java.sh /install/ubuntu_install_java.sh | ||
RUN bash /install/ubuntu_install_java.sh | ||
|
||
COPY install/ubuntu_install_antlr.sh /install/ubuntu_install_antlr.sh | ||
RUN bash /install/ubuntu_install_antlr.sh | ||
|
||
# python | ||
COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh | ||
RUN bash /install/ubuntu_install_python.sh | ||
|
||
COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh | ||
RUN bash /install/ubuntu_install_python_package.sh | ||
|
||
COPY install/ubuntu_install_torch_1.2.0.sh /install/ubuntu_install_torch.sh | ||
RUN bash /install/ubuntu_install_torch.sh | ||
|
||
COPY install/ubuntu_install_mxnet_cpu.sh /install/ubuntu_install_mxnet_cpu.sh | ||
RUN bash /install/ubuntu_install_mxnet_cpu.sh | ||
|
||
COPY install/FB15k.zip /data/kg/FB15k.zip | ||
RUN cd /data/kg && unzip FB15k.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# CI docker GPU env | ||
FROM nvidia/cuda:9.0-cudnn7-devel | ||
|
||
# Base scripts | ||
RUN apt-get update --fix-missing | ||
|
||
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh | ||
RUN bash /install/ubuntu_install_core.sh | ||
|
||
COPY install/ubuntu_install_build.sh /install/ubuntu_install_build.sh | ||
RUN bash /install/ubuntu_install_build.sh | ||
|
||
# ANTLR deps | ||
COPY install/ubuntu_install_java.sh /install/ubuntu_install_java.sh | ||
RUN bash /install/ubuntu_install_java.sh | ||
|
||
COPY install/ubuntu_install_antlr.sh /install/ubuntu_install_antlr.sh | ||
RUN bash /install/ubuntu_install_antlr.sh | ||
|
||
# python | ||
COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh | ||
RUN bash /install/ubuntu_install_python.sh | ||
|
||
COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh | ||
RUN bash /install/ubuntu_install_python_package.sh | ||
|
||
COPY install/ubuntu_install_torch_1.2.0.sh /install/ubuntu_install_torch.sh | ||
RUN bash /install/ubuntu_install_torch.sh | ||
|
||
COPY install/ubuntu_install_mxnet_gpu.sh /install/ubuntu_install_mxnet_gpu.sh | ||
RUN bash /install/ubuntu_install_mxnet_gpu.sh | ||
|
||
COPY install/FB15k.zip /data/kg/FB15k.zip | ||
RUN cd /data/kg && unzip FB15k.zip | ||
|
||
# Environment variables | ||
ENV PATH=/usr/local/nvidia/bin:${PATH} | ||
ENV PATH=/usr/local/cuda/bin:${PATH} | ||
ENV CPLUS_INCLUDE_PATH=/usr/local/cuda/include:${CPLUS_INCLUDE_PATH} | ||
ENV C_INCLUDE_PATH=/usr/local/cuda/include:${C_INCLUDE_PATH} | ||
ENV LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib64:${LIBRARY_PATH} | ||
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pip3 install mxnet==1.5.0b20190605 | ||
pip3 install mxnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pip3 install mxnet-cu90==1.5.0b20190605 | ||
pip3 install mxnet-cu90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# install libraries for python package on ubuntu | ||
pip2 install nose numpy cython scipy networkx matplotlib nltk requests[security] | ||
pip3 install nose numpy cython scipy networkx matplotlib nltk requests[security] | ||
#pip2 install nose numpy cython scipy networkx matplotlib nltk requests[security] tqdm | ||
pip3 install nose numpy cython scipy networkx matplotlib nltk requests[security] tqdm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
# install torch | ||
pip3 install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters