将 Palm 中文模型接入 MaaS,添加了文本生成 pipeline Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/8934393 * add text_generation model and pipeline * fix bug * fix bug * add TextGenerator in pipeline * fix bug * update checkpoint and test inputs * remove magic number.. * fix bug * adjust code with AutoModel * clear comments and tidy up the code * move model.eval() into generator * update master interface and lint code * replace 'palm-text-generation' with 'palm' * add text_generation model and pipeline * fix bug * fix bug * add TextGenerator in pipeline * fix bug * fix conflict of pipeline.txt * remove magic number.. * fix bug * adjust code with AutoModel * clear comments and tidy up the code * move model.eval() into generator * fix conflict * replace 'palm-text-generation' with 'palm' * fix conflict * add test_run_modelhub * update sofa version * modify sofa version * add test_run_with_model_name * fix bug
* add preprocessor module * add model base and builder * update task constant * add load image preprocessor and its dependency * add pipeline interface and UT covered * support default pipeline for task * add image matting pipeline * refine nlp tokenize interface * add nlp pipeline * fix UT failed * add test for Compose Link: https://code.aone.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/8769235 * add preprocessor module * add test for Compose * fix citest error * fix abs class error * add model base and builder * update task constant * add load image preprocessor and its dependency * add pipeline interface and UT covered * support default pipeline for task * refine models and pipeline interface * add pipeline folder structure * add image matting pipeline * refine nlp tokenize interface * add nlp pipeline 1.add preprossor model pipeline for nlp text classification 2. add corresponding test Link: https://code.aone.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/8757371 * new nlp pipeline * format pre-commit code * update easynlp pipeline * update model_name for easynlp pipeline; add test for maas_lib/utils/typeassert.py * update test_typeassert.py * refactor code 1. rename typeassert to type_assert 2. use lazy import to make easynlp dependency optional 3. refine image matting UT * fix linter test failed * update requirements.txt * fix UT failed * fix citest script to update requirements
* add license * add folder structure Link: https://code.aone.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/8682838