资源算法sgns_pytorch

sgns_pytorch

2020-02-10 | |  33 |   0 |   0

sgns_pytorch

Pytorch implementation of Skip-gram Negative Sampling and RNN-based SGNS. Sample dataset is Harry Potter series. The quality of the embedding is monitored with PIP loss with SPPMI matrix.

Requirements

  • Pytorch 1.0

  • tensorboardX

  • nltk

Data parallel

python trainer.py --multi-gpu --num-gpu 4

Distributed training

python trainer.py --multi-node --backend nccl --init-method nccl://master.ip.address:port --rank 0 --world-size 4

Experiments

modelnodesyncgpuembeddingbatchtime/epochlowest PIP loss
sgns4async42008192 * 446.5-
sgns4sync42008192 * 452.79193.6
sgns4sync42001024 * 4394-
sgns4sync4508192 * 416.9344.12
sgns4sync4501024 * 493.8144.21
sgns1-1200819228.6129.3
sgns1-1200102434.1123.6
sgns1-15081922915.1885
sgns1-150102421.614.52
sgns1-42008192 * 424.1-
sgns1-42001024 * 425.37129.6
sgns1-4508192 * 421.28-
sgns1-4501024 * 424.0815.44
rnn1-120010241133.91.11


上一篇:sgns.py

下一篇:ornamentum

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...