Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junnyu/paddlenlp_gpu_ops
paddlenlp_gpu_ops
https://github.com/junnyu/paddlenlp_gpu_ops
Last synced: 17 days ago
JSON representation
paddlenlp_gpu_ops
- Host: GitHub
- URL: https://github.com/junnyu/paddlenlp_gpu_ops
- Owner: JunnYu
- Created: 2024-09-10T09:24:07.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T03:25:36.000Z (2 months ago)
- Last Synced: 2024-09-11T14:57:35.460Z (2 months ago)
- Language: Python
- Size: 310 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# paddlenlp_gpu_ops
paddlenlp_gpu_ops 是一个基于 PaddleNLP 的 GPU 算子库,提供了一些常用的 NLP 算子,包含 cuda 以及 triton 的实现。# 安装
## 编译cuda算子
```bash
cd csrc
rm -rf build dist *.egg-info
python setup.py build
```## 编译wheel包
```bash
python setup.py bdist_wheel
```## 安装wheel包
```bash
pip install dist/*.whl
```# Test
```bash
pytest -v tests/cuda
pytest -v tests/triton
```