An open API service indexing awesome lists of open source software.

https://github.com/qywu/torchfly

A PyTorch Deep Learning Kit
https://github.com/qywu/torchfly

kit nlp pytorch

Last synced: 3 months ago
JSON representation

A PyTorch Deep Learning Kit

Awesome Lists containing this project

README

          

--------------------------------------------------------------------------------

## Installment

Currently, TorchFly only supports Linux. Please download [conda](https://www.anaconda.com/distribution/#download-section) and create a virtual environment first (Python >= 3.6).

```bash
# create virtual env
conda create -n torchfly python=3.7
```

[apex](https://github.com/qywu/apex) is recommended, but it may need modifications if cuda version is mismatched. You can install it via:

```bash
# make sure ``nvcc`` is installed
# modified the error due to cuda version
git clone https://github.com/qywu/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
```

Then install this library in developer mode:

```bash
# clone repo
git clone https://github.com/qywu/TorchFly

# install the repo
pip install -e .
```

To use the repo,

```python
import torchfly
```

## Documentation

https://qywu.github.io/TorchFly