mengyang.fmy
18f998a85c
add text-to-360pano-image pipeline, mod cv requirements
...
7月份计划上线的360全景图生成模型,自研
模型权重文件地址https://www.modelscope.cn/models/damo/cv_diffusion_text-to-360panorama-image_generation/summary
#### 依赖项说明
##### 由于要使用xformers,torch版本最好使用1.13.1
```
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
```
##### 对应的diffusers和xformers版本如下
```
pip install -U diffusers==0.18.0
pip install xformers==0.0.16
pip install triton, accelerate, transformers
```
##### ModelScope Library 需要使用cv
```
pip install modelscope
pip install "modelscope[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
```
##### 此外,还需要安装第三方的一个库,Real-ESRGAN, 安装方法如下
```
# Install basicsr - https://github.com/xinntao/BasicSR
# We use BasicSR for both training and inference
pip install basicsr
# facexlib and gfpgan are for face enhancement
pip install facexlib
pip install gfpgan
pip install Pillow
pip install tqdm
pip install realesrgan==0.3.0
```
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13346430
* add text-to-360pano-image pipeline
* add text-to-360pano-image pipeline, mod cv requirements
* rm redundant files and cv requirements; add standard input and output definations
* fix diffusers==0.18.0 and run test
* fix diffusers==0.18.0 in multi-modal and run test again
* add model_revision='v1.0.0'
* fix yapf
* add trycatch for enabling xformers
* fix key error
* add install xformers in test/setup
* skip highres.fix in ci
* feat: Fix conflict, auto commit by WebIDE
2023-07-27 11:33:39 +08:00
mulin.lyh
a780935317
torch1.11 and torch2.0.1 build script refactor
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13408751
* [to #51122016 ]feat: build image support torch1.x 2.x cuda11.3.0 11.7.1
* remove base version
* env cudatookit-version
* build script merge
* torch 1.11.0 fix
2023-07-25 21:15:00 +08:00
jiaqi.sjq
1f05acef88
fix pip install error when pysptk>=0.1.19
2023-07-25 21:13:31 +08:00
tongmu.wh
ba1a333ba6
add language recognition pipelines and models
...
新增语种识别pipeline和model
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13385083
* add language recognition pipelines and models
* add a clustering method for speaker diarization
* define input and output type for language recognition
2023-07-25 21:07:56 +08:00
hemu.zp
fc54593a56
fix baichuan eval and support sequence_length
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13404289
* fix baichuan eval
* support sequence_length and ppl
* fix typo
* fix bug for palm
* fix bug
2023-07-25 19:10:45 +08:00
zsl01670416
9926ad685b
support getting labels from dataset in sbert text classification and building dataset from file in chatglm-6b
...
1.Add getting labels from dataset in "text_classificationfinetune_text_classification.py" to simplify user's operation in flex training. Parameters "--num_labels" and "--labels" were removed in "run_train.sh".
2.In "chatglm6b / finetune.py", building dataset from file is necessary to support flex training.
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13382745
* support getting labels from dataset in sbert text classification and building dataset from file in chatglm-6b
* support getting labels from dataset in sbert text classification and building dataset from file in chatglm-6b
* remove repetitive labels in a concise manner of using set
* reserve parameter labels in finetune_text_classification
* Merge branch 'master' of http://gitlab.alibaba-inc.com/Ali-MaaS/MaaS-lib
reserve parameter labels in finetune_text_classification
* Merge branch 'support_text_cls_labels_chatglm_json'
reserve parameter labels in finetune_text_classification
2023-07-25 19:02:32 +08:00
zeyinzi.jzyz
672c4899e9
add sd swift tuner
...
SD-Tuner base on Swift (LoRA/Adapter/Prompt)
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13380798
* sd swift tuner
* fix pre-checker
2023-07-25 19:00:49 +08:00
shuli.cly
526e1371f5
Merge the speaker-turn-detection codes, local test finished
...
# Speaker Diarization Speaker-Turn Detection CR
和Dialogue-Detection一样,本模型是Speaker Diarization(`audio/speaker diarization`,语音/说话人日志)任务下的一个子模块。
本次提交的是基于文本进行判断的模型,本地模型的初始模型基于huggingface训练的,此提交中复用了部分 `nlp/token-classification` 模型的代码。为了方便后续维护以及与nlp方面代码解耦,在model、pipeline以及preprocessor中 **单独** 创建了相应模块并重新register。
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13364720
* std first commit
* local test pass for speaker-turn-detection
* update speaker-turn-detection pipeline task outputs format; update pipeline outputs; update test scripts
2023-07-25 18:57:47 +08:00
hemu.zp
80f76ca475
Support stream output for transformers model
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13271136
* support stream for transformers model
* set test_level >= 2
* support hf model and chatglm2
* remove streaming_output for chatglm2
2023-07-25 17:41:32 +08:00
hemu.zp
ed6e139759
Support llama & lora finetune without deepspeed
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13131145
* support llama + lora without deepspeed
* feat: Fix conflict, auto commit by WebIDE
2023-07-25 17:32:46 +08:00
mulin.lyh
fb644002fa
python build in type, return directly
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13380943
* python build in type, return directly
* fix output images bug
* compatible with demo service
2023-07-25 16:56:01 +08:00
zsl01670416
1e5e363235
fix issue of using cuda device in document segmentation pipeline inference
...
Fix issue of using cuda device in document segmentation pipeline inference.Time cost will be reduced when prediction is implemented.
2023-07-25 10:01:20 +08:00
tingwei.gtw
d16522723a
[to #42322933 ] add files
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13158565
* [to #42322933 ] add files
* [to #42322933 ] add files
* [to #42322933 ] add files
* [to #42322933 ] add files
* [to #42322933 ] add files
* update test data
* [to #42322933 ] add files
* Merge remote-tracking branch 'origin' into feature/sal_try_on
* [to #42322933 ] add files
* Merge remote-tracking branch 'origin' into feature/sal_try_on
2023-07-24 10:16:29 +08:00
shuli.cly
13e345f6d9
add sv/speaker_diarization_dialogue_detection to branch sv/semantic-dialogue-detection
...
# Speaker Diarization Dialogue Detection CR
本模型是Speaker Diarization(`audio/speaker diarization`,语音/说话人日志)任务下的一个子模块。
本次提交的是基于文本进行判断的模型,其IO和中间过程和 `nlp/text-classification` 很像,且本地模型的初始模型也是基于huggingface训练的,因此此提交中复用了部分 `nlp/text-classification` 模型的代码。为了方便后续维护以及与nlp方面代码解耦,在model、pipeline以及preprocessor中 **单独** 创建了相应模块并重新register。
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13269649
* start to add speaker_diarization_dialogue_detection files; Need to change constant and test
* add sv/speaker_diarization_dialogue_detection to branch sv/semantic-dialogue-detection
* update test case
* add comments for speaker diarization dialogue detection pipelines
* add outputs type and inputs type for speaker_diarization_dialogue_detection
2023-07-20 19:29:59 +08:00
shenweichao.swc
05c65ba225
add s2net for panorama_depth_estimation
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13310819
* add s2net codes
* fix sphdecoder
* Merge branch 'master' into dev/cv_s2net_panorama_depth_estimation
* revise comments in the pipeline
* revise the code
2023-07-20 19:28:03 +08:00
xiangpeng.wxp
4085d821f3
[to #42322933 ] add polylm, a polyglot large language model
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13339595
2023-07-20 18:21:07 +08:00
tongmu.wh
c859bea022
fix vad time stamp in sd pipeline
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13316765
* fix details of speaker models
* Merge branch 'master' into speaker-fix
* fix vad time stamp in sd pipeline
2023-07-20 17:32:51 +08:00
mulin.lyh
247ae5f637
default aliyuncs pip
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13320919
* default aliyuncs pip
* pip to aliyun source
2023-07-18 19:59:23 +08:00
mulin.lyh
bb9163f71a
remove hard code tsinghua
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13314592
* remove hard code tsinghua
2023-07-18 14:51:18 +08:00
mulin.lyh
104cb93d50
[to #50841229 ]feat: precompile pai-easycv in image
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13225347
* [to #50841229 ]feat: precompile pai-easycv in image
2023-07-14 19:11:49 +08:00
baiguan.yt
ceac129c6b
add parameters height and width for text-to-video
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13171907
2023-07-14 16:22:10 +08:00
yeqinghao.yqh
41cbb8e393
mPLUG-Owl 生成长度Bug修复
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13209284
2023-07-10 18:56:12 +08:00
tongmu.wh
a7f7a67855
fix details of speaker models
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13203011
* fix details of speaker models
2023-07-10 18:54:26 +08:00
chenyafeng.cyf
543d03e32b
3dspeaker
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13199180
2023-07-07 15:00:35 +08:00
hemu.zp
bb194f1d96
fix llama bug
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13133641
* fix bug
2023-06-30 20:49:30 +08:00
zsl01670416
2a2cc594eb
Merge branch 'maas_flex_train_dev' modify finetune_text_classification for arguments collision between eval_strategy and by_e...
2023-06-30 19:04:14 +08:00
hemu.zp
30599dc34f
fix llama lora bug
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13129620
2023-06-30 19:03:56 +08:00
mulin.lyh
3683a4386f
[to #50607174 ]feat: support parallel download large model file
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13113235
* [to #50607174 ]feat: support parallel download large model file
2023-06-30 15:30:00 +08:00
wenmeng.zwm
21b31b2bdd
revert data/test to newest
2023-06-29 22:13:19 +08:00
hemu.zp
f4c90f2adf
Support lora for llama
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13080086
* support lora for llama
* update baichuan
* remove work_dir
* fixbug: 1. change ConfigDict to list when hooks key not in config 2. ignore all bin files when preparing output folder
* 1. support device_map 2. remove the operation of to float when using lora
* add inference file
* add comment
* support device_map
2023-06-29 22:05:34 +08:00
wenmeng.zwm
cc0e7527d7
[to #50527737 ] fix cpu inference for stable diffusion pipeline
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13120858
2023-06-29 20:35:57 +08:00
hemu.zp
1944416d3d
Fix device_map for DiffusionForTextToImageSynthesis
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13115051
* add kwargs for device map
2023-06-29 16:49:20 +08:00
yuze.zyz
d4b9396084
Revert "support device_map"
...
This reverts commit 4d0367718d .
2023-06-29 16:08:42 +08:00
yuze.zyz
4d0367718d
support device_map
2023-06-29 08:07:43 +00:00
hemu.zp
612f0ebbc4
fix eval RecursionError
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13099203
2023-06-29 10:47:54 +08:00
suluyan.sly
88de9f78aa
[to #50538422 ]fix: support load from model id
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13092954
2023-06-29 10:26:52 +08:00
yuze.zyz
e951598a82
Merge branch merge_master_github_0628 into master
...
Title: Merge branch 'master-github' into merge_master_github_0628
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13104791
2023-06-29 09:47:52 +08:00
wenmeng.zwm
0271b9c256
Merge branch 'master-github' into merge_master_github_0628
2023-06-28 20:27:34 +08:00
Wang Qiang
d8381bf9fd
Stable diffusion examples of lora and dreambooth. ( #341 )
...
* stable diffusion examples of lora and dreambooth
* pre-commit
2023-06-28 20:13:28 +08:00
Wang Qiang
a018cd6107
Dreambooth method for finetuning stable diffusions ( #339 )
...
* Copyright
* dreambooth
* dreambooth test trainer
* fix bugs
* pre-commit
---------
Co-authored-by: 翊靖 <yijing.wq@alibaba-inc.com >
2023-06-28 20:10:28 +08:00
xingjun.wxj
0af8752024
Unfreeze datasets version setting
...
1. Unfreeze datasets version setting
2. Fix some bugs in class NativeIterableDataset
3. Remove auto-converting (image/audio) object in col:FILE
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13080190
2023-06-28 15:50:57 +08:00
mulin.lyh
48b62d8947
[to #50521098 ]fix: fix diffuser version conflict cv and multi-modal
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13079583
* [to #50521098 ]fix: fix diffuser version conflict cv and multi-modal
2023-06-28 15:36:12 +08:00
mulin.lyh
1ea9b58447
fix torch2.0 compatible issue
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13086361
* fix face-aligment compatible
* fix torch2.0 compatible issue
2023-06-28 14:15:48 +08:00
Wang Qiang
6942144ad7
Stable Diffusion model checkpoint export to onnx. ( #340 )
...
* stable diffusion export onnx
* fix pre commit bugs
* fix bugs
* safety checker support
* test export stable diffusion
2023-06-28 13:26:19 +08:00
yuze.zyz
8f18274f75
Add teardown for tests
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12643554
* add teardown for tests
* add teardown for dialog_modeling_trainer,document_grounded_dialog_generate_trainer,document_grounded_dialog_rerank_trainer,document_grounded_dialog_retrieval_trainer,training_args,translation_evaluation_trainer,translation_trainer
2023-06-28 09:44:44 +08:00
mulin.lyh
eb0f0216c6
fix torch 2.x compatible issue
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13045011
* fix torch 2.x compatible issue
* fix torch 2.x compatible issue
* fix complex-valued input tensor matching the output from stft with return_complex=True.
* skip plugin test temporarily for modify torch version
* fix test_speech_signal_process.py compatible issue
* fix lint issue
* upgrade funasr to 0.6.5
2023-06-27 14:40:51 +08:00
yuze.zyz
a58be34384
Add Lora/Adapter/Prompt and support for chatglm6B and chatglm2-6B
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12770413
* add prompt and lora
* add adapter
* add prefix
* add tests
* adapter smoke test passed
* prompt test passed
* support model id in petl
* migrate chatglm6b
* add train script for chatglm6b
* move gen_kwargs to finetune.py
* add chatglm2
* add model definination
2023-06-27 14:38:18 +08:00
xingjun.wxj
1dbff6cb48
Support jsonl format in meta data
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13071970
* support jsonl in meta
* add UT and refine fetch_meta_files_from_url
2023-06-27 11:58:19 +08:00
wenmeng.zwm
e9fba3c042
Merge branch merge_master_github_0626 into master
...
Title: merge_master_github_0626
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13071322
2023-06-26 23:31:22 +08:00
suluyan.sly
7e28ca226b
[to #50334474 ] llama tuned model -> pipeline
...
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13071602
* prepare for inference
2023-06-26 22:49:44 +08:00