The Dynamic Neural Network Toolkit
Project description
The Dynamic Neural Network Toolkit
General
DyNet is a neural network library developed by Carnegie Mellon University and many others. It is written in C++ (with bindings in Python) and is designed to be efficient when run on either CPU or GPU, and to work well with networks that have dynamic structures that change for every training instance. For example, these kinds of networks are particularly important in natural language processing tasks, and DyNet has been used to build state-of-the-art systems for syntactic parsing, machine translation, morphological inflection, and many other application areas.
Read the documentation to get started, and feel free to contact the dynet-users group group with any questions (if you want to receive email make sure to select "all email" when you sign up). We greatly appreciate any bug reports and contributions, which can be made by filing an issue or making a pull request through the github page.
You can also read more technical details in our technical report.
Getting started
You can find tutorials about using DyNet here (C++) and here (python), and here (EMNLP 2016 tutorial).
One aspect that sets DyNet apart from other tookits is the auto-batching feature. See the documentation about batching.
The example
folder contains a variety of examples in C++ and python.
Installation
DyNet relies on a number of external programs/libraries including CMake and Eigen. CMake can be installed from standard repositories.
For example on Ubuntu Linux:
sudo apt-get install build-essential cmake
Or on macOS, first make sure the Apple Command Line Tools are installed, then get CMake, and Mercurial with either homebrew or macports:
xcode-select --install
brew install cmake # Using homebrew.
sudo port install cmake # Using macports.
On Windows, see documentation.
To compile DyNet you also need a specific version of the Eigen library. If you use any of the released versions, you may get assertion failures or compile errors. You can get it easily using the following command:
mkdir eigen
cd eigen
wget https://github.com/clab/dynet/releases/download/2.1/eigen-b2e267dc99d4.zip
unzip eigen-b2e267dc99d4.zip
C++ installation
You can install dynet for C++ with the following commands
# Clone the github repository
git clone https://github.com/clab/dynet.git
cd dynet
mkdir build
cd build
# Run CMake
# -DENABLE_BOOST=ON in combination with -DENABLE_CPP_EXAMPLES=ON also
# compiles the multiprocessing c++ examples
cmake .. -DEIGEN3_INCLUDE_DIR=/path/to/eigen -DENABLE_CPP_EXAMPLES=ON
# Compile using 2 processes
make -j 2
# Test with an example
./examples/train_xor
For more details refer to the documentation
Python installation
You can install DyNet for python by using the following command
pip install git+https://github.com/clab/dynet#egg=dynet
For more details refer to the documentation
Citing
If you use DyNet for research, please cite this report as follows:
@article{dynet,
title={DyNet: The Dynamic Neural Network Toolkit},
author={Graham Neubig and Chris Dyer and Yoav Goldberg and Austin Matthews and Waleed Ammar and Antonios Anastasopoulos and Miguel Ballesteros and David Chiang and Daniel Clothiaux and Trevor Cohn and Kevin Duh and Manaal Faruqui and Cynthia Gan and Dan Garrette and Yangfeng Ji and Lingpeng Kong and Adhiguna Kuncoro and Gaurav Kumar and Chaitanya Malaviya and Paul Michel and Yusuke Oda and Matthew Richardson and Naomi Saphra and Swabha Swayamdipta and Pengcheng Yin},
journal={arXiv preprint arXiv:1701.03980},
year={2017}
}
Contributing
We welcome any contribution to DyNet! You can find the contributing guidelines here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file dyNET-2.1.2.tar.gz
.
File metadata
- Download URL: dyNET-2.1.2.tar.gz
- Upload date:
- Size: 509.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c1de7cdd3a60b6c6491868b0e096b38b88d4ce14ef8bd065cb76bcd9f5a8b9 |
|
MD5 | cac42bad5eb0bcdc13a3eac3c1263ae6 |
|
BLAKE2b-256 | a33bb46bf4503c8f896b39169e1319adbfa485c8988db981aae537c7226b65c2 |
File details
Details for the file dyNET-2.1.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b72f7cc07115734226f570f0b041f122c7b2b5f5984318eaf209112eb9aa139 |
|
MD5 | 5ac41e84e34b273e8f925b4fc50356ba |
|
BLAKE2b-256 | b00530c91a1e040bb83d69293534f966cc7fa59857714ddf6e0d6137348da05e |
File details
Details for the file dyNET-2.1.2-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fecb684fac6120d0be9d6e263cf01e6851ff2d30d26e07caeb1f29e716b19c46 |
|
MD5 | 26a6acba4030bd7b560fa4ca18a627df |
|
BLAKE2b-256 | 74934b9d897c0c22e4f7bcf94c64e148a5aedcce0429fc4be2d8680fd5d8a8f3 |
File details
Details for the file dyNET-2.1.2-cp38-cp38-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp38-cp38-manylinux1_i686.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8230e407705544ecfcece0f759502f2100787611a86041db2232608a9cca4ef2 |
|
MD5 | afa2e43365430c5f027dbc22e84a685a |
|
BLAKE2b-256 | f000c02796d67d4c5ad6c68aff738896b1ad4f9d70dd70d52883175352d58348 |
File details
Details for the file dyNET-2.1.2-cp38-cp38-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp38-cp38-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 719e2c7327898c34e5003b88547a5b018c474be5ef211d6cd58ffd008c524339 |
|
MD5 | e8f3c78b89db68e699803f73f7a0d016 |
|
BLAKE2b-256 | 2a699ce61cfefe4094897282644f8312923dcb83a48596894666ab5d601439c1 |
File details
Details for the file dyNET-2.1.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2488763f8e7ecc426cd587c50c5f0caf98b8962e7353c08d4eb77ea86ab5356 |
|
MD5 | fe28d63b18ec1e9af43ddc403da46660 |
|
BLAKE2b-256 | b2ab5f24804b24e27bdf79f644b28707fe9944c8a784dbda375bbb3f2298c609 |
File details
Details for the file dyNET-2.1.2-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d1dd788ffe273311cc7fe1fdc24127ac32738138ced6a76ae6e090d43c3a0c |
|
MD5 | 99fe50513c2e236fe2a2e4b9f1504c29 |
|
BLAKE2b-256 | ade1cdb9a7eb73ef636b10f15747782918a9b58ccd3932944909940f086aae17 |
File details
Details for the file dyNET-2.1.2-cp37-cp37m-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96eca8afd1b1785c000460272c6339d67099964f5ec0b002c32da249da8d431 |
|
MD5 | 339136976efd7043237213e5c5cbdaa0 |
|
BLAKE2b-256 | e98c19687812f393453e41c8235885cf4fd23c289748d54cccbaa2f60dcfeeaa |
File details
Details for the file dyNET-2.1.2-cp37-cp37m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp37-cp37m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356b359a59c762802510afd2dc016e8e093021b00d94fae86e9ba1959056734c |
|
MD5 | 8c11bd2183c183cefcd72787b394f309 |
|
BLAKE2b-256 | 86c24829de679ab23a1dc460321dbf0dcd67c6333ce82f12cb01835123a9cb99 |
File details
Details for the file dyNET-2.1.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5952789b6c4838ce54151d72b590e6f142393b565ade0f27551f6f976797759 |
|
MD5 | 21818cf55227df3446812a7dae1bac51 |
|
BLAKE2b-256 | 74450451077cd6287eac985bd3eebda19c516790764c7dd147dd8adf33bd4cb1 |
File details
Details for the file dyNET-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55fde2fd703a4e5f736ae7e691a042967eed7b7aae4921035d4273b64132817 |
|
MD5 | 41c341cfdd959b5be47097afc837dd32 |
|
BLAKE2b-256 | 9d73b5435275aa9b00f21a7aa7f50bb476a3768d6c0b9cfffde09b39035a7019 |
File details
Details for the file dyNET-2.1.2-cp36-cp36m-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp36-cp36m-manylinux1_i686.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1916d0a62edc15f9a06268a1acf46c2eb636a2899f047af7b4accf49faaf6e55 |
|
MD5 | ab6b778a617ba22fdb495a938775d762 |
|
BLAKE2b-256 | f822032f7e89f2d81248e92efdb78c31428d6b050823fa5293fa44f54e56b380 |
File details
Details for the file dyNET-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.6m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6349cbaf2361568343e9f747d66912844a6d176aece8a2cfa7db43bb0c7c2b |
|
MD5 | 0d95fe7a16429346c25e8300abc9618b |
|
BLAKE2b-256 | 7d35c416cb45c20f1dd301a9548f7c5f131806df14d4d041b69d2a55b5bdd261 |
File details
Details for the file dyNET-2.1.2-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996b623f24c1a1047d64552e79c5454b6ef71e2465f2f8051b2b0ddbaafcd517 |
|
MD5 | 3122a9dd00f77d413735783a027d2602 |
|
BLAKE2b-256 | 1219bd7d99ef1f0dbb6e0b7a62eba8cf531602b62cdc53872271697e03d92c48 |
File details
Details for the file dyNET-2.1.2-cp35-cp35m-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp35-cp35m-manylinux1_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3412c8941a840c149cc39ba9ab6e2475de6234917b0f73d8d206df698d621717 |
|
MD5 | fe061825efc880a33597a520e0ef2657 |
|
BLAKE2b-256 | 7683887bd4a9fa0a8ddb2401fa8697dd0c27174bd55a709c892c4a8be19a8194 |
File details
Details for the file dyNET-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.5m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.5.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489ce86861ded23f06ddf583b3e5d0d44bf97520f4a889696934ac2ab0ae5b4f |
|
MD5 | 09ebd48dd9b6a8677da1771a94f868e0 |
|
BLAKE2b-256 | 61d6d9fbdfbcf0c404b16229960ecefb24d3d5208a99cbf6b8cc938440b1ebc4 |
File details
Details for the file dyNET-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9fc3df9cce6d7facf9550548ecbea842e4914c899d5435efde274e8d06e8a7 |
|
MD5 | 5a6a3ab74cd06d1f8dddc24e60feffea |
|
BLAKE2b-256 | 19693fe9fd6d2a270ceb5ab2646f596378dcb7be7e5fd7adb8d3b932b98f0656 |
File details
Details for the file dyNET-2.1.2-cp27-cp27mu-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp27-cp27mu-manylinux1_i686.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea8b6bd75ed00f773e35ca29f6b9b1e8959af3bcc0e953712c1b3c02c5a0a45 |
|
MD5 | 6c76bedc8cfb797e98722b805e7409a5 |
|
BLAKE2b-256 | 46a28d1f7d98ac1c48e3975a267f721ab3bc9a5aaa62fc28155b3d1dbb7664df |
File details
Details for the file dyNET-2.1.2-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dff73381e3f1353cba4101e2b3d10c7dfb492fe3fda0f8ac073ec4a3f30ab945 |
|
MD5 | e3558619a1501fff4d6bf18ad1e7b2aa |
|
BLAKE2b-256 | 8fa1c9b7e657a6fa0cdc62fc383b1184da5ffcb2bb61f830bf3b21a6e760f29e |
File details
Details for the file dyNET-2.1.2-cp27-cp27m-manylinux1_i686.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp27-cp27m-manylinux1_i686.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c67cd81f3bf8b469da3efe083bdfab3f78363107a2af4257de7ce534275cf750 |
|
MD5 | f9d1ad5b977f9757231ef8f2409d5ff6 |
|
BLAKE2b-256 | becd45f86b363255b457c382252aa0d01365a231cadc205ce8ccaeaaf7946686 |
File details
Details for the file dyNET-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: dyNET-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 2.7m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1edb33dc81b3beddb13dc7801214efcde7d52433818e546835b8138ea0339d |
|
MD5 | 199be5b4a791d77271e42e5da69051a6 |
|
BLAKE2b-256 | d98fb063b004360063e5d2da32e9c5da2f2c546d9e21faef1a77d3abe0e66244 |