1 Star 0 Fork 175

fanws1026/PaddleNLP

forked from PaddlePaddle/PaddleNLP 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Noel 提交于 2022-12-07 19:25 +08:00 . [prompt] add unittest for template apis (#4028)
# Makefile for PaddleNLP
#
# GitHb: https://github.com/PaddlePaddle/PaddleNLP
# Author: Paddle Team https://github.com/PaddlePaddle
#
.PHONY: all
all : lint test
# # # # # # # # # # # # # # # Format Block # # # # # # # # # # # # # # #
format:
pre-commit run isort
pre-commit run black
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # Lint Block # # # # # # # # # # # # # # #
.PHONY: lint
lint:
pre-commit run
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # Test Block # # # # # # # # # # # # # # #
.PHONY: test
test: unit-test
unit-test:
# only enable bert-test: there are many failed tests
PYTHONPATH=$(shell pwd) pytest tests/transformers/bert \
tests/prompt \
tests/transformers/test_configuration_utils.py
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
.PHONY: install
install:
pip install -r requirements-dev.txt
pip install -r requirements.txt
pre-commit install
.PHONY: deploy-ppdiffusers
deploy-ppdiffusers:
cd ppdiffusers && make
.PHONY: install-ppdiffusers
install-ppdiffusers:
cd ppdiffusers && make install
.PHONY: deploy-paddle-pipelines
deploy-paddle-pipelines:
cd pipelines && make
.PHONY: install-paddle-pipelines
install-paddle-pipelines:
cd pipelines && make install
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fanws1026/PaddleNLP.git
git@gitee.com:fanws1026/PaddleNLP.git
fanws1026
PaddleNLP
PaddleNLP
develop

搜索帮助