Liujie0926
3f87dac9b7
Delete .github/workflows/distribute-v100.yml
2026-05-23 10:54:28 +08:00
Liujie0926
be4f19628f
Delete .github/workflows/distribute-a100.yml
2026-05-23 10:53:53 +08:00
xingmingyyj
587a5cdf97
fix load ema and model_meta path ( #11203 )
2025-12-17 17:19:22 +08:00
liufengwei0103
32b9a2e257
decouple sharding io and non zcc ( #11201 )
2025-12-16 19:12:37 +08:00
liufengwei0103
51f73a5104
disable only sharding opt in save stage ( #11200 )
2025-12-16 10:36:29 +08:00
baoqiwen
2ac85997c2
Fix loss for Align reduce precision with PyTorch 2.9.1. ( #11199 )
2025-12-15 15:45:57 +08:00
xingmingyyj
dcbdeaa819
change_save_meta_in_zcc_crossponding_to_paddle and fix flags ( #11198 )
...
* change_save_meta_in_zcc_crossponding_to_paddle
* delete
* fix
* change_save_meta_in_zcc_crossponding_to_paddle and fix args
* fix deadcode
---------
Co-authored-by: liufengwei02 <liufengwei02@baidu.com >
2025-12-13 17:03:13 +08:00
baoqiwen
7ab35ce94e
Align reduce precision with PyTorch 2.9.1, disable precision checks. ( #11195 )
2025-12-12 17:16:21 +08:00
xingmingyyj
bc08aeec91
ban ckpt_converter test ( #11194 )
2025-12-12 14:15:15 +08:00
liufengwei0103
f8d0829e02
fix zcc error in eb5 ( #11193 )
2025-12-12 11:08:47 +08:00
xingmingyyj
b0276d735a
【FlexCheckpoint】adapter flex checkpoint ( #11188 )
...
* adapter flex checkpoint
* opt bf16 save
* fix multi moe_sharding_group load safetensors
* fix
2025-12-08 23:07:15 +08:00
liufengwei0103
fa007c8f85
cp add_fc_into_zcc to nlp ( #11187 )
2025-12-05 21:56:54 +08:00
xingmingyyj
c8f141476c
add config memory_growth_threshold for save hf ( #11183 )
2025-11-28 19:37:10 +08:00
xingmingyyj
e4d28de5a8
【FlexCheckpoint】support save hf ( #11180 )
...
* support save hf
* fix
2025-11-26 23:28:16 +08:00
sneaxiy
53b85cbb34
fix EMA ( #11177 )
2025-11-18 12:10:34 +08:00
zhengshengning
9904cfc78e
fix_int64_to_int ( #11175 )
2025-11-14 14:03:12 +08:00
sneaxiy
c07e0c8d3a
Add Non ZCC EMA callback ( #11173 )
2025-11-13 10:12:55 +08:00
Wennie396
7c82a262f2
fix opt chunk offload ( #11167 )
2025-11-12 21:06:30 +08:00
Weiguo Zhu
61856820c3
fix model save for moe_sharding ( #11162 )
2025-11-12 18:50:34 +08:00
Zhuoqun Li
4eef1079f5
[Embedding] Expand training and shortgpt_prune code to support more model ( #11168 )
...
* final update
* expand training and shortgpt_prune code to support more model
2025-11-12 18:49:39 +08:00
zhengshengning
d38f3d696e
big tensor: tokens_unzip_gather ( #11172 )
2025-11-12 11:18:15 +08:00
wanghuancoder
e68b135bfa
fix eb5 big tensor bug ( #11169 )
...
* fix eb5 big tensor bug
* refine
* refine
2025-11-11 15:31:33 +08:00
Shing
6ac0402875
BugFix: qwen pp cannot send bool when using fuse loss ( #11156 )
...
* feat(model): add support for Qwen model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
* BugFix: qwen model sequence parallel can not get batch size
* BugFix: qwen pp cannot send bool when using fuse loss
2025-11-07 20:39:41 +08:00
sneaxiy
6ede865d0f
fix zcc ema GPU alloc bug ( #11165 )
2025-11-07 17:03:52 +08:00
Siyu Zhao
29f97bb461
TARE提交 ( #11151 )
...
Co-authored-by: zsy <zsy03260058@163.com >
2025-11-05 14:04:57 +08:00
a31413510
10014d8f0a
Update run_finetune.py ( #11159 )
2025-11-03 21:51:38 +08:00
hsz06
e73341efa4
[codestyle] Modular convert tools ( #11129 )
...
* new file: paddlenlp/transformers/convert/doc/README.md
new file: paddlenlp/transformers/convert/doc/llama_analysis.md
new file: paddlenlp/transformers/convert/doc/process.png
new file: paddlenlp/transformers/convert/doc/qwen2_analysis.md
new file: "paddlenlp/transformers/convert/doc/\351\241\271\347\233\256\346\212\245\345\221\212\357\274\232\351\243\236\346\241\250PaddleNLP-\345\211\215\346\262\277\346\250\241\345\236\213\346\250\241\345\235\227\345\214\226\350\256\276\350\256\241.md"
new file: paddlenlp/transformers/convert/main.py
new file: paddlenlp/transformers/convert/test_ability/test_base/test_modeling.py
new file: paddlenlp/transformers/convert/test_ability/test_paralle/compare_torch_with_paddle.py
new file: paddlenlp/transformers/convert/until/collect_import_modeling.py
new file: paddlenlp/transformers/convert/until/rename_identifiers.py
new file: paddlenlp/transformers/convert/until/rewrite_child_classes.py
modified: paddlenlp/transformers/qwen2/configuration.py
new file: paddlenlp/transformers/qwen2/modeling_qwen2.py
new file: paddlenlp/transformers/qwen2/modular_qwen2.py
* modified: paddlenlp/transformers/qwen2/modeling_qwen2.py
deleted: paddlenlp/transformers/convert/doc/README.md
deleted: paddlenlp/transformers/convert/doc/llama_analysis.md
deleted: paddlenlp/transformers/convert/doc/process.png
deleted: paddlenlp/transformers/convert/doc/qwen2_analysis.md
deleted: "paddlenlp/transformers/convert/doc/\351\241\271\347\233\256\346\212\245\345\221\212\357\274\232\351\243\236\346\241\250PaddleNLP-\345\211\215\346\262\277\346\250\241\345\236\213\346\250\241\345\235\227\345\214\226\350\256\276\350\256\241.md"
deleted: paddlenlp/transformers/convert/main.py
deleted: paddlenlp/transformers/convert/test_ability/test_base/test_modeling.py
deleted: paddlenlp/transformers/convert/test_ability/test_paralle/compare_torch_with_paddle.py
deleted: paddlenlp/transformers/convert/until/collect_import_modeling.py
deleted: paddlenlp/transformers/convert/until/rename_identifiers.py
deleted: paddlenlp/transformers/convert/until/rewrite_child_classes.py
deleted: paddlenlp/transformers/qwen2/__init__.py
deleted: paddlenlp/transformers/qwen2/configuration.py
deleted: paddlenlp/transformers/qwen2/modeling.py
deleted: paddlenlp/transformers/qwen2/modeling_pp.py
deleted: paddlenlp/transformers/qwen2/modeling_qwen2.py
deleted: paddlenlp/transformers/qwen2/modular_qwen2.py
deleted: paddlenlp/transformers/qwen2/tokenizer.py
deleted: paddlenlp/transformers/qwen2/tokenizer_fast.py
scripts/codestyle/convert/
* renamed: paddlenlp/transformers/convert/doc/README.md -> scripts/codestyle/convert/doc/README.md
renamed: paddlenlp/transformers/convert/doc/llama_analysis.md -> scripts/codestyle/convert/doc/llama_analysis.md
renamed: paddlenlp/transformers/convert/doc/process.png -> scripts/codestyle/convert/doc/process.png
renamed: paddlenlp/transformers/convert/doc/qwen2_analysis.md -> scripts/codestyle/convert/doc/qwen2_analysis.md
renamed: "paddlenlp/transformers/convert/doc/\351\241\271\347\233\256\346\212\245\345\221\212\357\274\232\351\243\236\346\241\250PaddleNLP-\345\211\215\346\262\277\346\250\241\345\236\213\346\250\241\345\235\227\345\214\226\350\256\276\350\256\241.md" -> "scripts/codestyle/convert/doc/\351\241\271\347\233\256\346\212\245\345\221\212\357\274\232\351\243\236\346\241\250PaddleNLP-\345\211\215\346\262\277\346\250\241\345\236\213\346\250\241\345\235\227\345\214\226\350\256\276\350\256\241.md"
renamed: paddlenlp/transformers/convert/main.py -> scripts/codestyle/convert/main.py
renamed: paddlenlp/transformers/convert/test_ability/test_base/test_modeling.py -> scripts/codestyle/convert/test_ability/test_base/test_modeling.py
renamed: paddlenlp/transformers/convert/test_ability/test_paralle/compare_torch_with_paddle.py -> scripts/codestyle/convert/test_ability/test_paralle/compare_torch_with_paddle.py
renamed: paddlenlp/transformers/convert/until/collect_import_modeling.py -> scripts/codestyle/convert/until/collect_import_modeling.py
renamed: paddlenlp/transformers/convert/until/rename_identifiers.py -> scripts/codestyle/convert/until/rename_identifiers.py
renamed: paddlenlp/transformers/convert/until/rewrite_child_classes.py -> scripts/codestyle/convert/until/rewrite_child_classes.py
renamed: paddlenlp/transformers/qwen2/modeling_qwen2.py -> scripts/codestyle/qwen2/modeling_qwen2.py
renamed: paddlenlp/transformers/qwen2/modular_qwen2.py -> scripts/codestyle/qwen2/modular_qwen2.py
* modified: scripts/codestyle/qwen2/modeling_qwen2.py
* modified: paddlenlp/transformers/qwen2/configuration.py
new file: scripts/codestyle/convert/example/qwen2/__init__.py
new file: scripts/codestyle/convert/example/qwen2/configuration.py
new file: scripts/codestyle/convert/example/qwen2/modeling.py
new file: scripts/codestyle/convert/example/qwen2/modeling_pp.py
renamed: scripts/codestyle/qwen2/modeling_qwen2.py -> scripts/codestyle/convert/example/qwen2/modeling_qwen2.py
renamed: scripts/codestyle/qwen2/modular_qwen2.py -> scripts/codestyle/convert/example/qwen2/modular_qwen2.py
new file: scripts/codestyle/convert/example/qwen2/tokenizer.py
new file: scripts/codestyle/convert/example/qwen2/tokenizer_fast.py
* modified: paddlenlp/transformers/qwen2/configuration.py
* modified: scripts/codestyle/convert/doc/README.md
deleted: scripts/codestyle/convert/doc/process.png
2025-10-30 15:44:26 +08:00
aiyinyuedejustin
1bcf877c7f
LoRA: add lora target modules support for qwen2 and qwen3 dense model when using fused keys ( #11153 )
2025-10-27 14:58:28 +08:00
Shing
c621f0cfa3
BugFix: qwen model sequence parallel can not get batch size ( #11147 )
...
* feat(model): add support for Qwen model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
* BugFix: qwen model sequence parallel can not get batch size
2025-10-24 16:57:09 +08:00
Gu Shiwei
3f7eafc774
paddleformers PR check ( #11150 )
...
* paddleformers PR check
* echo line
* -x
2025-10-23 17:09:34 +08:00
Pioneer-wxh
51787ba815
commit dislora ( #11122 )
...
* commit dislora
* add DisLoRATrainer
* “readme文件修改”
* Delete docs/zh/llm/benchmark/rl/README.md
2025-10-22 14:52:10 +08:00
Shing
a4d16faf33
BugFix: Support for Qwen Model PipelineParallel Training in RLInfra ( #11143 )
...
* feat(model): add support for Qwen model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
* feat(model): add support for QwenMoe model in RL PipelineParallel
2025-10-22 10:58:50 +08:00
Xuxinyi
7d30769994
[AutoParallel]update code ( #11145 )
...
* update_code
* update_code
2025-10-21 20:52:46 +08:00
yujun
2f78db69b0
Upgrad swandlab code ( #11105 )
...
* Upgrad swandlab code
* add SWANLAB_EXP_NAME env
2025-10-16 20:43:18 +08:00
Shing
5dd2855a52
feat(model): add support for Qwen model in RL PipelineParallel ( #11135 )
2025-10-11 10:35:33 +08:00
ZhenxingLi
119ed11904
[Auto-Paralllel] fix intermediate api use1 ( #11125 )
...
* fix intermediate api use
* update
2025-09-30 15:39:42 +08:00
zhongtianyun
3c51eda5d6
[Embedding] Fix readme and env for contrastive_training ( #11108 )
...
modified: csrc/gpu/unittest/test_get_padding_offset_v2.py
modified: paddlenlp/experimental/transformers/llama/modeling.py
modified: slm/pipelines/examples/contrastive_training/README.md
modified: slm/pipelines/examples/contrastive_training/evaluation/eval_mteb.py
modified: slm/pipelines/examples/contrastive_training/evaluation/eval_mteb.sh
modified: slm/pipelines/examples/contrastive_training/evaluation/modelling_quant.py
modified: slm/pipelines/examples/contrastive_training/shortgpt_prune.py
2025-09-29 10:53:53 +08:00
Liujie0926
937b766f21
[CI]Update loss ( #11115 )
...
Update loss
2025-09-25 15:21:34 +08:00
Tianyu Zheng
3432f69e07
Pr adapt flex checkpoint ( #11065 )
...
* adapt_flex_checkpoint
* Consistently use save_checkpoint_format and load_checkpoint_format
* fix the ckpt_format adapt
* delete the duplicate code
* delete safetensor
2025-09-25 14:16:35 +08:00
Liujie0926
586f5fb544
[CI]Update loss for Paddle#75367 ( #11106 )
...
* update loss_base
* update
* skip llama_dygraph_auto_bs8_fp16_DP2-MP2-PP2_hybrid_pp run dygraph auto hybrid pp in align mode
* fix
* fix
* fix
2025-09-24 16:21:02 +08:00
zhangyuqin1998
af07de0b01
[Distributed] refine training_pipeline_step to avoid memory leaks ( #11103 )
2025-09-23 14:59:25 +08:00
Gu Shiwei
b30ad6ad2b
fix approval bypass ( #11104 )
...
* fix
* fix
* fix
* fix
* fix
2025-09-23 10:21:16 +08:00
co63oc
615a7c96ed
fix typos ( #11041 )
2025-09-22 17:51:50 +08:00
Tianyu Zheng
03bc1a0063
[AutoParallel] GradientClipByGlobalNorm: Add align mode branch in autotrainer ( #10960 )
...
* Add test branch for align mode
* fix test bug
* rerun CI
* add the warning to warn the max_grad_norm is not 0.0
2025-09-22 16:30:31 +08:00
Liujie0926
b6f214efae
[CI] Update loss_check ( #11090 )
...
* fix loss_check
* fix
2025-09-15 15:44:58 +08:00
Wennie396
e28c816070
Add chunk offload optimizer ( #11084 )
...
* add chunk offload optimizer
* fix get offload_opt_buffer_size arg
2025-09-15 11:19:03 +08:00
Zhuoqun Li
efd7d26434
[Embedding] Add qwen3 and update readme ( #11034 )
...
* add qwen3 and update readme
* update readme
* update readme
* update readme
2025-09-11 10:20:34 +08:00
sneaxiy
148206ea20
Make sharding_first by default ( #11059 )
...
* make sharding_first by default
* update run_ci.sh
* Update V100 baseline
* Update A100 baselines
* Revert "Update A100 baselines"
This reverts commit c682b2752a83b0e532a15a6b6f90ce08e386e447.
* Revert "Update V100 baseline"
This reverts commit 1ca17b7963d1912bc98c27a5ec1a4bfe0bf8abda.
* fix topo in CI cases
* fix JSON format error
2025-09-08 10:49:10 +08:00
Gu Shiwei
462597fc1a
add bypass ( #11077 )
...
* add bypass
* add bypass
2025-09-08 10:23:53 +08:00
Ferrebo
85295b6955
[fea] support dp-moe for zcc and global_expert_id ( #11050 )
...
* support dp-moe for zcc (#10539 )
* [fix] zcc ema under non-pp when `acc=1`
* zcc-ema fix load-state-dict when dp-moe
* [BugFix] shard-reshard下dp间is_matched行为不一致,以dp0为准 (#9404 )
---------
Co-authored-by: Ferrebo <kebo01@baidu.com >
* [mod] Sharding IO: Added DP-Meta gather for MoE
---------
Co-authored-by: Meiyim <chenxuyi@baidu.com >
2025-09-08 09:56:41 +08:00
sneaxiy
509f005838
[Cherry-pick]Support to load sharded EMA checkpoint ( #11075 )
...
* support load sharded EMA checkpoints
* support_ema_loading_no_pdopt
* polish code
2025-09-08 09:55:39 +08:00
Junyuan Shang
20a584fb1a
[cherry-pick] add zcc_ema_loss_threshold args to avoid merging models with loss spike ( #11079 )
2025-09-06 20:38:35 +08:00
Tian
68645cce6b
Cherry-pick useful PRs from fleety ( #11051 )
...
* [LLM] fix normal sl (#10609 )
* [LLM] support disable monkey patch (#10617 )
* [LLM] use safer grad sync method when enabling sp (#10714 )
* [RL] disable aistudio download and fix qwen bug (#10819 )
* [RL] fix qwen load when fuse is enabled and modify gate presion to fp32 (#10842 )
* 修复qwen3moe的一系列报错(justin) (#10818 )
* [LLM] zcc support rng states (#10430 ) (#10485 )
* [DLTP-85730] optimize save cost for zcc
* [LLM] fix moe using on tensor parallelism
* cherry-pick useful PRs from fleety and fix some typos
---------
Co-authored-by: aiyinyuedejustin <114650502+aiyinyuedejustin@users.noreply.github.com >
2025-09-05 23:21:13 +08:00
weiweisss
e050fd8f93
[PEFT]:nola ( #10747 )
...
* 'nola提交'
* Update test_nola.py
* solve conflicts
2025-09-05 17:24:02 +08:00
Liebele
e298ba42f6
LoriKiT ( #9776 )
...
* add linchain
* resolve confilct
* add linchain test
* resolve pre-commit
* resolve ci problem and add description.
---------
Co-authored-by: moge <lydo_0826@outlook.com >
2025-09-04 20:44:52 +08:00
XiangzheWang
19a585b507
use key-value to init dataloader ( #11058 )
2025-09-04 19:18:45 +08:00
Kunbo Ding
13790da6d0
Unified FuseLoss ( #11057 )
2025-09-04 16:52:05 +08:00
gongel
bad78900ba
add more args to Qwen2ForCausalLM ( #11068 )
2025-09-04 14:24:49 +08:00
blacksheep-Aristotle
bbb8e004d3
token_dispatcher support expert_num 64 ( #11066 )
2025-09-04 13:23:32 +08:00
risemeup1
96a39777e3
fix custom op compile bug ( #11064 )
...
* fix bug
* Fix function calls in setup.py
---------
Co-authored-by: liym27 <33742067+liym27@users.noreply.github.com >
Co-authored-by: YUNSHEN XIE <1084314248@qq.com >
2025-09-04 11:05:56 +08:00
Yichen Zhang
1060ed47e7
[Cherry-pick] Cherry-pick hybrid-expert parallel related PRs from fleety ( #11052 )
...
* cherry-pick #10501
* cherry-pick #10526
* cherry-pick #10545
2025-09-03 17:27:47 +08:00
sneaxiy
206403950e
Cherry-pick PRs from incubate/paddlenlp_fleety ( #11049 )
...
* add offload opt util (#10607 )
* fix offload optimizer (#10608 )
* fix sharding reshard bug (#10613 )
* reset ema (#10790 )
* Move fused_quanted_ops and token_dispatcher_utils to FleetY (#10803 )
* move setup_fp8.py (#10820 )
* Add tokens_zip_unique_add_subbatch and merge_subbatch_cast ops (#10822 )
* add tokens_zip_unique_add_subbatch and merge_subbatch_cast ops
* enhance ut
* enhance ut again
* remove duplicate codes
* enhance ut again
* Sharding reshard supports mismatch parameter name (#10479 )
* Sharding Reshard Supports N -> 1 (#10532 )
* cherry-pick https://github.com/PaddlePaddle/PaddleNLP/pull/10531
* support tpdp-ep sharding reshard (#10568 )
* fix typo
* revert sharding_first
2025-09-03 15:44:15 +08:00
zhangyuqin1998
87515b4a33
Support param and moment sync for pp ( #11046 )
2025-09-03 14:10:26 +08:00
ShenLiang
9c3ae1dbe6
[Cherry-pick] Cherry-pick from fleety ( #11047 )
...
* add timer log in trainer (#10880 )
* add layer norm backward (#10886 )
* add memory usage message in tensorboard (#10887 )
2025-09-03 14:02:12 +08:00
umiswing
da9ddf7783
[feat] add params save_sharding_stage1_model_include_freeze_params ( #9198 ) ( #10551 ) ( #11045 )
...
Co-authored-by: Ferrebo <kebo01@baidu.com >
2025-09-03 10:59:16 +08:00
Liujie0926
abae89257e
[CI]fix no data for dist ( #11054 )
...
* fix
* update
2025-09-03 10:57:43 +08:00
umiswing
c0ccc616eb
[FEA] PP prepare_inputs add autocast ( #10502 ) ( #11043 )
2025-09-03 10:28:48 +08:00
umiswing
8f88a68b05
Adapt to non-orthogonal context parallel ( #11044 )
...
* Adapt to non-orthogonal context parallel
* fix codestyle
2025-09-03 10:28:39 +08:00
XiangzheWang
42af154348
move the newer deep_gemm to fleety ( #10860 ) ( #11040 )
...
Co-authored-by: wangxiangzhe <>
2025-09-02 13:23:23 +08:00
Liujie0926
b6c53b11fc
update loss_base for paddle ( #11027 )
2025-09-01 10:11:34 +08:00
Liujie0926
89ec9af687
[CI] remove CI ( #11024 )
...
* remove CI
* remove cpu CI
2025-08-28 18:19:36 +08:00
Liujie0926
c5701e7f2a
update is_cuda123 ( #11009 )
2025-08-28 14:42:41 +08:00
Zhan Rongrui
eda4a868ef
Enable check for llama_dygraph_auto_bs8_fp16_DP2-MP2-PP2 and llama_dygraph_auto_bs8_fp32_DP2-MP2 ( #10991 )
...
* enable
* fix
* fix
2025-08-26 19:18:00 +08:00
tianshuo78520a
ab5071b359
ADD Approval CI ( #10998 )
...
* Update Approval CI
* Update Approval CI
* fix
* fix
* fix
* fix
2025-08-26 14:12:41 +08:00
Liujie0926
c39410ff72
add llm&unittest ( #10993 )
2025-08-25 13:01:12 +08:00
Liujie0926
ea228be896
[CI]Update Distribute CI ( #10990 )
...
* add cuda12.3 loss_base
* add a100 action
2025-08-25 11:24:12 +08:00
Zhuoqun Li
0bb61071d0
[infer] add mistral ( #10668 )
2025-08-25 10:14:07 +08:00
Zhan Rongrui
7f5cbdd7cc
Disable check for llama_dygraph_auto_bs8_fp16_DP2-MP2-PP2 and llama_dygraph_auto_bs8_fp32_DP2-MP2 ( #10989 )
...
* update loss
* fix
2025-08-22 14:18:27 +08:00
zhongtianyun
1a58555b56
[feat] Add shortgpt ( #10983 )
...
* feat(shortgpt): add new script and polish existing code (typos, paths)
* fix: add shortgpt script, fix formatting and imports
2025-08-22 14:02:21 +08:00
Zhuoqun Li
c83684fe78
Fix hidden states and quant kv cache ( #10854 )
...
* fix hidden states
* fix quant kv_cache
* fix Lint style
* fix kv_cache_reuse key error
* fix kv_cache_reuse key error
* remove unused code
* fix kv_cache_reuse default
2025-08-21 15:35:25 +08:00
Liujie0926
887b5d27ae
[CI] update loss for Paddle PR#74530 ( #10949 )
...
* update loss for Paddle PR#74530
* fix bug
* fix
* fix python
2025-08-21 15:26:29 +08:00
Liujie0926
d38a95c1e2
[CI]update build.sh ( #10941 )
...
* update build.sh
* add proxy
* update cache path
* skip aistudio down for connection
* fix
2025-08-20 16:51:05 +08:00
xingmingyyj
d74c950e15
fix path ( #10955 )
2025-08-19 20:23:03 +08:00
Siming Dai
704fd4fc3b
fix ppo global_mini_batch_size ( #10937 )
2025-08-18 19:10:07 +08:00
zhaody
3e9d3518cb
Update ppo ( #10912 )
...
* add ppo
* Update run_rl.py
* Update ppo_trainer.py
* Update config_utils.py
* Update run_rl.py
* Update gsm8k_processor.py
* Update run_rl.py
* Update score_model_utils.py
* Update score_model_utils.py
* Update run_rl.py
* Update ppo_trainer.py
* Update ppo_trainer.py
* Update ppo_trainer.py
* Update score_model_utils.py
* Update gsm8k_processor.py
* pre_commit
* Update advantage.py
* Update advantage.py
* pre-commit check
---------
Co-authored-by: DesmonDay <908660116@qq.com >
2025-08-07 14:21:56 +08:00
RevL147
2ae914eae9
fix ordered_save func ( #10896 )
...
Co-authored-by: luyuxiang <luyuxiang@YuxiangdeMacBook-Pro.local >
2025-08-05 12:08:30 +08:00
Liujie0926
5b9e0b33c1
fix CI bug ( #10890 )
2025-07-28 14:14:14 +08:00
ZhenxingLi
d250b3456c
[Auto Parallel] Fix sp in gpt modeling_auto ( #10835 )
...
* Update modeling_auto.py
* Update pretrain-gpt3_13b_dynamic_auto.json
* update
* fix gpt sp model
* Update loss base
* update loss base
* disable benchmark SP for now
2025-07-25 14:44:38 +08:00
ZhenxingLi
b8f2101ebc
clear flag ( #10870 )
2025-07-21 19:47:12 +08:00
ZhenxingLi
a205bc3f39
Update ci_case_auto.sh ( #10855 )
2025-07-18 16:41:32 +08:00
Liujie0926
06366431bd
[CI] fix workflow ( #10861 )
...
* fix workflow
* remove codecov
2025-07-18 11:20:45 +08:00
Liujie0926
e042ac12e1
[CI] update workflow ( #10846 )
...
* update workflow for CI
* fix
2025-07-16 14:10:44 +08:00
danleifeng
f4846c1115
【AutoParallel】 add sep strategy for llama ( #10837 )
...
* autoparallel add sep strategy for llama
* fix ci
* fix ci error;
* fix ci error;
2025-07-14 19:14:56 +08:00
Yuntao Nie
58bed420fb
[Auto Parallel] change fused_layers.py to support fused_linear_grad add/sync_mp_allreduce/sp_async_reduce_scatter in same time ( #10797 )
...
* add origin linear
* fix
* update mock_layer in run_pretrain_auto
* fix
* fix
* fix to_static
* fix to_static
* support sp_async_reducescatter
* polish
* fix ci bug: no flashattn in v100
* fix loss base
* close mp async when sp is on
---------
Co-authored-by: chenyuyan <2903319587@qq.com >
2025-07-11 11:15:59 +08:00
waliwali777
15d49bbe95
[AutoParallel] Open dynamic sharding CI test ( #10793 )
...
* open sharding CI test and remove flag
* update loss_base
2025-07-10 21:21:26 +08:00
danleifeng
44eff1f93f
Add auto_parallel context_parallel strategy ( #10722 )
...
* add auto_parallel context_parallel and sep
* fix cp;add cp intermediate api demo
* fix
* fix
* fix
* fix
* fix modeling_auto
* fix modeling_auto
* fix pre-commit error
* fix pre-commit error
* fix ci error;add cp ut case
* fix ci error;add cp ut case
* fix ci error
* fix ci case loss diff error
* fix ci case loss diff error
* fix PaddleNLP-CI-gpt-3 ci error;cp not support non-a100
* fix PaddleNLP-CI-gpt-3 ci error;cp not support non-a100
* fix useless code;
* edit ci loss;changed cause paddle whl;0708
2025-07-09 14:33:27 +08:00
zty-king
78741f9c3e
Fix the _save function so that it can save the optimizer parameters. ( #10789 )
...
* Fix the _save function so that it can save the optimizer parameters.
* 添加llama_dygraph_auto_bs8_fp16_DP2-MP2-PP2_hybrid_pp热启动单测
* 规范命名
* fix the log error
2025-07-08 11:35:55 +08:00
waliwali777
86621a3fe9
close dynamic sharding CI test ( #10791 )
2025-07-04 18:41:49 +08:00
gongel
baaa080477
fix_qwen3_moe ( #10801 )
2025-07-04 14:45:25 +08:00
XiangzheWang
2828bc7e88
fix ut ( #10812 )
2025-07-04 14:04:40 +08:00
Emmanuel Ferdman
9db95ee962
[tests] migrate to unittest.assertEqual ( #10670 )
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-07-04 11:30:44 +08:00
ZhenxingLi
4355abbe93
[Auto-parallel] Fix sharding all_gather overlap in auto_dy ( #10782 )
...
* Update auto_trainer.py
* Update auto_trainer.py
2025-07-02 14:46:34 +08:00
ZhenxingLi
335905a07c
Update pretrain-llama2_13b_dynamic_auto.json ( #10785 )
2025-07-02 11:48:08 +08:00
ZhenxingLi
46c25bfb58
Update pretrain-llama2_7b_dynamic_auto.json ( #10786 )
2025-07-02 11:47:56 +08:00
liym27
53545aa563
[Auto-Parallel] optimize the perfermance of GPT-3 ( #10780 )
2025-07-01 16:08:19 +08:00
XiangzheWang
24a8887610
Adapt new nccl version ( #10768 )
...
* adapt new nccl version
* adapt new nccl version
* adapt new nccl version
* fix
* fix
* fix
* fix
* fix
* add test
* add test
* fix
* fix ut
2025-07-01 11:42:09 +08:00
ZhenxingLi
6ff098b972
[Auto Parallel] Add enable_linear_fused_grad_add in qwen benchmark ( #10779 )
...
* Update qwen-14b_pretrain_dynamic_auto_bs32_bf16_DP1_MP2_Sharding16_Stage1.sh
* Update pretrain-qwen_14b_dynamic_auto.json
* Update pretrain-qwen_14b_dynamic_auto.json
2025-06-30 17:15:06 +08:00
Yuntao Nie
d4be4ab700
[Auto Parallel] Adapt mp_async_allreduce optimize in auto paralle ( #10770 )
...
* add mp_async_allreduce
* update mock_layer()
* add comment
* remove comment
2025-06-30 11:00:01 +08:00
YUNSHEN XIE
b8f4b0cba6
disable use_cinn for intermediate_api_meta-llama-Llama-2-7b ( #10778 )
2025-06-27 20:27:10 +08:00
Liujie0926
8fd74f0b74
[CI] update auto_parallel loss_base for paddle#73408 ( #10771 )
...
* update loss_base for paddle#73408
* update
* test for loss
* update loss
* update loss
* update loss
* update
* update
* revert test
2025-06-26 14:14:24 +08:00
waliwali777
06378bb4e5
Add gpt dyanmic auto benchamrk ( #10759 )
...
* update
* Update pretrain-gpt3_13b_pp.json
* Update modeling_auto_pp.py
* Update modeling_auto_pp.py
* Update modeling_auto_pp.py
* Update run_pretrain_auto.py
* Update run_pretrain_auto.py
* Update run_pretrain_auto.py
* Update modeling_auto_pp.py
* Update pretrain-gpt3_13b_pp.json
* Update trainer_utils.py
* init benchmark
* update json
* update json
* remove sd flag
* format
* fix rebase
* open enable_linear_fused_grad_add
* pre-commit
---------
Co-authored-by: Xing-lil <zhenxingli@hust.edu.cn >
Co-authored-by: ZhenxingLi <lizhenxing02@baidu.com >
Co-authored-by: Starrysea996 <2462405885@qq.com >
2025-06-25 14:55:32 +08:00
waliwali777
ecf7a0c3f6
add model_type ( #10766 )
2025-06-25 11:21:03 +08:00
Yuntao Nie
cd4db85734
[Auto Paralle] open llama test ( #10762 )
...
* open_ci
* add A100 data
2025-06-25 11:20:45 +08:00
waliwali777
f068df3006
Fix the import issues caused by Paddle version ( #10760 )
...
* adapt to the release version of Paddle, fix import
* format
---------
Co-authored-by: Starrysea996 <2462405885@qq.com >
2025-06-24 20:07:40 +08:00
waliwali777
544b7db39e
open gpt dp CI test ( #10740 )
...
* open gpt dp CI test
* update a100 loss base
* update base
* update loss base
* run gpt base
* update base
* restore
2025-06-24 13:10:36 +08:00
megemini
f2477c0727
【Hackathon 8th No.32】 Adam-mini 精调算法复现 ( #10413 )
...
* [Init] AdamWMini
* [Update] blocks per neuron and other
* [Update] adamw_python
* [Update] adamw_python
* [update] fix grad mean
* [update] remove bad conflict resolve
* [update] moment shape align to torch
* [update] test layernorm
* [update] logger
* [add] test case for adamwmini
2025-06-24 10:36:03 +08:00
XiangzheWang
bfba64bb98
[Auto Parallel] add llama with auto pp ( #10751 )
...
* llama_with_auto_pp
* support change n_microbatches in json
* fix init model
* keep layers which are not in curr rank
* formal llama_with_auto_pp
* formal llama_with_auto_pp
* style
* formal
* fix
* fix
* fix
* fix
* add condition for hybrid pp
* fix
* add test case
* add test case
* add test case
* add llama type pp_schedule
* fix
2025-06-23 14:59:05 +08:00
waliwali777
1938c9e940
Run llama dyanmic pp perf ( #10753 )
...
* llama_with_auto_pp
* support change n_microbatches in json
* fix init model
* keep layers which are not in curr rank
* formal llama_with_auto_pp
* formal llama_with_auto_pp
* style
* formal
* fix
* fix
* fix
* fix
* add condition for hybrid pp
* fix
* add json
* remove old
* update json
---------
Co-authored-by: Waynezee <wangxiangzhe@baidu.com >
2025-06-20 20:27:56 +08:00
Yuntao Nie
e7420b1b38
[Auto Parallel] close llama dynamic dp test temporarily ( #10750 )
...
* close_ci
* fix
2025-06-19 11:40:43 +08:00
许万鹏
c6ed7a31e0
Integrate DataProto into the GRPO ( #10597 )
...
* Integrate DataProto into the GRPO
* Integrate DataProto into the GRPO, flake8
* Integrate DataProto into the GRPO, isort
* Update DataProto_ver250521
* Update DataProto_ver250530
* Update DataProto_ver250605, aligned
* Update DataProto_ver250610, aligned
* Update DataProto_ver250611, aligned, remove comment, recover Trainer
* Update DataProto_ver250611, aligned use outer autocast, remove comment, recover Trainer
* Update DataProto_ver250611, aligned use outer autocast, remove comment, recover Trainer, pre-commit
* Update DataProto_ver250612
* Update DataProto_ver250612, add copyright
* Update DataProto_ver250617, add docstring, follow style guidelines, black
2025-06-18 19:31:03 +08:00
Yuntao Nie
b79f03e037
[AutoParalle] fix fused layers fp32 multi precision ( #10743 )
...
* add enable_fused_linear_grad_add to run
* fix fused_layers fp32 multi precision
2025-06-18 17:11:28 +08:00
zhengzhonghui
7161461e59
Remove restrictions on the use of allgather_overlap ( #10741 )
2025-06-18 11:29:17 +08:00
Siming Dai
141499b287
fix tp model load ( #10739 )
2025-06-17 16:55:31 +08:00
Siming Dai
e5c7866c20
update architectures saving ( #10738 )
2025-06-17 16:55:17 +08:00
waliwali777
98b08b1242
close gpt dynamic dp test temporarily ( #10736 )
2025-06-13 18:13:29 +08:00
lugimzzz
9f9c1d3e83
fix wint4/8lora ( #10728 )
2025-06-12 22:53:49 +08:00
Yzc216
c9c0a3ec9e
Aistudio 使用 SDK 进行下载 ( #10678 )
...
* aistudio SDK
* test: transformer download util
* style: pre-commit check
* test
* fix: remove redundant parameter
* Update aistudio-sdk requirement
2025-06-12 19:36:44 +08:00
bukejiyu
7f5d719555
[inference]Add support for splitting Paddle tensors. ( #10721 )
...
* 增加paddle tensor 切分逻辑
* update
* update
* update
---------
Co-authored-by: tangbinhan <tangbinhan@baidu.com >
2025-06-12 11:32:16 +08:00
Liujie0926
88b7a14ab0
[CI] skip unit case for hang ( #10642 )
...
* skip case for hang
* fix codestyle
* skip test_data_collator_for_language_modeling
* fix requirements
2025-06-11 14:18:37 +08:00
ZhenxingLi
eb9e7a0392
[AutoParallel] Fix fast_rms_norm ( #10711 )
...
* Update ln_api.cpp
* Update ln_api.cpp
2025-06-11 12:00:30 +08:00
lugimzzz
4615d005f6
update fp8 training ( #10720 )
2025-06-11 11:15:02 +08:00
AIbin
7309a5dde8
update moe_preprocess for wint2.x ( #10702 )
2025-06-07 12:19:28 +08:00
Siming Dai
7f2de6ea2f
update mergekit with remove_keys input ( #10693 )
2025-06-06 23:14:40 +08:00
lugimzzz
46932b6629
fix ci ( #10710 )
2025-06-06 15:40:49 +08:00
ZhenxingLi
7c2fcbd778
Update llama_dygraph_auto_bs8_fp32_DP2 mem_base ( #10707 )
...
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2025-06-06 14:13:56 +08:00
lugimzzz
ad548d3bcf
[llm] support tensorwise fp8/int8 training ( #10612 )
2025-06-05 15:11:24 +08:00
waliwali777
fb80d7d0d9
improve qwen perf ( #10692 )
2025-06-05 14:50:11 +08:00
Ting
247ad86e16
[Template] apply chat template support openai format. ( #10701 )
...
Co-authored-by: ganzehua <ganzehua@baidu.com >
2025-06-04 21:21:14 +08:00
Siming Dai
acff7e1fa0
Update aistudio-sdk requirement ( #10698 )
2025-06-04 14:15:54 +08:00
Ting
38ebc26f08
[Template] add jinja plugin, apply_chat_template support dict messages ( #10677 )
2025-06-03 15:55:28 +08:00
liym27
b550133ff7
Revert "[Auto-Parallel] optimize llama-7b benchmark in temporary solution to …" ( #10682 )
...
This reverts commit e0921f0fa8 .
2025-06-03 10:40:26 +08:00
Siming Dai
c1322be06c
Update loading numpy format state dict ( #10679 )
...
* [UC] fix _load_state_dict_into_model
* update load numpy state_dict
2025-05-30 17:23:49 +08:00
ZhenxingLi
ea2976f396
[Auto-Parallel] Add benchmark for sharding opt in qwen N4C32 dy_auto ( #10673 )
...
* Update qwen-14b_pretrain_dynamic_auto_bs32_bf16_DP1_MP2_Sharding16_Stage1.sh
* Update pretrain-qwen_14b_dynamic_auto.json
2025-05-30 15:49:27 +08:00
liym27
e0921f0fa8
[Auto-Parallel] optimize llama-7b benchmark in temporary solution to avoid unnecessary communication ( #10671 )
2025-05-30 14:14:52 +08:00
waliwali777
9ba4e7e046
Remove num_hidden_layers for baichuan ( #10655 )
...
* remove num_hidden_layers for baichuan
* add enable_linear_fused_grad_add
* remove fused_linear_param_grad_add
* add tensor_fusion
* add fused_linear_param_grad_add
2025-05-28 19:31:51 +08:00
FireDog2
d67eaa42f1
LoRA-Pro Implemention ( #10146 )
...
* lorapro提交
* Fix issues in LoraPro tests and configuration
* Fix loRA-Pro test files bugs
* lorapro pr修改
* Trigger CI re-run
2025-05-28 19:25:24 +08:00
ZhenxingLi
e5858b1204
[Auto-Parallel] Add acc=2 case for tensor_fusion and overlap in auto-dy ( #10665 )
...
* Update ci_case_auto.sh
* Update loss_base
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2025-05-28 15:06:17 +08:00
liym27
73118f6d37
[Auto-Parallel] optimize perfermance for qwen-14b ( #10652 )
2025-05-28 11:09:52 +08:00
waliwali777
988ad5d0d0
[AutoParallel] add use custom op test in pipeline mode ( #10653 )
...
* add use rms norm ci test in pp mode
* fix loss base
* fix base
2025-05-27 14:23:03 +08:00
Ze-Yi LIN
062debf2aa
[Integration] add swanlab logger ( #10594 )
...
* feat: add swanlabcallback
* fix run
* fix lint
* fix requirements dev
* fix url
2025-05-27 11:25:16 +08:00
Hanlin Tang
c418bba09c
[Docs] Change tables to list items ( #10656 )
2025-05-27 11:24:17 +08:00
ZhenxingLi
eb43056b95
Add benchmark for fused_linear in llama7b N4C32 dy_auto ( #10647 )
...
* Update pretrain-llama2_7b_dynamic_auto.json
* Update pretrain-llama2_7b_dynamic_auto.json
* Update pretrain-llama2_7b_dynamic_auto.json
2025-05-26 14:43:23 +08:00
Siming Dai
f0eccbde43
[UC] fix _load_state_dict_into_model ( #10645 )
2025-05-26 14:35:16 +08:00
co63oc
a38f7b7805
[Typos] Fix ( #10651 )
2025-05-26 11:33:35 +08:00
Hanlin Tang
5f5d9d4cfb
[llm] Add pretrain tutorial ( #10611 )
2025-05-26 11:27:48 +08:00
Hanlin Tang
f90c7a53dd
【PaddleNLP No.2】Add finetune tutorial ( #10625 )
...
* [Docs] Add finetune tutorial
* [Docs] fix finetune_tutorial
2025-05-26 11:27:37 +08:00
Hanlin Tang
0643835e13
【PaddleNLP No.3】Add alignment tutorial ( #10631 )
...
* [Docs] Add alignment tutorial & fix rl doc formulas
* Update alignment_tutorial.md
2025-05-26 11:27:25 +08:00
Hanlin Tang
d267297277
【PaddleNLP No.4】 Add quant tutorial ( #10640 )
...
* [Docs] Add quant tutorial
* [Docs] del tables in quantization_tutorial.md
2025-05-26 11:27:12 +08:00
ZhenxingLi
c309aa7c80
Update meta-llama-Llama-2-7b_pretrain_dynamic_auto_bs32_bf16_Sharding32_Stage2.sh ( #10599 )
2025-05-23 15:13:42 +08:00
zty-king
c3e25ca527
[AutoParallel] Using local_map replace LocalLayer ( #10309 )
2025-05-23 15:01:59 +08:00
chen
99e1c105cf
[infer] update_input_v2 op will not return eos when env_var is set ( #10628 )
...
* Revert "output_len truncated without eos_token_id (#10614 )"
This reverts commit 850c6c2859 .
* check
* check
* add env var
2025-05-23 14:12:30 +08:00
gongel
7dbba98070
[RL] Fix typo and add wandb log ( #10641 )
...
* add log
* add INFERENCE_TRUNCATED_RETURN_EOS
* add INFERENCE_TRUNCATED_RETURN_EOS
2025-05-23 14:11:06 +08:00
SdeeRK
eee766b5de
[RL] reinforce learning benchmark framework ( #10619 )
...
* 增加rl目录下的init.py文件
* 增加copy rightb并格式化
* add reinforcement learning benchmark framework
* update copyright
* update
* add reinforce learning benchmark framework
* add elapsed time metrics in api serve framework
* fix some bug
* add reinforce learning framework with scripts file
* remove vllm quant type
* reformat rl benchmark code and scripts
* add readme file
* add fastdeploy engine support for api serve
2025-05-23 14:10:45 +08:00
cyy536
134a7b9958
Add ci for sp_async_reduce_scatter_in_dygraph_auto_mode ( #10638 )
2025-05-23 13:10:13 +08:00
ZhenxingLi
23e4c1ae80
[Auto-Parallel] Add ci for tensor_fusion and overlap in auto-dy ( #10598 )
...
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2025-05-23 11:50:37 +08:00
Hanlin Tang
dbf9c44927
[LLM] fix quantization without qlora ( #10639 )
2025-05-22 18:01:06 +08:00
co63oc
3f2db10ffe
[Typos] Fix ( #10494 )
...
* Fix
2025-05-22 17:53:07 +08:00
huangjiyi
adf2768fe2
add merge_all_horizontal_groups cinn flag for llama ( #10629 )
2025-05-22 15:38:25 +08:00
Zero Rains
64afc81733
[FIX] fix the bug that some gemm config did not be handled ( #10627 )
...
* fix the bug that some gemm config did not be handled
* change paddle_throw to std::runtime_err
2025-05-21 20:39:03 -07:00
cyy536
a6ea5390f7
Add sp_async_reduce_scatter in dygraph auto mode ( #10620 )
2025-05-22 10:52:02 +08:00
co63oc
3b0c8ff630
[Typos] Fix ( #10486 )
2025-05-21 11:48:08 +08:00
Hanlin Tang
af16c95c07
[PIR] Update simcse to apply pir ( #10396 )
2025-05-21 11:47:08 +08:00
Hanlin Tang
868f6eeed5
[Taskflow] Fix the recognition bug of json format with both PIR suffix and id2label ( #10487 )
2025-05-21 11:45:18 +08:00
Hanlin Tang
38828ba0bb
[PIR] Update paddle.inference infer example for Ernie-vil2.0 ( #10500 )
...
* [PIR] Updated arrow data and paddle.inference infer example for Ernie-vil2.0
* [PIR] delete fastdeploy in ernie-vil2.0 doc
2025-05-21 11:37:31 +08:00
Echo-Nie
7ea6253132
【PaddleNLP No.1】 add pre-train.md ( #10506 )
...
* Paddle NLP No.1 pretrain.md
* add comment to printInfo
* fix according to review
* fix according to review
* 移除模型列表,改为参考根目录列表
* 修改模型列表措辞
2025-05-21 11:36:52 +08:00
co63oc
9bee5b36ad
Fix ( #10533 )
2025-05-21 11:35:33 +08:00
chen
850c6c2859
output_len truncated without eos_token_id ( #10614 )
2025-05-20 12:49:14 +08:00
Siming Dai
6f80ea1562
Fix fp8 in dtype_byte_size ( #10618 )
2025-05-20 11:08:01 +08:00
Zong Wei
5c482b6b64
[INTEL_HPU] Enable FusedBlockMultiTransformerHPU ( #10514 )
...
add FusedBlockMultiTransformerHPU and prepare_input_hpu
atten output post-process
FusedBlockMultiTransformerHPU opti for-if-else
kv_head update for HPU shape
fix benchmark can't run with bigger bs issue
Co-authored-by: yanfeich <yanfei.cheng@intel.com >
2025-05-19 17:37:46 +08:00
Zhong Hui
6bdb71622c
Update ppo_model_utils.py ( #10593 )
...
* Update ppo_model_utils.py
* Update pp_model_utils.py
2025-05-19 17:30:17 +08:00
Jinji Fu
c654d1ae21
merge reshard-1 ( #10606 )
2025-05-19 17:12:49 +08:00
yujun
ddcb722e3d
[RL] logprob compute use the same method ( #10596 )
...
* fix logprob compute method
* update
2025-05-15 15:41:50 +08:00
FocusLuo
cd2d2dc05b
[INTEL_HPU] add e2e auto test cases ( #10108 )
...
* [INTEL_HPU] add e2e auto test cases
* [INTEL_HPU] add e2e auto test cases
---------
Signed-off-by: Luo, Focus <focus.luo@intel.com >
2025-05-14 17:01:44 +08:00
Liujie0926
6de50e6750
[paddlenlp_ops] update whl ( #10576 )
...
* update whl
* update
2025-05-14 15:17:37 +08:00
Zhong Hui
2b1efb2efd
Update serialization ( #10584 )
...
* Update serialization.py
* fix
2025-05-14 11:45:58 +08:00
Weiguo Zhu
91920a68cb
fix ( #10585 )
2025-05-13 19:22:11 +08:00
gongel
477048cccd
fix_eos_mask ( #10588 )
2025-05-13 15:19:54 +08:00
Zhong Hui
6d40971b6e
Refactor RL ( #10569 )
...
* pathes to RLTrainerBase
* refactor ActorReferenceTrainerBase
2025-05-13 15:17:15 +08:00
chen
fe442e4173
check ( #10587 )
2025-05-13 15:11:54 +08:00
chen
47de2c6c04
[infer] get_output and save_output recover input without msg_queue_id ( #10574 )
...
* check
* fix input_text dy_insert
* check code
2025-05-13 13:06:28 +08:00
Liujie0926
8205e3d194
[CI]add rl to ci ( #10553 )
...
* fix scripts for docs
* fix timeout
* add grpo&rf++
* fix path
* update yaml
* fix
* fix data
* add install_external_ops
* fix fused_ln
* fix
* update cmd
* fix path
* fix
* fix path
* fix codestyle
* update class name
* update name
2025-05-13 10:02:56 +08:00
SdeeRK
3570aaac37
增加rl目录下的init.py文件 ( #10581 )
...
* 增加rl目录下的init.py文件
* 增加copy rightb并格式化
2025-05-12 17:44:42 +08:00
yulangz
c4e53f6820
[Dockerfile] Add xpu p800 release dockerfile ( #10552 )
2025-05-12 16:27:53 +08:00
Zhong Hui
c043487a16
[LLM] Add qwen3 ( #10524 )
...
* init qwen3
* first version.
* fisrt version support for qwen3
* add missing files.
* add readme
* refine copyright.
* init version for qwen moe.
* fix networks.
* fix generate.
* refine
* fix set_state_dict to slow for supper large network for network, such as moe model.
* fix
* fix
* fix set_state_dict to slow for supper large network for network, such as moe model.
* fix qwen2 tensor parallel.
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
2025-05-12 10:35:58 +08:00
kebin liu
759ae99609
add qat_fp8linear ( #10570 )
2025-05-09 14:36:45 +08:00
Liujie0926
247f05e4a6
[paddlenlp_ops] update name ( #10518 )
...
* update paddlenlp_ops name
* fix
* update version
2025-05-09 14:30:16 +08:00
zhink
624510af1d
[paddlenlp_ops] Fix custom all reduce and cpp_extensions.cu when sm70/75 ( #10554 )
2025-05-09 10:59:19 +08:00
Siming Dai
72dc85d2d7
fix stop_gradient in uc ( #10571 )
2025-05-08 18:22:06 +08:00
Hanlin Tang
6c0bfac329
【PaddleNLP No.22】Fix PIR for ernie-layout ( #10484 )
2025-05-08 15:01:44 +08:00
Tian
276cfc2cd4
[LLM] fix zcc typo ( #10559 )
2025-05-08 13:18:22 +08:00
lugimzzz
fa41a91efa
fix quantlora bug ( #10562 )
2025-05-07 20:29:26 +08:00
yujun
aa9d8d5788
[RL] 加速推理模型qwen2的set state dict的性能 ( #10550 )
...
* 加速推理模型qwen2的set state dict的性能
* dim -> axis
2025-05-07 18:07:56 +08:00
Hanlin Tang
1f9b47ee14
[PIR]Fix ernie-3.0 deploy&add training without hf ( #10475 )
2025-05-07 15:22:16 +08:00
chen2016013
fea8d82586
fix llama13b bug ( #10525 )
2025-05-07 11:28:06 +08:00
Weiguo Zhu
c7d44f2bf9
[RL] Fix loading amp custom list from .yaml ( #10544 )
...
* fix
* add rf++
2025-05-06 22:17:43 +08:00
Tian
bb83432da0
[LLM] enhance logger output for real filename and lineno ( #10537 )
2025-05-06 19:18:41 +08:00
Hanlin Tang
1aadf1bce6
[PIR] Fix text_classification ( #10497 )
2025-05-06 13:13:12 +08:00
Jinji Fu
95901cb11b
Fix qwen rl kl coeff ( #10530 )
2025-04-30 17:08:44 +08:00
yujun
93e58f2357
添加grpo_qwen32b 9机训练命令 ( #10528 )
2025-04-30 13:53:37 +08:00
Function-Samuel
9b3ef71b62
Add dynamic auto mode cross_entropy CI ( #10515 )
...
* add cross_entropy ci
* fix
* fix
2025-04-29 19:33:01 +08:00
Function-Samuel
d0044ab6cb
Add qwen cross entropy optimize in dynamic auto mode ( #10521 )
2025-04-29 19:32:51 +08:00
gongel
713ef2b228
rename ( #10523 )
2025-04-29 16:45:01 +08:00
gongel
7c565f6f3c
update rl doc ( #10522 )
2025-04-29 15:51:28 +08:00
lugimzzz
3fa6ac6a7c
fix readme bug ( #10520 )
2025-04-29 15:37:10 +08:00
Function-Samuel
fab948ca4f
Add qwen-14b benchmark ( #10513 )
2025-04-29 14:22:34 +08:00
yujun
5f782a840d
add grpo kk 0.96 ( #10519 )
2025-04-29 14:07:42 +08:00
greycooker
a00471f1e9
[RL] Fix GRPO &&RF++ Docs ( #10517 )
...
* fix ppo doc
* fix grpo
2025-04-29 11:15:26 +08:00
yujun
edd34aa3bc
[RL] RL support varlen flash mask ( #10490 )
...
* update rl
* 删除optimizer的timer时间
* 修改rollout_continue_batching_batch_size为rollout_max_num_seqs, quant_type为rollout_quant_type
* 更新global_mini_batch_size
* fix entropy_coeff dtype error
* add einops requirements
* 更新文档
* user rm padding so we donot need to pad_to_multiple_of tp degree
* update rollout_max_num_seqs
* squeeze unsqueeze
* shuffle
* fix training bug
* fix missing pad
* add dataloader_shuffle args
2025-04-28 19:48:17 +08:00
Zhong Hui
d6182ffa65
Update rl_dataset.py with apply_chat_template ( #10510 )
2025-04-28 16:04:32 +08:00
Liujie0926
4821b63869
[CI]skip unnecessary executions ( #10509 )
...
* skip unnecessary executions for unittest
* fix
* fix
* skip unnecessary executions for distribute
* fix unittest
* fix
2025-04-28 10:49:36 +08:00
Echo-Nie
e7516ee3c0
Fix llm_train.rst deaklink( #10505 )
2025-04-27 17:12:45 +08:00
Zhong Hui
aad5cbe847
[ArgParser] Support pass python file as config. ( #10489 )
...
* fix import.
* add python script.
* support pass python file as config.
2025-04-27 17:06:51 +08:00
l1cacheDell
370702a6bd
update setup_cuda.py ( #10493 )
2025-04-27 00:33:11 -07:00
Liujie0926
d3ee14fab8
[CI]update scripts for ci ( #10496 )
...
* update scripts for ci
* fix
* update install_paddle
* fix
* fix install_paddle
* add timeout for taskflow
* fix case_list
* fix
2025-04-27 11:12:34 +08:00
Function-Samuel
4d358256f8
[Performance Optimization]Replace cross_entropy_with_softmax to c_softmax_with_cross_entropy in dynamic auto mode ( #10471 )
...
* Replace cross_entropy_with_softmax to c_softmax_with_cross_entropy in dynamic auto mode
* add sys_path
* add TODO
* add copyright
2025-04-27 10:57:16 +08:00
chen
acb6e224b5
【Inference】Fix Bug set_preids_token_penalty_multi_scores ( #10492 )
...
* fix
* check model_inputs[pre_ids] update in dynamic insert
2025-04-25 20:12:46 +08:00
Zero Rains
409fc407c9
[Inference] fix the bug for dynamic/static inference and dy2st for deepseekv2 in weight only int4/int8 ( #10491 )
...
* fix the bug in export deepseek_v2
* fix the deepseekv2 dynamic weight only int8
* fix
* fix
* update
2025-04-25 18:20:10 +08:00
Zhong Hui
f0c5aa2814
Fix predict import. ( #10476 )
2025-04-24 16:22:11 +08:00
co63oc
e8a19d361a
Fix typos ( #10483 )
2025-04-24 12:02:41 +08:00
Echo-Nie
3a23130fa0
[PIR] Fix UIE ( #10482 )
2025-04-24 11:05:46 +08:00
Hanlin Tang
14bb7cfe7c
[PIR] Create paddle.inference infer example of ernie-3.0-tiny ( #10480 )
2025-04-24 11:04:24 +08:00
Echo-Nie
d75d5ad904
[PIR] Fix ernie-vil2.0 ( #10481 )
2025-04-24 10:54:41 +08:00
Kunbo Ding
402e2e8494
[RL] Update reward training docs ( #10473 )
...
* update rm docs
* update rm docs
2025-04-24 10:51:23 +08:00
yulangz
323ffec4fa
[XPU] support absorb mla, separate the model networking from GPU ( #10353 )
...
* 独立的,不和 GPU 混用的组网,现在还缺算子迁移过来
* update csrc
* fix
* fix
* 移除多余代码
* support infer param
* fix save output
* add warm script
* 组网剥离
* fix style
* update setup and remove useless files
* fused block attn
* hack 实现 int_wo MOE
* 多线程 mmlu 脚本
* mmlu 8K 输出
* add inference time for benchmark
* fix warm max_dec_len
* Revert "mmlu 8K 输出"
This reverts commit 0c89ea0fa7 .
* Revert "多线程 mmlu 脚本"
This reverts commit fe6bfc5a3b .
* add high speed moe
* change rope cos sin to cpu
* fix save output
2025-04-23 20:47:12 +08:00
chen
2211480714
【infer】 predict_dy_insert support more inputs and append attn support excess_blocks input ( #10446 )
...
* support input input_ids, and all_rank_return in dy_insert
* refine code
* delete print
* fix kv_cache block mismatch block_table
* check input_ids len
* check input_ids len logger
* fix dy_insert cuda700, append attn support excess_blocks
* check empty_cache order
* check modeling forward input excess_blocks
2025-04-23 20:01:16 +08:00
l1cacheDell
345ff570ae
[Triton Kernel] Add varlen segment mean triton kernel ( #10369 )
...
* upload triton kernel
* update kernel from review
* fix docstring
* update __init__
2025-04-23 19:55:30 +08:00
zhangyuqin1998
53273adb74
[Trainer] Add forward_backward_overlap_scheduler in pipeline_parallel_config ( #10336 )
...
* [Distributed] Add forward_backward_overlap_scheduler in pipeline_parallel_config
* fix codestyle
2025-04-23 17:14:03 +08:00
Liujie0926
671cf1accc
[CI] Add timeout exception prompt for ci ( #10450 )
...
* fix paddlenlp build
* fix paddlenlp_ops install
* [CI] fix scripts
* exit_code=124
* fix
* add timeout
* add timeout for paddlenlp
2025-04-23 16:56:36 +08:00
co63oc
f65b90610e
[Typos] Fix ( #10290 )
2025-04-23 15:51:51 +08:00
co63oc
e49945aea3
[Typos] Fix ( #10289 )
2025-04-23 15:46:40 +08:00
Hanlin Tang
fa8359d002
[PIR] Fix test_tipc configs/inference/docs ( #10465 )
2025-04-23 15:42:34 +08:00
Echo-Nie
5aa907c22c
[PIR] Fix information_extraction ( #10469 )
2025-04-23 15:36:31 +08:00
Echo-Nie
46ebe6e67a
[PIR] Fix lexical_analysis ( #10470 )
2025-04-23 15:36:05 +08:00
will-jl944
d80bce0469
In case dpo uses score-based loss ( #10461 )
2025-04-23 15:28:47 +08:00
lugimzzz
72e1994b38
add loralinear ( #10385 )
...
* add loralinear
* add wint8lora
* fix bug
* add a8w8linear
* add a8w8linear with hadamard
* support fused linear
* support backward
* support wint8
* add a8w8
* add a8w8
* fix following comments
* fix following comments
2025-04-23 15:12:49 +08:00
greycooker
843739d2fc
[RL] Refactor code based on gloabl_batch_size ( #10462 )
...
* fix wandb proxy
* update num_return_sequences to rollout_n in .md and .json
* 当开启balance_batch的时候,强制prompt的input id需要padding到max_prompt_len
* fix
* fix all_reduce import for single card
* update with global_batch_size
* fix for acc<=0 or train_batch.shape[0] < batch_size
* revert micro upgrade
* fix data shape for multi dataset_world_size
* lint
* add hint
* update for dynamic sampling
* refoctor
* add warning for split_batch_into_micro_batches
* update logger info
* add pad_token_id for split_batch_into_micro_batches
* support prompt_key and prompt_key
* fix for compute_advantage_normalization and eos_mask
* update for args config
* enhance balance token
* add note
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
Co-authored-by: yujun <573009727@qq.com >
2025-04-23 14:52:42 +08:00
Zong Wei
5d43923863
[INTEL_HPU] Enable Intel HPU fused multi transformer ( #10284 )
...
e2e integration
minial fix
refine code and remove unnecessary changes
integrate all fused ops, first fused op still need to optimize on
embedding.
reference pp kernels implementation
align final rms_norm shape with expected.
e2e shape fix
e2e bugs fix
e2e bugs fix2
e2e w/a cast place
e2e batchsize left padding fix
Refine _post_process code in generation_utils.py
combine k/v together
shape and benchmark
Refine Decoder Post-Processing HPU path code
fix multi-card perf benchmark hang issue
batch tokens early stop
optimize for-loop index
fsdpa and rmsNorm updates
code refine to reduce cpu operations
PP refine to remove cpu/gpu copy on python
support static graph mode execution
use cpu to concat all next_tokens to avoid compile and improve perf
fix static graph infer parameters corrupt
Co-authored-by: yanfeich <yanfei.cheng@intel.com >
2025-04-23 13:53:03 +08:00
zhangbo9674
ce7b4ccf35
Fix casual dataset bug ( #10357 )
...
* refine log
* fix bug
2025-04-23 11:52:58 +08:00
Weiguo Zhu
04e982f0bd
fix ( #10468 )
2025-04-23 11:51:44 +08:00
Hanlin Tang
5392bdb612
[PaddleNLP No.18] Create new infer example validated on pd3.0 ( #10422 )
2025-04-23 11:50:08 +08:00
Hanlin Tang
fd22e8fc48
[PIR] Fix test cases ( #10456 )
...
* [PIR] Fix pir in comments
* [PIR] re-run pre-commit for pir in comments
2025-04-23 10:05:10 +08:00
Echo-Nie
c8ba30da8f
[PIR] Fix ernie_text_matching ( #10460 )
...
* fix No33_NLP
* test
2025-04-23 10:03:35 +08:00
Echo-Nie
e9e3df5e37
[PIR] Fix inference_engine ( #10466 )
2025-04-23 09:56:26 +08:00
Hanlin Tang
55854f2f7d
[PIR] Fix text_matching/ernie_matching ( #10453 )
2025-04-22 17:39:42 +08:00
yaqiang.sun
8e812f6fa6
[Application] Fix index bug for doccano convert ( #10361 )
...
Fix index bug for doccano convert
2025-04-22 17:38:35 +08:00
Zhong Hui
1a57b0a0c2
[DOC] Update model weights pages. ( #10455 )
...
* optimize_docs
* fix1
* fix2
* fix3
* change to github readme.
---------
Co-authored-by: jie-z-0607 <1712955306@qq.com >
Co-authored-by: Jie.Z <109219440+jie-z-0607@users.noreply.github.com >
2025-04-22 12:55:55 +08:00
chen2016013
9d0b63af34
update_llama_conf_cinn_0218 ( #10006 )
...
* update_llama_conf_cinn_0218
* update
* fix llama 13b
* Update run_benchmark.sh
* Update run_benchmark.sh
---------
Co-authored-by: liym27 <33742067+liym27@users.noreply.github.com >
2025-04-22 11:36:29 +08:00
chen
be45d21a94
[BugFix] Fix get_output serving ( #10457 )
...
* fix get_output serving
* change queue_id to msg_queue_id
2025-04-22 11:01:55 +08:00
Hanlin Tang
f071343332
[PIR] Fix sentiment_analysis ( #10454 )
2025-04-22 09:31:29 +08:00
zhangyuqin1998
f53e113c61
[Fix] fix recompute ( #10452 )
...
* [Fix] fix recompute
* fix codestyle
2025-04-21 16:08:44 +08:00
Hanlin Tang
031ff474cd
[PIR] Fix machine_reading_comprehension SQuAD ( #10445 )
...
* [PIR] fix machine_reading_comprehension squad
* Update README.md
2025-04-21 13:10:57 +08:00
chen
d24ec24a08
[infer] Fix per_token_group_quant and support per_tensor_quant ( #10359 )
...
* support per_tensor_quant and per_token_group_quant
* check
* add per_token_group_quant, per_tensor_quant_fp8 into pybind_ops_list
2025-04-21 11:20:39 +08:00
greycooker
737a67949f
[RL] Fix padding_side ( #10448 )
2025-04-21 09:35:18 +08:00
Kunbo Ding
97b7af4495
[RL] Fix flashmask reward training ( #10443 )
...
* [RL] Fix flashmask reward training
* [RL] Fix flashmask reward training
* [RL] Fix flashmask reward training
* [RL] Fix flashmask reward training
2025-04-18 18:07:52 +08:00
yujun
b3e99ef2ee
[RL] Support balance batch ( #10444 )
2025-04-18 17:10:27 +08:00
chen
f889167043
[Infra] support dynamic_insert in dynamic run ( #10387 )
...
* support dynamic_insert in dynamic run
* remove duplicate code
* add save_output_dygraph op
* check pybind op
* note off
* code check
* check mla pybind function signature
* check pybind and batch_size
* support multi-proc save_output and get_output
* check pybind block gemm
* support pybind custom_import in dynamic run
* support non-msg queue stream output in dynamic insert
* check queue_id in d2s, and add sm80 sm90 for pybind
* check pybind for build_wheel.sh
* USE_PYBIND=False
* implement custom_import as context management and decorator
* code check
* add doc for pybind and dynamic_insert
* check
* change USE_PYBIND_CUSTOM_OPS to DYNAMIC_INFERENCE_MODE
* check doc
* code check
* check dynamic_insert debug
* check task_queue is empty when dynamic insert exit
* fix blocking when output_via_mq=1 in dynamic_insert
2025-04-18 16:57:18 +08:00
Zhong Hui
9e64bd09c6
Fix tutorial2 ( #10442 )
...
* fix tutorial
* fix
* fix link.
2025-04-18 15:05:22 +08:00
Weiguo Zhu
e887c44492
[Tools] Add Script for Torch Parameters Conversion ( #10303 )
...
* add
* format
* update name
2025-04-18 14:54:28 +08:00
Weiguo Zhu
c3091ebead
[Inference] Fix for fused_qkv (Qwen2) ( #10372 )
...
* fix for fused_qkv
* update to direct concat mode
2025-04-18 14:17:24 +08:00
Weiguo Zhu
0074e7e575
[Tokenizer] Compatible with the padding_side in _pad ( #10423 )
...
* Compatible with the padding_side
* Compatible with the padding_side
* fix
2025-04-18 12:10:39 +08:00
Hanlin Tang
d5b98565bc
[PIR] update document_intelligence.py ( #10394 )
2025-04-18 12:05:49 +08:00
Hanlin Tang
045115a083
[PIR] Fix milvus ( #10397 )
2025-04-18 12:05:03 +08:00
Zhong Hui
5d8b59390e
Fix fail ci Part2 ( #10411 )
...
* fix failed ci. part1
* fix ci part 2.
* fix all ci.
2025-04-18 10:56:59 +08:00
Weiguo Zhu
f62b248c16
[LLM] Fix the communication group settings in the moe_layer ( #10441 )
2025-04-18 10:55:49 +08:00
AIbin
5636299659
【Inference Fix】del while about predict ( #10440 )
...
* del while
* del while
2025-04-17 19:55:05 -07:00
Weiguo Zhu
5b161bb490
[Py38] Fix import issue ( #10410 )
...
* fix import
* fix import
2025-04-18 10:54:36 +08:00
Zhong Hui
7d6417bc1d
Fix tutorial readme ( #10432 )
...
* fix tutorial
* fix
2025-04-17 20:03:42 +08:00
jzhang533
8521f027dc
Update quick start codes in README.md ( #10431 )
...
Signed-off-by: Zhang Jun <jzhang533@gmail.com >
2025-04-17 16:43:18 +08:00
waliwali777
bc06b8a09e
[Auto-Parallel] add test of fuse comm sharding optimize in dynamic auto mode ( #10403 )
...
* add fuse comm sharding test
* fix
* update
* fix
* add loss base
* update loss base
* fix
* fix ips
* fix
2025-04-17 15:22:30 +08:00
Hanlin Tang
1d5591bdab
[PIR] Fix ernie-1.0 infer example and make it compatible with pd3.0.0 ( #10426 )
2025-04-17 10:18:01 +08:00
greycooker
e6e4928efa
【RL】Add DAPO ( #10380 )
...
* add dapo
* fix dapo
* fix conflict
2025-04-17 09:43:23 +08:00
gongel
d85474029a
[RL] Add reshard for RL ( #10412 )
...
* add reshard
* fix eval
2025-04-16 20:35:24 +08:00
ltd0924
648f051a39
Fix message format type error ( #10428 )
2025-04-16 19:32:50 +08:00
Weiguo Zhu
9f5b697330
[CI] Fix workflows ( #10417 )
2025-04-16 12:58:59 +08:00
Function-Samuel
ce7550f6cf
[Benchmark] Add baichuan2-13b dynamic auto benchmark ( #10384 )
...
* Add baichuan2-13b dynamic auto benchmark
* add FLAGS_fuse_reducescatter_in_opt
* add_hidden_layers
* fix
2025-04-16 10:57:35 +08:00
Hanlin Tang
92d6472fc2
[PIR] Fix cross encoder ( #10398 )
2025-04-16 09:30:36 +08:00
Hanlin Tang
65391cf483
[PIR] fix ernie_matching ( #10399 )
2025-04-16 09:29:42 +08:00
zhink
e48148d8c2
[Infra] Add custom all reduce ( #10375 )
...
* add custom all reduce
* cleanup_custom_ar safe
2025-04-15 11:56:40 +04:30
will-jl944
4e2fdf3f18
support setting min_lr for cosine lr scheduler ( #10393 )
2025-04-15 10:37:03 +04:30
zhengzhonghui
b98d8f850d
Fix bug of calling TensorParallel multiple times ( #10408 )
2025-04-15 10:51:17 +08:00
Zhong Hui
d8f9caaa7f
Fix failed ci. part1 ( #10341 )
2025-04-15 10:10:20 +08:00
dongzezhao
3e49b74908
Add pid and start timestamp to metrics dump ( #10142 )
...
* Add pid and start timestamp to metrics dump (#10142 )
* Add pid and start timestamp to metrics dump
* update start timestamp
* update
2025-04-14 20:39:10 +08:00
Weiguo Zhu
4bf7945ea7
[RL] Update comments to English version ( #10400 )
2025-04-14 18:14:30 +08:00
AIbin
f232d82d20
[Inference Optimize] Support qwen2.5vl & deepseekvl2 language models to convert to static graph execution ( #10377 )
...
* qwen&deepseek_static
* update where
* update deepseek
* update __all__ qwen2
* update __all__ qwen2
* update code
* update deepseek modeling about multimodal inputs_embeds
* update qwen vl model
2025-04-14 11:19:09 +08:00
Zhong Hui
a153370f0d
[DOC] Fix dead link ( #10343 )
2025-04-14 10:19:01 +08:00
Hanlin Tang
e3ed3a30b0
[PIR] update for server/engine/infer.py ( #10379 )
2025-04-11 15:04:29 +08:00
AIbin
ca1dcc85f2
【Inference Fix Bug】 fix moe_expert_reduce op output shape ( #10390 )
...
* fix moe_export_reduce op output shape
* fix moe_expert_reduce op output shape
2025-04-10 23:43:14 -07:00
Wennie396
5dca755f22
【Cherry-pick】add split_norm_comm to split global_norm comm to pp_comm & mp_comm ( #10334 ) ( #10368 )
2025-04-11 11:37:01 +08:00
waliwali777
50c41840a4
add FLAGS_fuse_reducescatter_in_opt for llama7b benchmark ( #10378 )
2025-04-11 10:49:27 +08:00
Weiguo Zhu
3b97a283e7
[RL] Refactor code for PPO/GRPO/Reinforce++ Part2 ( #10376 )
...
* fix predict for colocate mode
* refoctor
* refactor
* add label_key for new load_dataset method
* fix
* rename compute_reward to compute_value in critic_trainer
2025-04-11 10:12:11 +08:00
lugimzzz
41706b5b3c
fix wint8 inference bug ( #10383 )
2025-04-11 10:07:18 +08:00
周周周
75550d87cb
commit ( #10381 )
2025-04-10 21:37:55 +08:00
Tian
ae3d5def7f
[LLM] fix metrics dumper ( #10382 )
2025-04-10 19:57:09 +08:00
Hanlin Tang
54c3ec31bf
[PIR] Fix in-batch negative recall model for neural_search ( #10352 )
2025-04-10 19:36:28 +08:00
Weiguo Zhu
ae355c0b35
fix for auto_parallel ( #10370 )
2025-04-10 09:50:13 +08:00
Weiguo Zhu
d5275b72b0
fix predict for colocate mode ( #10373 )
2025-04-09 21:34:51 +08:00
Liujie0926
e67789d588
[CI]fix paddlenlp build ( #10362 )
...
* fix paddlenlp build
* fix paddlenlp_ops install
2025-04-09 17:07:00 +08:00
Weiguo Zhu
6be4378b1a
[CI] Fix tensro_broadcast issues ( #10364 )
...
* fix
* fix
2025-04-09 16:19:28 +08:00
Function-Samuel
d2299b1416
remove hidden layers ( #10354 )
2025-04-09 14:45:16 +08:00
Function-Samuel
a2997336f4
add mem monitor ( #10358 )
2025-04-09 14:44:59 +08:00
Weiguo Zhu
4b2ae58158
[RL] Refactor code for PPO/GRPO/Reinforce++ ( #10310 )
...
* tmp update
* 对应数据流,修改infer的部分直接接收token id
* drop last
* 添加环境变量 JINGDUDUIQI
* add reinforce++
* rm info
* 新增actor_fused_pg_entropy_kl_loss
* 添加fused head loss计算
* entropy_loss
* update
* update
* 修复total_entropy_loss的错误,新增all reduce sum
* 新增optimizer的offload
* add fp32 compute
* support sharding training, add args logprob_batch_size
* per_device_eval_batch_size不能大于self.per_device_rollout_batch_size * self.num_return_sequences
* update rollout_logprob_batch_size
* 新的计算entropy梯度的方法,与原始计算等价,新增final_loss,解决entropy loss和kl loss都关闭的情况的梯度bug
* 支持32B
* sequence parallel支持动态padding到tp的倍数
* 默认关闭entropy_coeff,使用kunbo的fused head loss
* set attr save_output
* 修复temperature先除后除的bug,目前全部在fused算子里面除以.
* 修复entropy loss在tp情况下的问题,需要对entropy_loss_chunk进行all_reduce
* add pure_policy_loss and entropy_loss
* 修复entropy_from_logits的问题,使用pylayer实现VocabParallelEntropy
* update
* remove ptx
* truncation True, max_src_len
* support dataproto & fix dataflow
* update trainer
* rm shell
* 删除一些无用的修改
* update
* update user
* add use_fused_head_and_loss_fn
* fix infer utils
* update
* 中间版本
* temporary version
* temporary version
* temporary version
* temporary version
* no diff (without timer)
* fix prediction_step
* lint
* lint
* update timer_scope and compute_adv
* update compute logprob
* update reward and critic
* update
* update for dev
* update
* fix
* update fused_rms_norm
* fix import
* update inference and timers
* update timers
* update
* lazy_guard
* update
* lint
---------
Co-authored-by: yujun <573009727@qq.com >
Co-authored-by: gongenlei <>
Co-authored-by: yujun <50394665+JunnYu@users.noreply.github.com >
Co-authored-by: gongenlei <gongenlei@baidu.com >
Co-authored-by: greycooker <526929599@qq.com >
2025-04-09 13:05:18 +08:00
lugimzzz
fb694169e4
support wint8 ( #10319 )
...
* support wint8
* support wint8
* support wint8
* support wint inferenece
* fix little bug
* support wint8
* support wint8
* support wint8
* fix new bug
2025-04-09 11:56:51 +08:00
AIbin
91b510dc32
【Inference Optimize】Controls whether the message queue is enabled for output ( #10185 )
...
* fix mix model save_output
* update enable_stream_output
* del import tokenizer
* update config name
* Reduce redundant member variables
2025-04-08 13:25:57 +08:00
Tian
d53e8cf45e
[LLM] release zero cost checkpoint ( #10337 )
...
* [LLM] Implement Flash Checkpoint (#9658 )
* [LLM] add _save_checkpoint_flash for LLM
* [LLM] cache metas for saving in flash mode
* [LLM] get fused param from optimizer
* [LLM] save model state with plain API
* [LLM] implement flash checkpoint manager and worker
* [LLM] reformat flash checkpoint codes
* [LLM] Add flash save steps (#9664 )
* [LLM] process PDC_FLASH_INIT_STEP in ft env
* [LLM] add flash_save_steps
* [LLM] fix compatibility for paddle of old version (#9667 )
* [LLM] get sharding meta on all ranks (#9675 )
* [LLM] enhance paddle recall for flash checkpoint (#9684 )
* [FlashCheckpoint] support EMA (#9815 )
* [FlashCheckpoint] support EMA
* refactor: move [flash checkpoint manager] to callback
* [flashcheckpoint] fix save under dp_degree > 1 with use-expert-parallel
* flash-checkpoint EMA: fix cpu mem
* Fc ema v2 (#9909 )
* polish ZCC-EMA, remove opt offload
* polish code
* [LLM] format zcc codes
---------
Co-authored-by: Meiyim <chenxuyi@baidu.com >
2025-04-05 11:04:50 +08:00
Function-Samuel
64c0d04130
[test] match filename with model name ( #10338 )
...
* fix
* fix
2025-04-03 14:09:34 +08:00
Siming Dai
bfd053db08
[Unified Checkpoint] update moe ( #10282 )
...
* update moe
* fix optimizer moe
* update lora moe
2025-04-03 11:11:57 +08:00
LiYuRio
a8f83e3d07
Support dynamic pp scheduler in pp ( #9861 ) ( #10329 )
2025-04-03 10:15:09 +08:00
Zero Rains
94142af83f
[FIX] fix the bug for moe_gemm config searching in sm86 ( #10325 )
...
* fix the bug for moe_gemm config searching in sm86
* rerun
2025-04-02 11:58:09 +08:00
Zhong Hui
4c61882b46
Support parse_yaml files. ( #10321 )
2025-04-02 11:25:24 +08:00
AIbin
eec767ed47
[Inference Optimize] Support MOE EP Parallel 2. fix moe_export_reduce bug ( #10323 )
...
* support MOE EP Parallel 2. fix moe_export_reduce bug
* format
* update
2025-04-01 20:48:42 +08:00
bukejiyu
4f578b9519
[Doc] update lm-serving-cuda124-cudnn9-v2.3 ( #10315 )
...
* update doc
* update images
* update
2025-04-01 19:32:57 +08:00
Yuanle Liu
5bf06241cb
Fix bug pre_ids length ( #10312 )
2025-03-31 14:49:42 +08:00
Zhong Hui
88ca820e2b
[Deprecated] Delete few used model and tools. ( #10279 )
...
* delete few used model and tools.
* fix
2025-03-31 12:06:23 +08:00
Zhong Hui
c050c6a392
Fix load torch. ( #10246 )
...
* fix load torch.
* Update serialization.py
* Update serialization.py
* re lint.
2025-03-31 11:35:08 +08:00
Zhong Hui
9df673c499
[Docs] Move docs to docs/zh ( #10261 )
...
* move docs to /docs/zh
* fix
* v1 with gpt-4o
* add deepseek part1.
* add deepseek translate part2.
* fix .readthedocs.yaml
* fix yaml.
* fix readme.
* update.
* optimizer docs.
* refine docs.
2025-03-31 09:58:04 +08:00
bukejiyu
81d7bace77
[inference]Update doc ( #10278 )
...
* update doc
2025-03-28 17:35:07 +08:00
Zhong Hui
36a8fb3273
Update index.rst ( #10295 )
...
* Update index.rst
* Update index.rst
* Update index.rst
2025-03-28 17:09:10 +08:00
yujun
d0752f383c
Enhance RLHF ( #10123 )
...
* tmp update
* 对应数据流,修改infer的部分直接接收token id
* drop last
* 添加环境变量 JINGDUDUIQI
* add reinforce++
* rm info
* 新增actor_fused_pg_entropy_kl_loss
* 添加fused head loss计算
* entropy_loss
* update
* update
* 修复total_entropy_loss的错误,新增all reduce sum
* 新增optimizer的offload
* add fp32 compute
* support sharding training, add args logprob_batch_size
* per_device_eval_batch_size不能大于self.per_device_rollout_batch_size * self.num_return_sequences
* update rollout_logprob_batch_size
* 新的计算entropy梯度的方法,与原始计算等价,新增final_loss,解决entropy loss和kl loss都关闭的情况的梯度bug
* 支持32B
* sequence parallel支持动态padding到tp的倍数
* 默认关闭entropy_coeff,使用kunbo的fused head loss
* set attr save_output
* 修复temperature先除后除的bug,目前全部在fused算子里面除以.
* 修复entropy loss在tp情况下的问题,需要对entropy_loss_chunk进行all_reduce
* add pure_policy_loss and entropy_loss
* 修复entropy_from_logits的问题,使用pylayer实现VocabParallelEntropy
* truncation True, max_src_len
* rm shell
* 删除一些无用的修改
* update user
* add use_fused_head_and_loss_fn
* fix infer utils
---------
Co-authored-by: gongenlei <>
Co-authored-by: gongenlei <gongenlei@baidu.com >
2025-03-28 17:04:54 +08:00
gaoziyuan
5ff3797425
[Inference]migrate some moe file ( #10292 )
...
* migrate some moe file
* fix name
2025-03-28 15:58:08 +08:00
ltd0924
f6100806a4
[Serving] 支持配置version ( #10293 )
...
* [Serving] 支持配置version
* [Serving] 支持配置version
2025-03-28 15:35:48 +08:00
co63oc
4710fbcb8f
Fix typos in multiple files ( #10224 )
...
* Fix
2025-03-27 19:19:49 +08:00
Function-Samuel
f607bad70b
Add dynamic llama2-7b benchmark ( #10271 )
...
* add dynamic llama 7b benchmark
* rename dynamic suffix
* fix
* rename file
* fix
* fix
* fix
* fix
2025-03-27 14:51:28 +08:00
Yuanle Liu
712495cfc3
[MLA] move compute_out_linear out and fix bug when q_lora_rank is None ( #10275 )
2025-03-26 20:25:45 +08:00
AIbin
2d40d82d6e
【Inference Optimize】support MOE EP Parallel 1. ( #10266 )
...
* support MOE EP Parallel 1.
* support MOE EP Parallel 1. Changed from nranks to tp_degree
2025-03-26 19:27:15 +08:00
chen
a0c08bacb5
【Infer】MLA matrix absorption separation ( #10249 )
...
* bf16 batch gemm
* bf16 and wint8 matrix_absorption
2025-03-26 19:26:49 +08:00
Zhuoqun Li
27fa252d4e
[Embedding] Add LLARA-passage and bge-en-icl with benchmark ( #9887 )
...
* move modeling.py and modeling_nv.py to transformers
* move modeling.py and modeling_nv.py to transformers and replace einops
* move modeling.py and modeling_nv.py to transformers and simplify import path
* move modeling.py and modeling_nv.py to transformers and add test_modeling
* add llara
* fix previous bug
* add bge-en-icl
* add nv-max_seq_length and update requirement
* delete irrelavent content
* update readme and delete irrelavent content
* update readme
* update readme
* update readme
* update msmarco-title file using
* update readme's paddle install
* Organize results and update readme
* update readme
* update readme
* update readme
* update readme
* add reocket qa eval_mteb.sh
* 适配RocketQA (#1 )
Co-authored-by: Zhuoqun Li <2305932025@qq.com >
* update eval_mteb.sh and readme
* update eval_mteb.sh and readme
* fix modeling lint fail
* update readme and eval_mteb.sh
* update readme and eval_mteb.sh
* update readme and eval_mteb.sh
* update readme and eval_mteb.sh
* check run ok
* update results in readme
* add recall_at_10
* update recall_10 to readme
* update recall_10
* add mrr_10 and r_10 for mteb
* add scifact mrr_10 and r_10 for mteb
* fix tests
* fix tests
* fix tests
* fix tests
---------
Co-authored-by: Qiming Zhu <58735353+dfmz759837901@users.noreply.github.com >
2025-03-26 11:39:42 +08:00
liufengwei0103
0b09793921
[AutoParallel]: fix auto parallel json config error ( #10126 )
...
* [AutoParallel]: fix auto parallel json config error, test=document_fix
* fix log dir, test=document_fix
2025-03-26 10:40:07 +08:00
ooo oo
990d2b698b
reopen test for zero-dim tensor ( #10242 )
2025-03-25 17:48:09 +08:00
bukejiyu
b62530e8bd
update ( #10255 )
2025-03-25 14:36:15 +08:00
Weiguo Zhu
e44986b8e1
[Application] Update distill readme ( #10260 )
...
* update eval script
* update readme
* update docs
* update links
2025-03-25 12:03:44 +08:00
Yuanle Liu
f1840d549b
fix src_length when --benchmark ( #10237 )
2025-03-25 11:27:05 +08:00
lugimzzz
be1429fbe5
fix dpop loss ( #10239 )
2025-03-24 21:05:35 +08:00
Zhong Hui
5b505e487b
[Docs] Refactor docs. ( #10223 )
...
* refactor docs.
* Refine typos.
2025-03-24 14:39:54 +08:00
ZhenxingLi
7e0885d3d4
[AutoParallel] Add auto parallel DPO docs ( #10234 )
...
* update
* Update README.md
2025-03-24 11:55:21 +08:00
Chang Lu
d1e156af9f
[Doc] add xpu doc and update llama xpu scripts ( #10148 )
...
* add xpu doc
* Update auto_trainer.py
* update amp custom list
2025-03-21 14:53:49 +08:00
lugimzzz
6bde6a2204
[LLM] fix pir problem ( #10235 )
...
* fix pir problem
* fix pir problem
2025-03-21 13:17:50 +08:00
ZhenxingLi
9fead81836
[AutoParallel] Add_llama_dpo_auto_parallel_intermediate ( #10044 )
...
* dpo_auto_intermediate
* add dpo ci dataset
* update flash_mask
* update
* update path
* update download data
* update
* update
* update
* update
* Update
* update
* Update dpo_auto_trainer.py
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update dpo_argument.py
* Update run_dpo_auto.py
* Update dpo_criterion.py
* Update trl_data.py
2025-03-20 16:32:05 +08:00
bukejiyu
d9644fc339
[Inference] fix cpu install ( #10218 )
2025-03-20 16:12:18 +08:00
chen
f131d62d76
【Bug Fix】Fix triton_moe shape error ( #10216 )
2025-03-20 00:10:59 -07:00
co63oc
3925efcea4
Fix typos in multiple files ( #10115 )
2025-03-20 11:18:29 +08:00
aooxin
104e304e3b
[LLM] Add Minimax-Text-01 ( #9893 )
...
* add minimax-text-01 model, init.
* fix path bugs.
* add model.
* fix _get_name_mappings.
* forward pass.
* fix MiniMaxText01ForCausalLM bugs.
* add copyright.
* fix MiniMaxText01ForSequenceClassification bugs.
* fix MiniMaxText01ForSequenceClassification bugs .
* add unittest.
* add test init.
* add @require_gpu.
2025-03-20 11:06:05 +08:00
Guanbin_whu
2233a476dc
Save config file for inforence in automatic parallel training ( #10175 )
...
* save config file
* isort
* pre-commit check
* use _save function to save config, change the code structure
* change the code sturcture
* change the code sturcture
---------
Co-authored-by: jeff41404 <jeff41404@gmail.com >
2025-03-20 10:23:28 +08:00
lizhenyun01
d45bbf56a6
support mla while num_head=128 ( #10168 )
2025-03-19 05:38:10 -07:00
Liujie0926
bf473768d8
[CI]update upload for ci ( #10135 )
...
* update upload for ci
* add build.sh
* fix
* fix paddleocr error
* fix build
* fix
* fix
* del paddlenlp_ops upload
* cp paddlenlp_ops
* fix paddlenlp_ops bos
* fix upload
2025-03-19 17:39:07 +08:00
Liujie0926
98b084f69d
[CI]fix bug for deepseek_data & paddleocr2.10_install & paddlenlp_ops whl ( #10183 )
...
* fix deepseek_data & paddleocr2.10_install
* update paddlenlp_ops bcebos
2025-03-19 16:43:54 +08:00
ltd0924
d1e956e6e1
[LLM] add port check and fix bugs ( #10153 ) ( #10195 )
...
* [LLM] add port check and fix bugs
* [LLM] fix stream output
* [LLM] delete unused param
* [LLM] fix start script
2025-03-19 15:03:01 +08:00
Zhong Hui
f3e85d40db
Delete dead links ( #10188 )
...
* Update README.md
* Delete docs/llm/auto_parallel/llama/README.md
2025-03-19 12:56:38 +08:00
freeliuzc
d234592a91
[Docs] update_docs ( #10180 )
2025-03-18 17:15:22 +08:00
Function-Samuel
9d6f81bb54
[Benchmark] modify config ( #10181 )
2025-03-18 17:14:30 +08:00
ZhenxingLi
33998272bc
Update auto_trainer.py ( #10170 )
2025-03-18 16:22:10 +08:00
waliwali777
4afa702903
Add auto_parallel_sync_shared_params pass flag ( #10057 )
...
* fix gpt auto embedding dims_mapping[-1,1]
* add auto_parallel_sync_shared_params flag
* fix
2025-03-18 15:27:22 +08:00
waliwali777
5faa8ee771
[benchmark] Open rc for gpt ( #10160 )
2025-03-18 15:26:48 +08:00
Jie.Z
e8ad2fa854
Add Contrastive Learning ( #10097 )
...
* add_contrastive_learning
2025-03-18 14:38:38 +08:00
yulangz
4ed355a03a
[Inference] Support deepseek on xpu ( #10060 )
...
* support deepseek on xpu
* remove useless comment
* fix
* support serving
2025-03-18 14:37:12 +08:00
Jie.Z
5475a8a067
Add XLMRoberta in Embedding Train ( #10074 )
...
* add xlmroberta in embedding train
2025-03-18 14:34:50 +08:00
gaoziyuan
63c4ea47b0
[Inference] Migrate MoE Kernel from Paddle Inner ( #10063 )
...
* save
* backup
* add moe_dispatch&moe_reduce
* add dongzhuanjing
* fix dispatch precis
* rm cutlass_extention
* add zkk inner commit
* fix
* add fused_moe
* add glog third party
* add fused_moe
* formar code style
* fix
* rm gemm config
* add test
* fix
* fix
* fix glog install
* add yazhu fix
* fix
* fix
* fix
* rm glog
* fix
* fix
* fix
* fix glog
* fix
* fix ci
2025-03-18 14:33:10 +08:00
zhaohaixu
550a558707
[predict] fix ddp bug for predict benchmark. ( #10171 )
2025-03-17 20:28:57 -07:00
Zero Rains
d7250f06bb
Fix the bug in tiny_fused_bloom::test_wint8 ( #9307 )
2025-03-18 11:03:37 +08:00
Zhong Hui
8e213b4691
Update README.md ( #10167 )
...
DeepSeek-R1满血版单机部署实测
2025-03-17 20:26:23 +08:00
Weiguo Zhu
8fcd2ee5e3
[Application] Distill and finetune LLM ( #10061 )
...
* add distill files
* update
* add requirements.txt
* update filename and add readme
* update readme
* update
* update requirement.txt
* update
* update readme
* update table
2025-03-17 20:23:48 +08:00
lizhenyun01
8c57cc1497
[Hot Fix] hotfix for param decoder_chunk_size_cpu ( #10111 )
2025-03-17 01:31:14 -07:00
Function-Samuel
2415083412
fix ( #10139 )
2025-03-17 14:48:07 +08:00
Yuanle Liu
4fe19817d3
[Tools] add tool safetensors_filter ( #10140 )
...
* add tool safetensors_filter
* add metadata
* add comment
* add comment
2025-03-16 22:50:55 -07:00
xuxinyi389
2703ea15da
[AutoParallel] Add ci for deepseek-v3 ( #10064 )
...
* add_ci
* fix
* fix
* open test on a100
2025-03-17 11:49:03 +08:00
AIbin
1998914d8f
[Hot Fix] hotfix for param decoder_chunk_size_cpu ( #10144 )
...
* support qwen2_5_vl
* support qwen2_5_vl
* fix bug
* update support qwen2_vl & qwen2_5_vl & support multi models mapping
* fix BUG
2025-03-16 20:05:44 -07:00
liufengwei0103
b141f86d6a
[AutoParallel]: fix bug because of renaming file ( #10132 )
2025-03-17 11:05:04 +08:00
Function-Samuel
44144a5753
Support reshard attention mask in intermediate_api ( #10137 )
...
* support reshard attention mask in intermediate_api
* fix_test
* set pp=1 in intermediate test case
* fix
* fix
---------
Co-authored-by: liym27 <33742067+liym27@users.noreply.github.com >
2025-03-17 10:57:20 +08:00
l1cacheDell
dd774f1223
[Hot Fix] hotfix for param decoder_chunk_size_cpu during LLM inferencing ( #10141 )
...
* hotfix for a param
* bugfix2
2025-03-14 05:28:52 -07:00
Guspan Tanadi
42ba2c0ad2
[docs]: update section links ( #9717 )
...
* docs(compression): section links
* docs(compression): section links step
2025-03-13 17:50:35 +08:00
liym27
1056fd7599
[AutoParallel] Pre alloc memory ( #9979 )
2025-03-13 15:56:55 +08:00
blacksheep-Aristotle
24039c6701
fix reshard_qkv alltoall error ( #9949 )
2025-03-13 15:01:11 +08:00
ltd0924
f68aadad26
[LLM] fix config reload ( #10114 )
...
* [LLM] fix config reload
* close md5 check
* Update processor.py
* Update download_model.py
2025-03-13 14:18:36 +08:00
vivienfanghuagood
ee3de2682c
add_benchmark ( #10110 )
...
* add_benchmark
2025-03-13 12:08:59 +08:00
ZhenxingLi
94dd1d86a4
[AutoParallel] Fix qwen2vl image shape ( #10086 )
...
* Update auto_trainer.py
* Update auto_trainer.py
2025-03-13 11:40:09 +08:00
lizhenyun01
f6c0e6db0b
optimize mla to get best performance ( #10102 )
...
* support auto search for mla chunksize
* optimize mla to get best performance
* fix
* add note for mla
2025-03-13 11:05:04 +08:00
co63oc
6a8e047057
[Typos] Fix typos ( #9933 )
2025-03-13 09:56:01 +08:00
Zhong Hui
e5a41fac94
Update README.md for paddlenlp 3.0 beta4 ( #10098 )
...
* Update README.md for paddlenlp 3.0 beta4
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2025-03-12 21:49:45 +08:00
liufengwei0103
183cd790bc
[AutoParalle] update README.md ( #10033 )
...
* update README.md
* format
* delete intermidate_api
* add more explanation about code example
* add more explanation about code example
* update web ref
* refine infer readme
* fix path
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* refine according to comment
* update recommended paddle version 3.0-rc
* fix bug
* fix bug
* change arg ref to github file
* fix typo
* update paddle version
* add json config, move readme to auto_parallel dir
* fix
* fix
* delete qwen shell launch example
* recover gpt input data config
* recover gpt config
* recover gpt config
* recover gpt config
* update code example path hint
* move line
* change name style
* delete ppo
* normalize task name
* normalize task name
* normalize task name
* fix gpt json config
* recover qwen debug file
* delete run_pretrain_auto.sh
2025-03-12 20:34:27 +08:00
Zhong Hui
d8d6bec83a
Refine inference doc ( #10090 )
...
* refine inference doc
* refine
* Rename inference.rst to inference_index.rst
* Update index.rst
2025-03-12 20:10:30 +08:00
ltd0924
79dbdbb3aa
[LLM] fix speculate_decoding output bug ( #10106 )
2025-03-12 18:06:54 +08:00
Ting
3d023bd10f
Support deepseek-v3/loraGA/ on xpu ( #9928 )
...
* support deepseek-v3/loraGA/ on xpu
* fix ds2 config
* fix ds3 eval
* fix seq_aux_loss, weight load time consume, moe tp
* Optimize code of expert dispatch
* optimize moe expert dispatch
* remove redunctant code.
* EP support, MTP fix
* remove print
* add alltoall backward
* fix all2all bwd
* support drop tokens, disable acc cal
* fix bug
* add base_model_prefix in ds3 modeling pp
* fix ci shape mismatch
* update
2025-03-12 18:03:56 +08:00
Liujie0926
985075fcbe
[CI]Fix proxy ( #10104 )
...
* add set -e for unittest
* update proxy
* fix
2025-03-12 17:50:51 +08:00
freeliuzc
83b1a6f241
Fix serving allocate block bug ( #10100 )
2025-03-12 15:11:10 +08:00
Yuanle Liu
762a680d30
[Inference] Update docs ( #10089 )
...
* change_h100_to_h800
* Update README.md
2025-03-12 14:24:16 +08:00
Yuanle Liu
a37512ff7d
[Inference] Enhance fused_rotary_position_encoding and get_position_ids_and_mask_… ( #10077 )
...
* enhance fused_rotary_position_encoding and get_position_ids_and_mask_encoder_batch
* update
* fix src_length
* update
* update
* fix ci
2025-03-12 14:17:39 +08:00
ltd0924
9408f4c3ce
[Doc] 完善文档,更新示例模型 ( #10084 )
...
* [Doc] 完善文档,更新示例模型
* [Doc] 完善文档,更新示例模型
* [Doc] 完善文档,更新示例模型
* fix bug
---------
Co-authored-by: luotingdan <luotingdan@baidu.com >
2025-03-12 11:27:44 +08:00
lizhenyun01
6d80be73ba
[INFER] auto set mla_use_tensorcore ( #10095 )
2025-03-12 10:32:25 +08:00
lzy
f85f1e9bf3
supports mla wg4(Low-precision accumulation) ( #10072 )
...
* Support MLA by using 4 WG
2025-03-11 18:14:59 +08:00
ShenLiang
034e4d85e0
Fix oom in dsv3 ( #10068 )
2025-03-11 16:36:55 +08:00
Zhong Hui
c27a341e30
Remove not need files ( #10079 )
2025-03-11 16:08:48 +08:00
Zhong Hui
bffd3b549b
Skipping 0-D tensor Error. ( #10075 )
2025-03-11 16:00:19 +08:00
ltd0924
f6ad587ad7
[Doc] 文档完善,新增模型环境设备需求 ( #10071 )
...
* [Doc] 文档完善,新增模型环境设备需求
* [Doc] 文档完善,新增模型环境设备需求
---------
Co-authored-by: luotingdan <luotingdan@baidu.com >
2025-03-11 15:15:32 +08:00
Liujie0926
2e8b5d2d55
fix case only in a100 ( #10054 )
2025-03-11 15:03:32 +08:00
ZhenxingLi
354be23c8f
[AutoParallel] Get dtensor from ShardDataloader ( #10009 )
...
* get dtensor from ShardDataloader and acc split
* Rename dtensor_idx to dense_tensor_idx
* fix 2D dense_tensor_idx
* Update auto_trainer.py
* Update auto_trainer.py
2025-03-11 15:02:54 +08:00
Yuanle Liu
a3942c8974
update total_max_length use export model ( #10052 )
2025-03-11 14:58:16 +08:00
chen
3421d486df
Fix MTP triton cache not found ( #10066 )
2025-03-11 14:34:23 +08:00
Zhong Hui
8db460e586
add model list to doc. ( #10031 )
2025-03-11 14:10:06 +08:00
will-jl944
92a75980a8
Fix eval pp bug when do_train is false ( #10012 )
2025-03-11 14:04:43 +08:00
lugimzzz
4cd17eaf49
[LLM]support groupwise quant for llama ( #10050 )
...
* support groupwise quant for llama
* support groupwise quant for llama
2025-03-11 12:39:28 +08:00
Function-Samuel
a23e504e4b
Fix flash_attn diff in base api ( #10027 )
2025-03-11 11:13:40 +08:00
Yichen Zhang
e1536c0d5c
Add import check of local_layer ( #10036 )
2025-03-11 10:57:37 +08:00
risemeup1
b35f79efd2
[fp8] Support deep gemm in paddle ( #9955 )
...
* support fp8 gemm
* support fp8 gemm
* fix
* fix
* update deepGeem remote
* fix test_gemm
* support group_gemm
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
2025-03-11 10:51:11 +08:00
Liujie0926
dfe3a2878c
update wheel's name of paddlenlp_ops ( #10047 )
...
* update wheel's name
* fix exit
* update paddlenlp_ops install
* fix
2025-03-10 21:51:39 +08:00
liym27
15fbec8813
Revert "[AutoParallel] Support reshard attention mask in intermediate_api (#9…" ( #10067 )
...
This reverts commit c9d8e3aabd .
2025-03-10 21:35:50 +08:00
Zhong Hui
219e709889
Update devices README.md ( #10062 )
...
* Update README.md
2025-03-10 20:17:13 +08:00
ltd0924
814cc4507d
[LLM] fix bug ( #10058 )
...
Co-authored-by: luotingdan <luotingdan@baidu.com >
2025-03-10 17:58:51 +08:00
liym27
c9d8e3aabd
[AutoParallel] Support reshard attention mask in intermediate_api ( #9975 )
2025-03-10 17:39:10 +08:00
Zhong Hui
8452021418
Update static_models.md ( #10053 )
2025-03-10 17:17:02 +08:00
dimensionplane
6861e1749d
[LLM] Update GLM ( #10000 )
...
* Update GLM
* glm
---------
Co-authored-by: wangxueyang <xueyang.wang@aminer.cn >
2025-03-10 16:30:58 +08:00
bukejiyu
2506f448f5
[server]Add a model download script and fix bugs for the server. ( #10034 )
...
* fix
* fix download
* fix
* fix
* support download
---------
Co-authored-by: ltd0924 <32387785+ltd0924@users.noreply.github.com >
2025-03-10 15:00:05 +08:00
ltd0924
098f2348d2
[Doc] 自行下载模型文档说明 ( #10048 )
...
* [Doc] 自行下载模型文档说明
* [doc] 支持用户自行下载静态图
* [doc] 支持用户自行下载静态图
* [Doc] fix format
---------
Co-authored-by: luotingdan <luotingdan@baidu.com >
2025-03-10 14:19:00 +08:00
Liujie0926
4554b1cdb6
[CI]Fix ci scripts ( #10045 )
...
* update loss_base by Paddle#71301
* fix spelling error
* fix exit code rerun
* fix upload
2025-03-10 14:05:57 +08:00
lzy
ef9aecc0ec
[MLA] make MLA supports blocksize 32 ( #10039 )
...
* make mla supports blocksize 32
* make mla supports append
2025-03-10 11:58:21 +08:00
Chang Lu
a8ee9438ad
[XPU] add llama 7b&13b xpu scripts ( #10025 )
...
* add xpu scripts
* Update modeling_auto.py
2025-03-10 11:15:14 +08:00
Guoxia Wang
59fbc79bc0
Add enable_offload_queue to PipelineParallel ( #9708 )
2025-03-10 10:54:55 +08:00
umiswing
da96c7258e
add rdma config hint ( #10040 )
2025-03-09 20:42:56 +08:00
bukejiyu
a9fd4082a5
update doc ( #10028 )
2025-03-09 16:06:19 +08:00
Weiguo Zhu
bcc9236344
fix ( #10037 )
2025-03-09 11:55:08 +08:00
l1cacheDell
23a4880866
[Performance optimization] Sage Attention Enhancement ( #10021 )
...
* fuse all sageattn kernels & unified API entry
* remove files
* bug fix
* upload header file
2025-03-07 17:48:18 +08:00
blacksheep-Aristotle
a99829122d
[Auto] Using auto parallel to validate SFT/LORA of llama model ( #9728 )
...
* add single_model network and use intermediate api
* [AutoParallel]: fix llama_model_network run error
* New version of auto config
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* update api
* update plan
* qwen fit base api
* [AutoParallel]:gpt single network support tp to share_embedding
* add intermediate ci
* add single_model network and use intermediate api
* New version of auto config
* fix sharding
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* update gpt run_pretrain_py
* fix sharding error
* fix gpt format error
* [AutoParallel]:fix llama vpp ci error
* [AutoParallel]:fix ipp error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:add explanatory note
* Delete =1.0.0
* [AutoParallel]:add run_fintune scripts
* [AutoParallel]:auto parallel support lora model
* update auto_lora_model
* update auto_lora_model
* [AutoParallel]:nlp support run lora model with intermediate
* [AutoParallel]:update format
* [AutoParallel]:support input attentionmask
* [AutoParallel]:shard dataloader support multi inputs
* [AutoParallel]:auto_sft rebase develop
* [AutoParallel]:auto_sft rebase develop
* [AutoParallel]:fix lora parallel mode
* [AutoParallel]: fix bug about file dep circular and lora config error
* [AutoParallel]: recover default base api config in launch script
* [AutoParallel]: add to do
* [AutoParallel]: add to do
* add single_model network and use intermediate api
* [AutoParallel]: fix llama_model_network run error
* New version of auto config
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* update api
* update plan
* qwen fit base api
* [AutoParallel]:gpt single network support tp to share_embedding
* add intermediate ci
* add single_model network and use intermediate api
* New version of auto config
* fix sharding
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* update gpt run_pretrain_py
* fix sharding error
* fix gpt format error
* [AutoParallel]:fix llama vpp ci error
* [AutoParallel]:fix ipp error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:add explanatory note
* Delete =1.0.0
* [AutoParallel]:add run_fintune scripts
* [AutoParallel]:auto parallel support lora model
* update auto_lora_model
* [AutoParallel]:nlp support run lora model with intermediate
* [AutoParallel]:update format
* [AutoParallel]:support input attentionmask
* [AutoParallel]:shard dataloader support multi inputs
* [AutoParallel]:auto_sft rebase develop
* [AutoParallel]:auto_sft rebase develop
* [AutoParallel]: add lora ci and fix bug
* [AutoParallel]: fix lint error
* [AutoParallel]: fix lint error
* [AutoParallel]: fix lint error
* [AutoParallel]: fix ci error about print model
* [AutoParallel]: fix typo
* [AutoParallel]: fix
* [AutoParallel]: fix llama_dygraph_auto_bs8_fp16_DP2-MP2-PP2_intermediate loss base
* [AutoParallel]: delete typo
* [AutoParallel]: delete comment
* [AutoParallel]: fix ci error not on a100
* [AutoParallel]: delete comment
* [AutoParallel]: delete useless code
* [AutoParallel]: ddelete launch script
* [AutoParallel]: recover label mesh to
* [AutoParallel]: fix ci error
* [AutoParallel]: fix loss in ci
* [AutoParallel]: revert editing to max_length padding
* [AutoParallel]: delete comment
* update llama lora test case loss
* add blank line
* delete commment
* format
* delete last slash
* add deterministic flag
---------
Co-authored-by: YuangLiu <liuyuang@baidu.com >
Co-authored-by: liufengwei02 <liufengwei02@baidu.com >
2025-03-07 17:47:13 +08:00
xuxinyi389
3d5cac9df1
[AutoParallel] Add deepseek-v3 config ( #10019 )
...
* add_config
* update_config
* update_config
* add_describe
2025-03-07 17:33:40 +08:00
tianshuo78520a
63d920b565
del update_inputs.cu ( #10022 )
2025-03-07 00:54:58 -08:00
ltd0924
19e10ba59e
[LLM] fix llm model path and support download from txt ( #10026 )
...
* [LLM] fix llm model path and support download from txt
* [LLM] fix llm model path and support download from txt
2025-03-07 16:28:54 +08:00
vivienfanghuagood
1db27cdaf9
Support mmlu-pro ( #10023 )
...
* add_mmlu
* update
* add_gsk8k
* add_mmlu_pro
* add
2025-03-07 15:00:09 +08:00
Weiguo Zhu
34d2980658
[News] update readme ( #10020 )
...
* new
* update
* update
2025-03-07 14:16:18 +08:00
freeliuzc
3dc05ada30
update spec docs ( #10016 )
2025-03-07 13:32:03 +08:00
ShenLiang
d2a976466a
Add deepep for deepseekv3 ( #10007 )
2025-03-07 11:25:16 +08:00
freeliuzc
df10f2c615
update doc ( #10014 )
2025-03-06 21:13:32 +08:00
Weiguo Zhu
4711e147a1
Update version ( #10015 )
2025-03-06 20:35:49 +08:00
bukejiyu
0a665a0418
[inference]add docker doc ( #9998 )
...
* add doc
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* [LLM] 服务化部署文档
* update
* [LLM] 服务化部署文档
---------
Co-authored-by: ltd0924 <32387785+ltd0924@users.noreply.github.com >
2025-03-06 18:40:06 +08:00
zhangyuqin1998
5329d28881
[Distribution] Support DualPipeV for GPT3 ( #9993 )
...
* [Distribution] Support DualPipeV in GPT3
* fix
* fix
2025-03-06 17:21:27 +08:00
lizhenyun01
80272fd51c
Default set FLAGS_cascade_attention_max_partition_size as 32K ( #10013 )
2025-03-06 17:15:25 +08:00
chen
385f613f09
Remove some bug config for block gemm ( #10002 )
2025-03-06 17:14:37 +08:00
Weiguo Zhu
fce1bf5399
update license ( #10003 )
2025-03-06 16:55:36 +08:00
Weiguo Zhu
658bec29dd
[LLM] Fix MTP for pipeline parallel ( #9972 )
...
* fix params loading
2025-03-06 16:22:26 +08:00
Weiguo Zhu
51ea8a42b8
[Doc] Add Qwen/QwQ-32B model ids ( #10005 )
...
* update Qwen models
* merge
2025-03-06 14:54:32 +08:00
ltd0924
a313a26f73
[LLM] support fix seq len and cmd run service ( #10004 )
...
* [LLM] support fix seq len
* [LLM] support cmd run service
* [LLM] support cmd run service
2025-03-06 14:51:27 +08:00
l1cacheDell
b36d306a65
[Feat] Sage Attention Kernels Support for sm80, sm89, sm90 ( #9848 )
...
* add sage attn sm90 kernels
* fix
* add ds sageattn kernel
* update kernels
* update setup_cuda.py
* update dsk MLA kernel
* clean PR branch
* fix sa usage
* bugfix
* modify, for static mode inference SA
* add license info
* add license info for py file
* modify license info
* modify license info
* bsz=1 assert
* fix kernel
* move to import line
* merge develop & support wint8&fp8
2025-03-06 14:47:07 +08:00
Yuanle Liu
ed7f01da68
[Inference] Add deepseek doc ( #9964 )
...
* add deepseek doc
* fix dead links
* remove png
* fp8 for mtp
* check
* add weight_block_size and moe_quant_type
* Update inference.md
* add server
* fix
* update
* Update deepseek.md
* update
* update
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
Co-authored-by: ckl117 <ckl117@163.com >
Co-authored-by: bukejiyu <395822456@qq.com >
2025-03-06 14:12:57 +08:00
umiswing
a381674fd4
Add moe flex dispatcher ( #9977 )
...
* add wip flex dispatcher
* wip fix PyLayer segfault
* remove redundant args
* refine
* add group as args
* add license, fix a bug
* refine codestyle
* refine
2025-03-06 11:49:26 +08:00
ltd0924
2c1b1062e0
[LLM] Support for automatic deployment of services, modification of environment variable names ( #9966 )
2025-03-06 11:41:28 +08:00
gaoziyuan
2921a5168e
【Inference】Add benchmark client test scripts ( #9996 )
...
* add benchmark client scripts
* add benchmark client scripts
* add benchmark client scripts
* add benchmark client scripts
* add benchmark client scripts
* add benchmark client scripts
2025-03-05 19:36:35 -08:00
Function-Samuel
c98163bd51
[AutoParallel] Support intermediate_api baichuan test ( #9988 )
2025-03-06 11:19:58 +08:00
lizhenyun01
47e32664af
[DSK] fix tenercore precision while split kv ( #9994 )
...
* fix tenercore precision while split kv
* fix
* fix
* fix
* update unittest
2025-03-05 18:12:02 -08:00
Weiguo Zhu
2773ce3e44
fix prm test ( #9997 )
2025-03-06 09:32:56 +08:00
xuxinyi389
ab1a90cd00
[AutoParallel] Add pp stage id ( #9965 )
...
* add_pp_stage_id
* fix some bugs in dygraph pipeline parallel
---------
Co-authored-by: Yichen Zhang <zhangyichen03@baidu.com >
2025-03-05 21:03:13 +08:00
Yuanle Liu
614d10a34b
[LLM INFER] update step_paddle ( #9991 )
...
* fix step_paddle
2025-03-05 19:52:25 +08:00
ming1753
9f93974e60
[DSK] DeepSeek Support FP8 ( #9956 )
...
* DeekSeek suport FP8
* support fp8 block gemm and group quant
* support fp8 gemm with tensor scale tune on sm90
* support read weight_block_size from model config.json
* move tune_fp8_gemm.sh to csrc
* coptimize per_token_group_quant_fp8_api
* support per_token_group_quant_fp8_api transpose_scale True
* optimize preprocess_for_moe
* support tensor core mla
* check fp8 code and support wint8-moe in R1-FP8-small
* deepseek fp8 support moe wint8
---------
Co-authored-by: ckl117 <ckl117@163.com >
Co-authored-by: zhoutianzi666 <17801055074@163.com >
2025-03-05 19:05:51 +08:00
lugimzzz
5ada4dbe99
fix ci ( #9989 )
2025-03-05 15:47:50 +08:00
Chang Lu
d6fc58dbcf
fix profile tool ( #9976 )
2025-03-05 15:39:10 +08:00
Tian
eb25ccb618
[LLM] add moe parallel groups ( #9982 )
2025-03-05 15:37:09 +08:00
greycooker
fd0da9381b
Fix wandb proxy ( #9960 )
2025-03-05 15:02:58 +08:00
freeliuzc
14c829eac3
Fix mtp speed ( #9987 )
...
* fix mla's precision
* modify mtp serving strategy
---------
Co-authored-by: carryyu <569782149@qq.com >
2025-03-05 12:31:57 +08:00
lugimzzz
f4d4eea5e2
[LLM]fix ci ( #9986 )
2025-03-05 11:15:17 +08:00
Zhong Hui
4c2a3f76be
Update paddle_patch.py ( #9984 )
2025-03-04 20:48:28 +08:00
Yuanle Liu
91d1a2343c
[Inference] MLA use tensor core ( #9952 )
...
* mla use tensor core
* update
* update cutlass
* fix
* fix
* add some logic
* 耗时异常
* fix
* update
* fix mla split_kv
* support write cache
* write spec cache
* fix infer.py mla_absorb
* fuse noaux_tc
* fix server
* fix dybatch
* fix start_server.sh
* support mtp with new version
* fix mtp dynamic bug
* fix server
* fix mla's precision and del unused code
* fix mla_hopper.h
---------
Co-authored-by: lizhenyun01 <1500424927@qq.com >
Co-authored-by: freeliuzc <lzc842650834@gmail.com >
Co-authored-by: carryyu <569782149@qq.com >
2025-03-04 19:57:58 +08:00
bukejiyu
a99d6ada59
[Inference] refine csrc/tools/build_wheel.sh ( #9971 )
...
* update gpu whl
* add
* update
2025-03-04 01:57:30 -08:00
Chang Lu
55d57fbffc
Change llama loss on xpu ( #9973 )
2025-03-04 16:57:40 +08:00
Zhong Hui
cf4e9c8ed1
Update paddle_patch.py ( #9978 )
2025-03-04 15:01:17 +08:00
vivienfanghuagood
350acbfb19
Support MMLU eval ( #9967 )
...
* add_mmlu
* update
* add_gsk8k
2025-03-04 11:39:53 +08:00
Zhong Hui
5100d08da7
Fix update paddle_patch.py ( #9968 )
2025-03-04 11:00:52 +08:00
jax
cda527960d
Longlora ( #9970 )
...
* longlora-paddle
* update tests for longlora
* update longlora test
* update modeling
* update test
* update test
* update test
* update
* update
2025-03-04 10:34:39 +08:00
lugimzzz
cc925d0aea
[MergeKit]add log ( #9948 )
...
* add log
* add log
2025-03-03 20:49:12 +08:00
lugimzzz
4b65eecb2d
[llm]add bf16 moment adamw ( #9732 )
...
* add adam
* add triton ops
* update model
* add
* add triton ops
* fix
* fix
* support 16bit
* support 16bit
2025-03-03 17:21:06 +08:00
Yichen Zhang
5936abec96
[AutoParallel] Add auto parallel moe layer ( #9886 )
...
* add auto parallel moe layer
* add local layer in MoELayer
* add expert parallel with dygraph auto parallel
* expert parallel in static auto parallel
2025-03-03 14:58:48 +08:00
Zhong Hui
10dd453b40
[Feature] Support float8 dtype storage and deepseek v3 with fp8 inference. ( #9906 )
...
* suppport float8 dtype.
* fix
* fix for empty shape.
* Support load fp8 model.
* debug
* [DeepSeek] Support for float8 loading and inference.
* Add paddle patch.
* refine safetensors.
* refine code.
* Fix moe dtype error.
* fix paddle.Tensor.
* fix kwargs with patch api.
* fix for fast safe open
* fix merge kit.
* fix inference.
* remove set device.
2025-03-03 14:54:45 +08:00
nunnunko777
8a8c64f9fb
Add Process Reward Model. ( #9598 )
...
* Add Process Reward Model.
* Support return_dict=True
* reimplement prm & support Mistrail.
* lowercase in mode path
* tokenizer add_special_tokens=False for placeholder & reward tokens
* support flash mask
* add prm tests
* causal mask
* fix import error of LlamaLMHead & MistralLMHead
* fix import error of LlamaLMHead & MistralLMHead
* verify loss computation
* fix rag reward_tokens
* fix arg reward_tokens
* Lint
* Lint
* Lint
* add test
* remove redundant notes.
* add readme doc
* fix import error
2025-03-03 11:49:45 +08:00
Weiguo Zhu
5477fb85c5
[doc] update config and add docs for grpo ( #9962 )
...
* add grpo doc and config
* update ppo
* update
* update
* update
* lint
* update doc
* skip ci
2025-03-03 10:02:23 +08:00
Weiguo Zhu
40c3530dff
[RL] Fix PPO and add GRPO ( #9925 )
...
* fix ppo and grpo v1
* update grpo
* delete notes and modify argument (#10 )
* [RL] Fix PPO and add GRPO (#11 )
* delete notes and modify argument
* delete ppo_config.json
* modify format
* lint
* fix model config set
* fix grpo (#12 )
* [New Features] support json file data (#13 )
* delete notes and modify argument
* delete ppo_config.json
* modify format
* support json data
* modify argument
* fix
* fix ci
* fix
* fix datapath (#14 )
* delete notes and modify argument
* delete ppo_config.json
* modify format
* support json data
* modify argument
* fix data
---------
Co-authored-by: greycooker <94276438+greycooker@users.noreply.github.com >
Co-authored-by: gongel <ainlp88@qq.com >
2025-02-27 21:01:30 +08:00
freeliuzc
85e1238ace
1.fix dynamic_forward of mtp. 2.fix llama-eagle multi-device ( #9947 )
2025-02-27 20:48:00 +08:00
kevin
02bf7c8dbc
[LLM] update llm server dockerfiles ( #9940 )
...
* [LLM] update llm server dockerfiles
* update llm dockerfile
2025-02-27 16:39:16 +08:00
Weiguo Zhu
00f1e66c5a
[requirements] tokenizers for py38 ( #9953 )
2025-02-27 16:31:36 +08:00
blacksheep-Aristotle
45b50121b5
use training_args to contorl split input ( #9943 )
2025-02-27 11:45:32 +08:00
Yuanle Liu
72dd32d903
[DSK] Implement mla use matrix-absorption ( #9875 )
...
Implement matrix-absorption version of MLA
---------
Co-authored-by: lizhenyun01 <1500424927@qq.com >
Co-authored-by: lizhenyu04 <lizhenyu04@baidu.com >
2025-02-26 22:10:39 +08:00
Siming Dai
011ae71a8f
[Unified Checkpoint] Fix split param loading directly when using ignore_merge_optimizer ( #9935 )
...
* fix
* refine code
* update typename
2025-02-26 16:02:14 +08:00
xuxinyi389
b6956a3905
[Autoparallel] Mtp for DeepSeekV3 ( #9884 )
...
* refine log
* fix
* add model args
* suppoort_deepseekv2_autoparallel_with_DP/MP
* poolish
* remove_env_set
* update_code
* add_v3
* support_sharding
* move_to_v3
* fix_typo
* update_v3_config
* refine
* refine
* fix
* fix
* fix
* fix
* fix
* mtp_for_v3
* deepseekv3_for_pp
* update_run_pretrain_auto.sh
* update_sh
* fix_typo
---------
Co-authored-by: zhangbo9674 <zhangbo54@baidu.com >
2025-02-26 14:54:51 +08:00
freeliuzc
f60f83e541
【Inference】Support mtp serving ( #9936 )
...
* Unify the mtp usage of predictor and serving.
* 1.support speculate complicated args. 2.format serving code
* 1. support mtp serving. 2. Unify Spec argument
* fix mtp serving
* merge develop
* delete debug
* support serving compute accept_ratio
2025-02-26 14:04:21 +08:00
ZiyiHuang
c71287d1fc
[taskflow] Fix taskflow bug ( #9930 )
...
* fix
* add doc
* update docs
* add experiment
* update readme.md
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
2025-02-25 19:08:08 +08:00
Weiguo Zhu
7acaf18fa1
[LLM] Add MTP for Deepseekv3 ( #9876 )
...
* mtp
* MTP
* update deafult config
* update MTP
* update seq_aux_loss
* update output
* lint
* fix for qwen2moe
2025-02-25 13:28:25 +08:00
Function-Samuel
9790880fc2
Support intermediate_api qwen test ( #9910 )
...
* split from pr9882
* gate_up_fused_proj
2025-02-25 12:53:01 +08:00
Function-Samuel
694bb50c68
Support intermediate_api gpt-3 test ( #9912 )
...
* split from pr9882
* fix
2025-02-25 12:51:59 +08:00
Yuanle Liu
30df8b6b6a
[DeepSeek] Fix some bugs for dsk-v3 ( #9874 )
...
* use fused rope
* fix import
2025-02-24 11:58:17 +08:00
AIbin
0b26a02d0b
[Inference] Support qwen2_5_vl ( #9924 )
...
* support qwen2_5_vl
* update support qwen2_vl & qwen2_5_vl & support multi models mapping
2025-02-24 11:01:51 +08:00
zhaohaixu
0c65ce7f9c
[LLM] fix block_size setting for llama. ( #9921 )
2025-02-21 17:57:21 +08:00
Liujie0926
c65dc182c7
[CI]update ci scripts ( #9889 )
...
* update ci scripts
* upload fail_log to bos
* fix unittest
* fix
* paddlenlp_ops build
* fix env
* revert
* fix log
2025-02-21 14:06:51 +08:00
Sijun He
a095e97929
Update finetune.md ( #9922 )
2025-02-21 13:53:19 +08:00
lugimzzz
b8ebe3ee0d
add count trained tokens ( #9800 )
...
* add count
* fix
* fix
2025-02-20 16:40:40 +08:00
bukejiyu
347d77ccc2
add gpu whl ( #9890 )
2025-02-20 14:08:04 +08:00
Weiguo Zhu
7ea422863f
[DOC] PP-UIE ( #9913 )
2025-02-20 11:39:42 +08:00
liym27
b49d9ff37c
[Benchmark] Align benchmark conf for static baichuan2 gpt3 ( #9901 )
...
* align benchmark conf for static baichuan2 gpt3
* align benchmark conf for static qwen-14b
* fix scripts
2025-02-20 11:37:17 +08:00
Weiguo Zhu
2e1d57bb6f
[DOC] Update README for PP-UIE ( #9911 )
...
* update doc for pp-uie
* update
2025-02-20 11:16:08 +08:00
ZiyiHuang
3a5e9b831f
[LLM-IE] Add pp-uie to Taskflow ( #9845 )
...
* fix taskflow
* add llm/ie for SFT of ie task
* remove data folder
* update readme
* add taskflow
* remove taskflow
* add sft for ie task
* add multi_stage_predict of taskflow
* fix some bug and rename qwen2 as uie-llm
* fixed test and lint
* fixed test and lint
* fixed test and lint
* update 0109
* update 0109
* update 0113
* updaate 0113
* remove static mode in taskflow
* update 0115
* update 0115
* update 0115
* update 0116
* update 0116
* update readme.md
* update readme.md
* update 0116
* update taskflow.py and readme.md
* rename model name
* update
2025-02-20 10:26:15 +08:00
Weiguo Zhu
777fc2793f
[TaskFlow] Fix pir for taskflow ( #9822 )
...
* fix pir for taskflow
* update suffix for PIR(ON/OFF)
* fix and revert skip
* update dependency_parsing
* fix pir bug
* fix pir bug
* fix lint
* fix ci
* disable test case
---------
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
Co-authored-by: Fantasy-02 <1026931135@qq.com >
2025-02-20 10:21:53 +08:00
freeliuzc
11684064d6
[Inference] Fix deepseek_v3 with mtp in multi-gpu mode ( #9894 )
...
* fix deepseek_v3 with mtp in multi-gpu mode
* fix IWR bug
2025-02-19 20:22:01 +08:00
liym27
08183d7fea
[CI] Update the best conf for gpt-13b in dygraph mode ( #9891 )
...
* update the best conf for gpt-13b in dygraph mode
* fix run mode
2025-02-19 15:54:53 +08:00
Longzhi Wang
7e9052a921
【SpecInfer】修复 InferenceWithReference 接收率不高的 bug ( #9880 )
2025-02-18 22:41:43 -08:00
ltd0924
60ef0afaf8
[Server] Support multi machine deployment ( #9872 )
2025-02-19 13:31:42 +08:00
lugimzzz
775ed2ad36
fix ( #9885 )
2025-02-19 11:47:57 +08:00
liym27
8e4ff0743c
[Test] Suppport intermediate_api llama test ( #9850 )
...
* suppport intermediate_api llama test
* fix
* add 70b
2025-02-18 15:40:53 +08:00
xuxinyi389
c42a3d6270
[AutoParallel]support_ppo_ckpt ( #9823 )
...
* support_ppo_ckpt
* fix readme
* fix_typo
2025-02-18 15:31:40 +08:00
Weiguo Zhu
71bfc333ad
[Docs] news of DeepSeek ( #9834 )
2025-02-18 12:07:43 +08:00
Zhong Hui
ac980d3dc2
[Docs] fix docs for inference and servering ( #9877 )
...
* fix docs.
* refine docs.
* inference servering doc to one.
* fix
* refactor.
* fix link.
* add flask server doc.
* fix typo.
* model with new tab.
2025-02-17 19:25:45 +08:00
Zhuoqun Li
2e06a18d7a
[LLM] move modeling.py and modeling_nv.py to transformers ( #9676 )
...
* move modeling.py and modeling_nv.py to transformers
* move modeling.py and modeling_nv.py to transformers and simplify import path
* move modeling.py and modeling_nv.py to transformers and add test_modeling
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
2025-02-17 19:16:49 +08:00
xuxinyi389
5eeb7aa17a
[AutoParallel] Support deepseekv2 with DP/MP ( #9862 )
...
* suppoort_deepseekv2_autoparallel_with_DP/MP
* poolish
* remove_env_set
* update_code
* add_v3
* support_sharding
* move_to_v3
* fix_typo
* update_v3_config
2025-02-17 15:50:27 +08:00
freeliuzc
235c24e984
[Inference]Support mtp with deepseek-v3 ( #9856 )
...
* support mtp with deepseek_v3 both in static and dygraph mode
* fix speculate tokenizer in unittest
* delete useless code
2025-02-15 18:14:56 +08:00
Zhong Hui
62eac0ca04
[PreTrain] Support deepseek mfu for pretraining and fix tflops for pretrain pipe model ( #9855 )
...
* git flops with pp model.
* Support hareware tflops for deepseek.
2025-02-15 16:45:37 +08:00
Weiguo Zhu
8f4e0f09d2
[Inference] Update deepseek ( #9864 )
...
* fix
* fix infra
2025-02-14 18:02:38 +08:00
QingshuChen
5ebe42b1ac
[XPU] Add xpu fused op for deepseek ( #9854 )
2025-02-14 16:18:31 +08:00
Ruibiao Chen
98d27d659a
Support XPU for auto-paralllel LLaMa ( #9796 )
...
* Support XPU for auto-paralllel LLaMa
* Update
* Update
* Update
* Update
* Fix CI errors
* Update
2025-02-14 16:03:23 +08:00
Zhong Hui
ca22425e06
[Optimization] Support lower memory cards. ( #9804 )
...
* support lower memory cards.
* add doc for v100 16G such devices.
* remove debug info.
* add pre divided factor to overcome overfit problem for fp16 attention.
2025-02-14 14:53:46 +08:00
Yuanle Liu
1ca1d593fe
[Bugfix] Fix dsk rope diff ( #9859 )
...
* fix dsk diff
* fix
* update
2025-02-14 14:11:37 +08:00
Siming Dai
5a1c4ac0e0
save extra special tokens ( #9837 )
2025-02-13 14:20:11 +08:00
zty-king
3900428f6c
Solve the compatibility problem of type annotation Python version ( #9853 )
2025-02-13 11:38:05 +08:00
Yuanle Liu
d53e39de17
[DSK] support deepseek-v3/r1 (mha/fp16/bf16/wint8/wint4) ( #9769 )
...
* support deepseek-v3
* support head_dim=192,256 for append_attn c16
* update 0113
* attention run
* refine code
* add softmax_scale
* support weight_only_int8
* refine code
* support tp
* delete test_append_attn
* add splited fused_moe from ziyuan
* fix repe for deepseek-v3
* add deepseek-v3 class
* fix wint8 precision and refine code
* fix wint4, big diff
* add e_score_correction_bias
* fix head_dim
* fix v3 verify
* fix d2s
* fix v3 verify
* support qk_head_dim != v_head_dim
* fix wint8 v_head_dim
* fix rope
* fix qwen2
* mla use position_ids only
* remove control flow
* remove gpu concat
* fix norm weight dtype
* remove all_reduce in fused_moe
* fix static run
* refine rope code
* compute position_ids use custom op
* fuse rope
* fix macro
* fix mixtral
* support mla for speculate
* fix tokenizer and qwen
* fix moe diff due to e_score_correction_bias
* fix fast tokenizer
* fix import
---------
Co-authored-by: lizhenyun01 <1500424927@qq.com >
Co-authored-by: lizhenyun <lizhenyun@baidu.com >
2025-02-13 00:21:25 +08:00
Tian
763c59af39
[LLM] fix checkpoint save for non flash mode ( #9830 )
2025-02-12 14:02:54 +08:00
Zhong Hui
85b77f2d90
[Inference] Flask server compatible with OpenAI api. ( #9828 )
...
* flask server compatible with OpenAI api.
* fix max_length to max_tokens.
* fix with think model.
2025-02-12 13:32:39 +08:00
Siming Dai
9ded9bf880
[Unified Checkpoint] Fix expert parallel ( #9821 )
...
* fix expert parallel
* fix split_param for expert parallel
* add filter_sync_parameters
2025-02-12 10:59:00 +08:00
lugimzzz
765ab8d076
[Mergekit]update & add LoRA merge ( #9811 )
...
* add
* fix bug
* fix
* add
* add lora merge
* add
* add
* add
* add
* add
* add
2025-02-11 17:46:33 +08:00
Weiguo Zhu
58fc49f32e
[LLM] Add pipeline and flashmask for Qwen2Moe and Deepseek ( #9827 )
...
* add modleing_pp
* add modleing_pp for qwen2moe
* add flashmask and pp for Qwen2MoE and Deepseek
* remove
* fix fast_tokenizer save
* update for topk_weight of noaux_tc
* fix for flashmask
* add use_expert_parallel for pretrain
* fix tokenizer test
2025-02-11 16:23:55 +08:00
Weiguo Zhu
86286e09f8
Fix position_ids for infra ( #9841 )
2025-02-11 14:06:45 +08:00
Weiguo Zhu
55db2ff067
[Inference] Fix multibatch inference ( #9831 )
...
* fix batch infra
* fix deepseekv2 infra
2025-02-10 11:52:52 +08:00
will-jl944
eab22f2b4a
[XPU] Support empty_cache on XPUs ( #9789 )
...
* [XPU] Support empty_cache on XPUs
* warn if current device doesn't support
2025-02-08 11:46:10 +08:00
Yuanle Liu
a9d8648120
[Readme] Update mixtral.md ( #9829 )
2025-02-07 12:02:23 +08:00
will-jl944
bad224079f
Fix LLAMA arg parsing bug in pp ( #9806 )
2025-02-06 19:25:17 +08:00
YUNSHEN XIE
fa98268be9
修复benchmark多机任务异常退出的处理 ( #9651 )
...
* 修复benchmark多机任务异常退出的处理
* fix bug
* update
2025-02-06 17:09:19 +08:00
Chang Lu
54b8882079
[AutoParallel] add sharding tensor_fusion save load switch ( #9810 )
...
* support tensor_fusion save load
* apply suggestions from code review
2025-02-05 16:45:09 +08:00
Weiguo Zhu
96856bdd0e
[LLM] Update model convert and fix TP for deepseekv3 ( #9797 )
...
* fix model convert and tp in MoEMLP
* fix tp_action filter
* update convert accoding to num_nextn_predict_layers
* add deepseek-R1
2025-01-24 18:12:08 +08:00
Siming Dai
3967f76e66
fix split_param ( #9817 )
2025-01-24 11:01:00 +08:00
Zhong Hui
2f85a64edd
[README] Update README.md for documention ( #9785 )
...
* Update README.md
* Update README.md
* Update README_en.md
2025-01-23 11:41:43 +08:00
Ting
e247c85405
[Trainer] Wrap model when lora is ON and only do evaluation. ( #9803 )
2025-01-23 11:37:29 +08:00
Zhong Hui
30fa8b920d
[CI] Fix ci of small models ( #9633 )
2025-01-23 11:16:31 +08:00
freeliuzc
bb103a32da
[Inference] Support eagle for llama ( #9812 )
2025-01-23 11:14:32 +08:00
kevin
bb0c9ad75b
[LLM] merge code from fastdeploy ( #9791 )
...
* [LLM] update llm server dockerfiles
* merge code from fastdeploy
2025-01-23 11:12:14 +08:00
Mangodadada
ac095f5096
mergekit gpu 1226 ( #9702 )
...
* mergekit gpu 1226
* merge model gpu
* merge gpu
* add lora model
* change valueerror
* add lora
* gpu test
2025-01-21 15:38:15 +08:00
Liujie0926
7c1c9baec7
[LLM Benchmark]update scripts ( #9722 )
...
* add no_proxy & del paddlenlp_ops
* update timeout for dpo
* fix sequence_parallel
* add timeout
* add Total_Tokens_per_second_per_gpu
* fix Tokens_per_second_per_gpu
* update Total_Tokens_per_second_per_gpu
2025-01-21 15:19:36 +08:00
Tian
730a7626ec
[LLM] support flash device on static model ( #9619 ) ( #9787 )
...
* [LLM] support flash device on static model
* [LLM] adapt pdc sdk
2025-01-21 14:52:10 +08:00
aooxin
fb3e4c0403
[Infer] Add pir_model path for server infer. ( #9790 )
2025-01-17 11:13:33 +08:00
Ting
d039ad2c56
fix dpo pp criterion ( #9786 )
2025-01-16 17:21:23 +08:00
Siming Dai
13053a7148
[MoE] fix expert parallel ( #9760 )
...
* fix moe uc
2025-01-16 14:14:37 +08:00
Weiguo Zhu
1afb9b2ed4
fix ( #9779 )
2025-01-15 13:22:22 +08:00
blacksheep-Aristotle
9e0b830eb1
Fix ce error ( #9783 )
...
* [AutoParallel]:fix ci error
* [AutoParallel]:fix ci error
2025-01-15 13:22:01 +08:00
Siming Dai
8fb109ae11
Update register_sequence_parallel_allreduce_hooks ( #9782 )
...
* fix sequence parallel
* update register_sequence_parallel_allreduce_hooks
* update fuse_sequence_parallel_allreduce
2025-01-15 11:15:06 +08:00
Tian
efd07c0e59
[Distributed] support fuse optimizer ( #9519 ) ( #9777 )
2025-01-14 18:01:20 +08:00
Siming Dai
7b53fec78d
[BugFix] Fix matryoshka norm loss ( #9774 )
...
* fix matryoshka norm
2025-01-14 17:32:42 +08:00
Zhong Hui
4bdb06c3ba
Update README.md ( #9766 )
...
* Update README.md
2025-01-14 15:16:55 +08:00
blacksheep-Aristotle
595e74f331
Fix ernie ci auto trainer error ( #9758 )
...
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* [AutoParallel]:fix ernine auto_trainer error
* Update run_pretrain_auto.py
2025-01-14 14:03:39 +08:00
greycooker
94e798f986
fix loraga merge ( #9765 )
...
* fix loraga merge
* change sign
2025-01-14 10:41:54 +08:00
Chang Lu
027b5304f5
[AutoParallel] open tensor_fusion for benchmark ( #9749 )
...
* open tensor_fusion for benchmark
2025-01-10 16:48:29 +08:00
Weiguo Zhu
2c556e76fb
[LLM] Add DeepseekV3 ( #9738 )
...
* update deepseek-v2
* add deepseek_v3
* update for deepseekv3
* update deepseekv3 model_ids
2025-01-10 14:15:22 +08:00
Weiguo Zhu
cf5e3e72e1
[tokenizer] Fix AutoTokenizer ( #9745 )
...
* fix auto tokenizer
* fix auto tokenizer
* lint
---------
Co-authored-by: lyuwenyu <wenyu.lyu@gmail.com >
2025-01-10 14:07:55 +08:00
Siming Dai
b4325b980d
[Trainer] update sequence parallel ( #9757 )
...
* update emb doc
* update register_sequence_parallel_allreduce_hooks
* update fuse_sequence_parallel_allreduce
2025-01-10 11:26:19 +08:00
will-jl944
331131b3af
[NPU] Adapt to new flash_attention_npu api ( #9762 )
2025-01-10 11:10:14 +08:00
Longzhi Wang
048387fb5b
[Inference] merge speculate_step into step op ( #9674 )
2025-01-09 19:08:25 -08:00
Longzhi Wang
9af0466f17
fix speculate_verify_and_update op ( #9759 )
2025-01-09 19:04:58 -08:00
lizhenyun01
55e7e33e2a
fix get_block_shape_and_split_kv_block ( #9752 )
2025-01-08 23:13:32 -08:00
blacksheep-Aristotle
fb60645d8a
[AutoParallel] Fix ernie auto_trainer error ( #9753 )
2025-01-08 19:48:40 +08:00
Jie.Z
1d74d62b82
[Model] Add XLMRoBERTaModel in paddlenlp ( #9720 )
...
* add xlm_roberta in paddlenlp
2025-01-08 16:56:56 +08:00
xuxinyi389
b286544727
[AutoParallel]ckpt support local views keys to global views keys ( #9604 )
...
* ckpt_support_moe
* fix_bugs
2025-01-08 16:15:43 +08:00
aooxin
95ae8a82aa
[CI] Fix import bugs. ( #9751 )
2025-01-08 11:07:16 +08:00
blacksheep-Aristotle
06da1c3a96
[AutoParallel]: fix ernie ci error ( #9750 )
2025-01-07 18:06:58 +08:00
Siming Dai
67bc4e2cc2
[Unified Checkpoint] Fix expert parallel ( #9741 )
2025-01-07 11:16:26 +08:00
YUNSHEN XIE
142258ce8c
Modify the environment variables and model configuration of the benchmark test case. ( #9725 )
2025-01-06 20:13:38 +08:00
Zhong Hui
171726d047
[BugFix] Update predictor.py ( #9742 )
2025-01-06 19:46:46 +08:00
Weiguo Zhu
4953500520
[Docs] Fix ( #9746 )
...
* add `Before submitting` for PR
* fix dead links
* fix dead links
* Update sync to avoid dead links.
* avoid fused_ln in README.md
* update scripts/get_modified_files.py
* update
* fix README.md
2025-01-06 19:46:15 +08:00
waliwali777
7e06e02528
[AutoParallel] Add test for PIR refined recompute ( #9679 )
...
* Add test for refine recompute
* move `refined_ops_patterns` flag to auto training args
2025-01-06 17:36:21 +08:00
will-jl944
1f07325ace
Adapt to new npu flash_attention api ( #9735 )
2025-01-06 17:01:07 +08:00
Chang Lu
a83e8faadb
[AutoParallel] add parameter enable_stage1_tensor_fusion_blanced_save_load and enable_stage1_tensor_fusion ( #9714 )
...
* add param
* update note
2025-01-06 14:04:19 +08:00
zhink
a52035f6ba
Added FLAGS to replace four params and the value can be adjusted for better speedup ( #9624 )
...
* add FLAGS instead max_partition_size
* encoder_max_partition_size eq max_seq_len when encoder
2025-01-06 11:03:11 +08:00
aooxin
bb85eb42ab
add common models and common params unit test for llm predictor. ( #9711 )
...
* add test_predictor_v1.
* del. src_length and fix bug.
* del. GPUsPredictorTest previous.
* update.
* activate ci
---------
Co-authored-by: Yuanle Liu <yuanlehome@163.com >
2025-01-04 07:22:59 +08:00
Tian
7713ca8a57
[LLM] [Cherry-Pick] Integrate PDC SDK for LLM training fault tolerance platform ( #9706 )
...
* Add PDC sdk (#9431 )
* [LLM] support download ckpt from pdc (#9443 )
---------
Co-authored-by: dongzezhao <2283296285@qq.com >
Co-authored-by: luoyuedong <530122286@qq.com >
2025-01-03 17:29:30 +08:00
will-jl944
3e15f0ec3b
Add offload_recompute_inputs ( #9715 )
2025-01-03 14:14:04 +08:00
Zhong Hui
dac27c4a12
[Docs] Refactor custom devices. ( #9734 )
2025-01-03 11:37:46 +08:00
blacksheep-Aristotle
575896cca8
add single_model network and use intermediate api ( #9412 )
...
* add single_model network and use intermediate api
* [AutoParallel]: fix llama_model_network run error
* New version of auto config
* bug fix
* [AutoParallel]:add qwen run intermedaite api script
* fix sharding
* support attn_mask not None for pp
* fix for mp
* update api calling
* update the script
* add qwen mp/sp/pp config and process attn_mask and position_id
* fix issue of pipeline and add lazy_init
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* [Auto Parallel] add llama2 7b/13b intermediate benchmark config
* update api
* update plan
* qwen fit base api
* fix alibi and attn_mask
* bug fix
* [AutoParallel]:gpt single network support tp to share_embedding
* [AutoParallel]:gpt single network support tp to share_embedding
* add intermediate ci
* add single_model network and use intermediate api
* New version of auto config
* fix sharding
* fix gpt_network to use intermediate_api
* fix gpt_network to use intermediate_api
* update ci loss baseline
* update gpt run_pretrain_py
* fix sharding error
* fix gpt format error
* [AutoParallel]:fix llama vpp ci error
* [AutoParallel]:fix llama A100 ci failed
* [AutoParallel]:update model formate
* [AutoParallel]:fix ipp error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:fix a100 ci error
* [AutoParallel]:update model_netowrk formate
* [AutoParallel]:add explanatory note
* [AutoParallel]:add explanatory note
* [AutoParallel]:add explanatory note
* Delete =1.0.0
---------
Co-authored-by: YuangLiu <liuyuang@baidu.com >
Co-authored-by: zhengzhonghui <zhengzhonghui@baidu.com >
Co-authored-by: jeff41404 <jeff41404@gmail.com >
2025-01-03 09:25:24 +08:00
yujun
fa3fd39a02
[Refined Recompute] Remove refined recompute deep copy ( #9617 )
...
* remove rr deep copy
* make sure test on gpu
2025-01-02 14:50:39 +08:00
Siming Dai
3a3bb653ed
[Embedding] Fix embedding random ( #9721 )
2025-01-02 14:49:20 +08:00
lugimzzz
3aa9f4c339
[llm] Add KTO ( #9689 )
...
* add kto
* add kto
* add kto
* add kto'
* add kto
* add
* fix conflict
* add llm
2024-12-31 14:12:57 +08:00
Tian
dff62a10ea
[LLM] [Cherry-Pick] add asynchronous metrics dumper for llm training ( #9704 )
...
* [LLM] add metrics dumper in background (#9049 )
* [LLM] compat older paddlenlp for metrics dumper (#9072 )
* fix exit bug for paddlenlp (#9237 )
* fix UT
---------
Co-authored-by: ShenLiang <2282912238@qq.com >
2024-12-30 15:38:09 +08:00
Liujie0926
62274fa58c
[LLM_benchmark]update LLM_benchmark scripts ( #9662 )
2024-12-30 14:54:10 +08:00
waliwali777
c080bb8d3f
fix_recompute_test ( #9672 )
2024-12-30 11:12:47 +08:00
Ting
07ad5e61f5
support qwen dpo fused kernel ( #9686 )
2024-12-30 10:58:10 +08:00
lugimzzz
79695ccd74
[llm]support dpo pp for qwen & llama ( #9695 )
...
* support dpo pp
* add dpo pp
* add dpo pp
2024-12-27 16:53:01 +08:00
Tian
691ae01d14
[LLM] valid loss before optimizer step ( #9255 ) ( #9705 )
2024-12-27 16:05:25 +08:00
zhink
7197b79c1d
[Inference] Use cuda core(int8_sq) for m <=4 in gemm_dequant OP ( #9707 )
2024-12-27 14:07:01 +08:00
xuxinyi389
b53f7ebd67
fix_typo ( #9703 )
2024-12-27 11:01:36 +08:00
blacksheep-Aristotle
a0c4b4ccda
update gpt&baichuan&qwen ce name ( #9697 )
...
* update gpt&baichuan&qwen ce name
* update gpt&baichuan&qwen ce name
* update gpt&baichuan&qwen ce name
* update gpt&baichuan&qwen ce name
* update gpt&baichuan&qwen ce name
2024-12-26 18:59:15 +08:00
xuxinyi389
8c04a159ad
[AutoParallel] merge ckpt for inference ( #9688 )
...
* add_readme
* add_unified_ckpt
* fix typo
2024-12-26 18:02:28 +08:00
tianyuzhou668
f7f3957d24
[Iluvatar] Add readme for llama-13b ( #9670 )
...
Co-authored-by: tianyuzhou668 <tianyuzhou668@github.com >
2024-12-26 15:41:55 +08:00
chen
36d53337ed
[LLM INFER] cutlass 3.x gemm on sm90 ( #9398 )
...
* cutlass 3.x gemm on sm90
* change cutlass to v3.5.1, because v3.5.0 don't support fp8 gemm on hopper
* support tune cutlass 3.x FP8 GEMM
* auto gen cutlass 3.x FP8 GEMM code
* add FP8 docs
* change FP8 tune, and remove -O3
* check
* check
* support dual gemm on sm90
* code check
* dual gemm cutlass kernel
* code check
* code check
* setup_cuda.py check
* delete invalid gemm config
* change gitignore
* Update csrc/setup_cuda.py
Co-authored-by: Yuanle Liu <yuanlehome@163.com >
---------
Co-authored-by: ckl117 <ck117@163.com >
Co-authored-by: Yuanle Liu <yuanlehome@163.com >
2024-12-25 23:06:15 -08:00
greycooker
d007615b91
fix loraga amp ( #9699 )
2024-12-26 15:02:12 +08:00
Jie.Z
40fa402dc4
[Embedding] Add inf-cl in embedding trainer ( #9673 )
...
* add inf-cl in embedding trainer
2024-12-25 17:19:25 +08:00
kevin
da320870f8
[LLM] Add deploy server ( #9581 )
...
* [LLM] add deploy server
2024-12-25 16:32:43 +08:00
sneaxiy
f67f421184
[MLU] Add MLU llama readme ( #9671 ) ( #9685 )
...
Co-authored-by: PeiyuLau <135964669+PeiyuLau@users.noreply.github.com >
2024-12-25 12:47:30 +08:00
PeiyuLau
801682de72
[MLU] Add MLU llama readme ( #9671 )
2024-12-24 14:35:38 +08:00
sneaxiy
947ee9d669
Optimize performance for Qwen2 model ( #9616 )
...
* Optimizer performance for Qwen2 model
* fix format
* fix swiglu
* fix ut
* fix ut failure
2024-12-24 14:29:02 +08:00
Siming Dai
3374e7fcf9
[UnifiedCheckpoint] Add tied_weight_keys for pipeline model ( #9663 )
...
* update trainer.py
* fix tied_weights_keys
* update
2024-12-23 21:05:28 +08:00
Siming Dai
97ae9adc3c
[Unified Checkpoint] bug fix for missing optimizer.safetensors.index.json ( #9669 )
...
* Update unified_checkpoint.py
2024-12-23 15:58:01 +08:00
yujun
1842d6d133
[Ops] Add paddlenlp_kernel for CUDA and Triton ops( #9471 )
...
* add paddlenlp_gpu_ops
* add inf_cl loss function
* rename ppnlp_kernel
* rename paddlenlp_kernel
2024-12-23 14:36:04 +08:00
Liujie0926
f4f578cc40
[CI]update blacklist for gpt3 ( #9555 )
...
* update blacklist
* update
* update
* update
* update
* fix
* fix
2024-12-23 14:16:41 +08:00
Mangodadada
c6ab784b90
merge docs ( #9657 )
...
* merge docs1218
* docs
* fix soft link
* rename
* fix merge docs
* rename
* merge docs 1220
* merge docs
2024-12-23 11:06:10 +08:00
AIbin
e91c2d3d63
【Qwen2-VL Inference】add qwen2-vl high performance inference ( #9575 )
...
* qwen2-vl
2024-12-20 17:02:39 +08:00
Qiming Zhu
a26ddc4242
Structured Index of Documents ( #9411 )
...
* Structured Index of Documents
* 替换pdf为url
* 更改下载方式
* 更新README
* 更新README
* 修改环境安装指令
2024-12-20 15:28:23 +08:00
shang-mt
297dbced6b
[Doc] [Mthreads] Support llama 13B pre-train ( #9666 )
2024-12-20 14:35:27 +08:00
Zhong Hui
029801da82
[DOC] Polish README of UC ( #9668 )
2024-12-20 14:20:16 +08:00
Siming Dai
9b6271271b
[Trainer] update remove_master_weight ( #9640 )
2024-12-20 13:25:55 +08:00
zhengzhonghui
cae63987b7
[BugFix] Make the timer compatible with devices other than GPU ( #9665 )
2024-12-20 12:06:32 +08:00
wanly young
2d950b959a
[DCU] update hygon dcu docs ( #9298 )
...
* update hygon dcu docs
2024-12-20 11:30:31 +08:00
will-jl944
0b6ed4ddb7
[XPU] qwen2 supports fused_rope ( #9660 )
2024-12-20 09:37:50 +08:00
lugimzzz
19fcdcbf17
fix lora ( #9659 )
2024-12-19 18:43:23 +08:00
blacksheep-Aristotle
25415fbe3d
fix qwen&baichaun&gpt ci error ( #9650 )
...
* fix qwen&baichaun&gpt ci error
* fix qwen&baichaun&gpt ci error
* fix qwen&baichaun&gpt ci error
* fix qwen&baichaun&gpt ci error
* fix qwen&baichaun&gpt ci error
* add gpt_dy ce
* revert qwen&baichuan dygraph ce
* revert qwen&baichuan dygraph ce
---------
Co-authored-by: xuexixi <xuexixi@baidu.com >
2024-12-19 14:34:17 +08:00
Siming Dai
49d762f2ac
[Trainer] update trainer.py for seed resume ( #9656 )
2024-12-19 14:19:15 +08:00
lugimzzz
e0ace1614b
[llm]update peft docs ( #9655 )
...
* fix docs
* fix docs
* fix docs
* fix docs
2024-12-19 12:51:57 +08:00
lcykww
90bc68e163
MoRA Implementation ( #9562 )
...
* MoRA Implementation
* MoRA算法
* MoRA
* MoRA
* MoRA
* MoRA
* MoRA
* MoRA
* MoRA
* MoRA
2024-12-18 17:08:20 +08:00
Siming Dai
605a4eaad2
Update embedding trainer state ( #9629 )
...
* add trainer state
* add trainer_state
2024-12-18 16:16:51 +08:00
ZhenxingLi
047046635e
[AutoParallel] Add config replace_with_c_embedding ( #9638 )
...
* update
* Update ci_case_auto.sh
2024-12-18 14:55:19 +08:00
will-jl944
b9cf723cc4
Fix paddle.where ( #9652 )
2024-12-18 14:46:22 +08:00
Mangodadada
fa0febce87
mergekit_with_sparsify ( #9561 )
...
* mergekit_with_sparsify
* mergekit_with_sparsify
* 参数上传修改
* change sparsify style
* test
* add merge
* add merge
* add merge
* add merge
* add test
* add tensor
* add merge
* add del
* add merge
* add merge
* del base
* del base
* alpha
* update follow comments
---------
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-12-18 12:24:15 +08:00
greycooker
407b3e6fc6
[PEFT]Add LoRA-GA ( #9592 )
...
* Support LoRA-GA initialization
* modify loraga_reinit
* Support multi GPU initialization
* support resume training and gradient offlaod hook
* remove trl/llm_utils.py
* use loraga trainer
* fix comment
* fix loraga
* change variable name
2024-12-18 10:36:44 +08:00
Siming Dai
2231feb068
[Embedding] Add embedding training ( #9508 )
...
* add Qwen2SentenceEmbedding
* add embedding trainer
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
2024-12-17 20:51:28 +08:00
zhengzhonghui
da7a7d296f
[AutoParallel] change loss_base after dropout support spmd ( #9647 )
...
* [AutoParallel] change loss_base after dropout support spmd
* [AutoParallel] change loss_base after dropout support spmd
2024-12-17 16:07:18 +08:00
waliwali777
4451c05879
Add replace_with_parallel_cross_entropy flag ( #9579 )
...
* Add replace_with_parallel_cross_entropy flag
* add a100 loss_base
* fix
2024-12-17 15:57:42 +08:00
Zhong Hui
12fba788c0
Update README.md for 3.0 beta3( #9644 )
2024-12-17 15:56:59 +08:00
waliwali777
bb9793130e
add test ( #9621 )
2024-12-17 15:55:45 +08:00
Weiguo Zhu
9eb3cfeafc
[Tokenizer] Fix tokenizer of llama3.3 ( #9641 )
...
* fix tokenizer of llama3 and add test case
* fix paddle.where
2024-12-17 14:04:25 +08:00
Weiguo Zhu
dc0ca03b52
[LLM DOCs] Add deepseek models ( #9643 )
...
* update
2024-12-16 19:30:44 +08:00
Zhong Hui
5a94e04521
[Release] Update version for beta3 ( #9553 )
...
* Update README.md
2024-12-16 19:16:02 +08:00
lugimzzz
da41c4f252
[llm]add adam-mini ( #9542 )
...
* add adam-mini
* fix following comments
2024-12-16 16:41:11 +08:00
lugimzzz
f3ba5b3c6a
[llm]update dpo criterion ( #9620 )
...
* update dpo criterion
* update dpo criterion
2024-12-16 16:41:01 +08:00
thinking-computer
5e1f01fd97
[Custom Devices] feat(sdaa): support sdaa backend infer ( #9570 )
...
1.add sdaa python paddlenlp_ops setup and README
2.update llm scripts and README
2024-12-16 15:11:42 +08:00
Weiguo Zhu
98a1cdc081
Add news ( #9632 )
2024-12-16 13:41:35 +08:00
Zhuoqun Li
c8aa7bf1a3
[Embedding] add llama and nv-embed training ( #9323 )
...
* add llama and nv-embed training
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
* add llama and nv-embed training and refine evaluation
2024-12-16 12:04:45 +08:00
Siming Dai
7947bca07f
Update unified_checkpoint.md ( #9634 )
2024-12-13 18:18:09 +08:00
Ting
e7a48db5a2
[DOC] Checkpoint Compression Doc ( #9614 )
...
* Checkpoint Compression Doc
* Update unified_checkpoint.md
---------
Co-authored-by: Siming Dai <908660116@qq.com >
2024-12-13 16:45:44 +08:00
Liujie0926
d3f3bbfc0a
[LLM benchmark]add qwen2.5-7b ( #9524 )
...
* add qwen2.5-7b
* add qwen2.5-1.5b/14b
* add fix
* update data
* fix
* fix
* fix
* Update run_ci.sh
* update ips for dpo
* add llama2
2024-12-13 16:43:28 +08:00
Liujie0926
4102eb0719
[CI]update a100 loss_base for gpt ( #9626 )
...
* [CI]update a100 loss_base
* fix PaddleNLP_CI
* update
* update
2024-12-13 15:46:22 +08:00
Wangzheee
db38937b39
[Inference] Change norm outputs in dynamic and static mode( #9569 )
2024-12-13 13:12:01 +08:00
Weiguo Zhu
c96260bb5b
Fix link ( #9628 )
2024-12-12 17:20:19 +08:00
Yuanle Liu
f1126c1cbe
[Inference] Fix docs and support llama3.2 ( #9613 )
...
* fix docs and use fast tokenizer default
* support llama3.2
2024-12-12 16:50:04 +08:00
Longzhi Wang
4f571798dd
[Inference] Fix get_save_output op and refactor specu_decoding ( #9576 )
...
* fix get_save_output op and refactor specu_decoding
* add token_penalty for speculate decoding
2024-12-12 14:59:54 +08:00
will-jl944
70e80c7c4a
Speedup FusedHeadAndCrossEntropy ( #9601 )
2024-12-12 11:42:20 +08:00
tianhaodongbd
23cf634dbf
fix pp_config bug ( #9605 )
2024-12-12 11:21:28 +08:00
yinfan98
f445a7a56a
【Hackathon 7th No.43】TokenizerFast for Ernie ( #9594 )
2024-12-12 10:14:30 +08:00
wawltor
cd5468ca66
fix the d2s bug in qwen2 modeling ( #9603 )
...
* fix the d2s bug in qwen2 modeling
* update the code for the predictor
2024-12-11 22:28:08 +08:00
Ting
b7c6b4e7e6
[Unified Checkpoint] Fix checkpoint quant log ( #9606 )
2024-12-11 20:46:29 +08:00
Weiguo Zhu
272e715199
fix ( #9612 )
2024-12-11 19:15:31 +08:00
Siming Dai
b205922c1f
update embedding trainer ( #9608 )
2024-12-11 17:31:52 +08:00
YUNSHEN XIE
b4f6e82a3d
fix benchmark scripts ( #9597 )
2024-12-11 16:24:46 +08:00
greycooker
b31c627a22
[Trainer]Fix _get_eval_sampler ( #9374 )
...
* Fix eval sampler
* change sampler name
2024-12-11 16:21:05 +08:00
Weiguo Zhu
325deb506e
[Requirements] Update protobuf version ( #9118 )
2024-12-11 11:37:32 +08:00
Weiguo Zhu
45eeac77e1
[LLM] update tensor and pipeline parallel for chatglmv2 ( #9204 )
...
* fix_chatglmv2_8k
* update modeling and modeling_pp
2024-12-11 11:35:19 +08:00
lugimzzz
9421c0ae87
fix dpo ( #9607 )
2024-12-11 11:21:58 +08:00
blacksheep-Aristotle
9f237b4dd9
[AutoParallel]:add gpt&baichuan&qwen ce ( #9591 )
2024-12-10 14:32:42 +08:00
zhangbo9674
009aca6e44
[CI] Add llama2-7b-cinn test ( #9578 )
...
* refine log
* refine
2024-12-10 11:15:20 +08:00
blacksheep-Aristotle
8ed579a683
[AutoParallel]:add gpt & baichuan auto ci ( #9551 )
...
* [AutoParallel]:add gpt & baichuan auto ci
* [AutoParallel]:add gpt & baichuan auto ci
* [AutoParallel]:add gpt & baichuan auto ci
* [AutoParallel]:add gpt & baichuan auto ci
* [AutoParallel]:add gpt & baichuan auto ci
* [AutoParallel]:fix attention_error
* [AutoParallel]:fix attention_error
* [AutoParallel]:fix attention_error
* [AutoParallel]:fix attention_error
* [AutoParallel]:add gpt&baichaun ci
* [AutoParallel]:add gpt&baichaun ci
* [AutoParallel]:add gpt&baichaun ci
* [AutoParallel]:add gpt&baichaun ci
2024-12-09 18:36:11 +08:00
Weiguo Zhu
eb4e6a1591
[DOC] Fix dead links ( #9585 )
...
* update docs/llm
2024-12-09 17:25:15 +08:00
tianhaodongbd
c565b77e75
[npu] fix where bug ( #9573 )
...
* [npu] fix where bug
* fix
2024-12-09 14:54:22 +08:00
sneaxiy
19172578c5
[Timer] Add gpu timer ( #9582 )
2024-12-09 14:41:39 +08:00
ZhenxingLi
5b54d716dd
[AutoParallel] Fix ckpt oom paddlenlp ( #9507 )
...
* Update ckpt_converter.py
2024-12-09 11:14:52 +08:00
thinking-computer
b8942010b7
fix(export_model): fix export_model.py python path ( #9571 )
...
1.fix python path to paddlenlp project
2024-12-08 18:35:36 -08:00
yinfan98
753436afe0
【Hackathon 7th No.43】Tokenizer for Gemma ( #9577 )
...
* add gemma tokenizer
* fix lint
* rm version
* Update tokenizer_fast.py
* Update tokenizer_fast.py
2024-12-09 09:42:33 +08:00
tianhaodongbd
cfcd079ca1
Adapting npu for FusedHeadAndCrossEntropy ( #9499 )
...
* Adapting npu for FusedHeadAndCrossEntropy
* wrapper npu function
2024-12-06 16:28:25 +08:00
Liujie0926
a603a49568
[CI] update scripts ( #9547 )
2024-12-06 14:48:54 +08:00
HydrogenSulfate
dfbd8f9e10
[Develop] Update adam ops for support amsgrad ( #9568 )
2024-12-06 11:40:21 +08:00
yinfan98
8bd881434b
【Hackathon 7th No.43】TokenizerFast for GPT ( #9548 )
...
* add qwen2 tokenizer fast
* add qwen2 tokenizer fast
* fix
* add gpt tokenizer fast
* delete print
* Update utils.py
* Update ernie-gen
* Update data_tools
* Update tokenizer.py
* Update tokenizer_fast.py
2024-12-05 14:07:33 +08:00
Siming Dai
fb57a5e137
[Unified Checkpoint] fix load missing keys ( #9523 )
...
* fix load missing keys
* Update check_completion.py
2024-12-05 13:28:25 +08:00
Cheng Yanfei
8d9c341c5a
[Intel_HPU]FSDPA custom kernel API update ( #9556 )
...
* sdpa API update
* sdpa fuse transpose
2024-12-05 11:23:59 +08:00
Longzhi Wang
e6b8e5bfe4
[INFER] Add more model support for speculate_decoding and refactor speculate_decoding ( #9504 )
...
* align the speculative decoding and SPECULATE_BSZ
* add specu_decoding support for Mixtral,qwen2,qwen2-moe
2024-12-05 11:22:17 +08:00
Leo Chen
14ed2a220b
add llama3.1 config ( #9541 )
2024-12-04 19:54:04 +08:00
blacksheep-Aristotle
a2b5e18965
[AutoParallel]: add qwen model_auto and ci ( #9538 )
...
* [AutoParallel]: add qwen model_auto and ci
* [AutoParallel]: add qwen model_auto and ci
* [AutoParallel]:add qwen ci
2024-12-04 16:25:53 +08:00
will-jl944
733059312d
[XPU] qwen2 supports flash_attn on XPU ( #9549 )
2024-12-04 15:32:09 +08:00
Ting
a5ec6bf623
run dpo script support qwen2 ( #9543 )
2024-12-04 09:52:29 +08:00
Yuanle Liu
f7da5a6ac3
[Infer] Delete generate_rank_mapping when export multi cards model ( #9552 )
2024-12-03 20:14:31 +08:00
Siming Dai
c4d79f47f7
Fix multi-threading load_state_dict ( #9464 )
...
* Update model_utils.py
* Update model_utils.py
2024-12-03 16:20:50 +08:00
Siming Dai
2b3d7bf02d
[Unified Checkpoint] fix single card loading without master weights ( #9540 )
2024-12-03 14:21:24 +08:00
Zhong Hui
44b5b0bb7e
[Fix] Update requirements.txt ( #9514 )
2024-12-03 13:15:24 +08:00
Zhong Hui
4d0fd0bdfc
Support call sft training with clone PaddleNLP ( #9516 )
...
* init.
* refactor
* fix import.
* fix error.
* refactor
* fix
* refactor.
* fix
* refine
* fix argument update.
* refactor.
* refactor.
* refactor
* fix typo.
* fix.
* add missing.
* support short call sft training.
* add missing file.
* fix import
* add init file.
---------
Co-authored-by: gongenlei <gongenlei@baidu.com >
2024-12-03 13:09:07 +08:00
Zero Rains
2c1387f9f3
[INFER][LLM] Add the AutoPredictor for inference ( #9445 )
...
* add the AutoPredictor
* decoupling the model loading and predictor loading
* polish the AutoPredictor and AutoModel
2024-12-03 11:38:49 +08:00
yinfan98
7a221ccb0b
【Hackathon 7th No.43】TokenizerFast for Qwen2 ( #9532 )
...
* add qwen2 tokenizer fast
2024-12-02 20:38:54 +08:00
Yuanle Liu
2522bf8b70
[INFER] Fix tune_cublaslt_int8_gemm.py and remove dist_config ( #9520 )
2024-12-02 17:19:18 +08:00
tianhaodongbd
eae8d9f032
support offload/reload optimizer's states for custom device ( #9467 )
2024-12-02 15:34:21 +08:00
Weiguo Zhu
0b6284e00f
[Inference] Update DygraphInferencePredictor ( #9491 )
...
* update DygraphInferencePredictor
* update batch_size
2024-12-02 15:33:07 +08:00
Weiguo Zhu
d45518172d
[CI] Compatible with paddle.where ( #9534 )
...
* fix
2024-12-02 11:55:42 +08:00
zhangbo9674
fc25d3285c
Fix ckpt convert bug1 ( #9522 )
...
* refine log
* refine
* fix
* fix
2024-11-29 19:30:53 +08:00
Ting
741785a3d9
support pp accuracy calculation ( #9379 )
...
* support pp accuracy calculation
* add pp accuracy ci
* add comment
* update
* mv logits accumulation to cpu
* refactor code
* code refactor
* remove ci, not support yet
* update
2024-11-29 14:12:38 +08:00
zhangbo9674
020a25fb86
Fix ckpt convert bug ( #9521 )
...
* refine log
* refine
* refine
* refine
2024-11-29 11:00:12 +08:00
Ting
2985f90327
support quant ckpt limit strategy ( #9494 )
...
* support quant ckpt limit strategy
* bug fix
* bug fix
* fix bug
* add log, fix bug
2024-11-29 10:22:00 +08:00
Weiguo Zhu
756bce7431
update ( #9511 )
2024-11-28 21:48:01 +08:00
Longzhi Wang
049b0b5cf8
Add document for speculative decoding ( #9492 )
...
* Add document for speculative decoding
* update
* update docu
2024-11-28 01:41:27 -08:00
Yuanle Liu
e23214b4c2
Fix csrc readme ( #9515 )
2024-11-28 17:38:06 +08:00
Zhong Hui
5926c30e93
[Refactor] SFTTrainer SFTConfig ( #9318 )
...
* refactor
* fix import.
2024-11-28 17:30:02 +08:00
YUNSHEN XIE
cbe5af14ab
移除CUDA_DEVICE_MAX_CONNECTIONS环境变量, 优化benchmark执行脚本 ( #9500 )
...
* CE case执行移除CUDA_DEVICE_MAX_CONNECTIONS环境变量
* 优化benchmark执行脚本
* update
2024-11-28 15:13:50 +08:00
Walter Wu
3ef14dc19b
Adding LoKrModel Class to paddle.peft library ( #9269 )
...
* passing pre-commit
* removing tp and pp logic for single gpu training
* add disable_lokr attribute in lokr_layer
* refine comments
* add lokr tests and modified layer bug
* add lokrtests
* add lokrtests
* add lokr_argument.json
* add integration test, fix bugs based on tests.
* refactor lora_dim to lokr_dim
* no inference
* add more tests
* resolve merge conflict
* add more randtests
* pass isort check(maybe)
2024-11-27 20:52:07 +08:00
yujun
8d8a42cc85
[BugFix] fix pp eval ( #9505 )
2024-11-27 19:24:09 +08:00
yinfan98
a9a6b80a62
【Hackathon 7th No.43】TokenizerFast for BLOOM ( #9407 )
...
* add bloom tokenizer fast
* fix fast
* Update test_tokenizer.py
* fix lint
* reopen ci
* rerun ci
* fix ci
* fix bloom test
* fix bloom coverage test
* fix bloom coverage test
* add copyright for bert tokenizer fast
* add copyright for bloom tokenizer fast
2024-11-27 14:36:19 +08:00
yujun
b1466d7e6e
[NEW Feature] 新增基于hook的refined_recompute支持 ( #9396 )
...
* 代码实现refined_recompute
* 更新rr的实现,新增单测测试pp和非pp
* update llama and support refined recompute
* update rr
* update
* update create_skip_config_for_refined_recompute config.num_hidden_layers
* update llama pp recompute
* refined recompute only support recompute_use_reentrant=False
* LOD_TENSOR
* typo
* rr 支持qwen模型
* support RRColumnParallelLinear & RRRowParallelLinear
* fix
* update llm test
* fix
* update test_refined_recompute
2024-11-27 10:34:34 +08:00
Yuanle Liu
f5ca96efcd
[LLM INFER] not use gemm_dequant default and fix bug ( #9498 )
...
* not use gemm_dequant default and fix bug
2024-11-26 20:51:11 +08:00
enzodechine
4b02477458
[XPU] set appropriate mask value for xpu ( #9495 )
2024-11-26 16:31:31 +08:00
zhink
0b4b810ae6
[Inference] use fp8 cuda core gemm kernel when M<=4 ( #9423 )
2024-11-26 13:29:41 +08:00
Weiguo Zhu
d6d181b719
[Tokenizer] Support fast tokenizer within AutoTokenizer import ( #9466 )
...
* add tokenizerfast import
* add test case
2024-11-26 12:00:53 +08:00
blacksheep-Aristotle
6141f80b17
[AutoParallel]:fix baichuan d2s fail ( #9478 )
2024-11-26 11:47:11 +08:00
lvdongyi
131888eb2c
[ChatTemplate] Fix chat template for Yuan when answer is contained within question. ( #9485 )
...
* Fix chat template for Yuan when answer is contained within question
* add more models to test
2024-11-26 11:22:49 +08:00
Chang Lu
d9a4e682a1
[AutoParallel] open vpp test cast at v100 machines ( #9468 )
...
* update
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2024-11-26 10:48:37 +08:00
Weiguo Zhu
8fd33a9518
[Fix] Remove data args print ( #9486 )
2024-11-25 15:54:21 +08:00
Longzhi Wang
d68a385fcf
[LLM INFER] Support speculative decoding (llama) ( #9180 )
...
* add specu_decoding custom cuda kernels
* rename the speculate_update kernel to speculate_verify_and_update kernel
* Add the speculate_decoding framework
* Add licence and more comment
* fix top_p_candidates and add cooment for proposer
* fix top_p_candidates
* add static graph support for speculate_decoding
* fix specu_decoding framework
* v1.0: fix accuracy of the framework
* fix custom op
* fix comment and add type annotation
* fix custom_op and speculate_read_res
* update
* update
* add input_ids_cpu for proposers to align with inner implementation
* fix typo
* update and add test
* fix the place of proposers
* fix code lint
* fix test
* remove the unused custom op
* remove the unused custom op
* merge speculate custom op
* fix conflict
* fix typo
* fix typo
* merge custom op and fix code style
* fix circular import
* fix circular import
* fix circular import
* fix typo
* fix import
* fix static
* refactor test
* refactor test
* refactor get_output and save_with_output_msg
* merge the SpeculatePredictor to BlockPredictor
* refactor read_res
* fix conflict and refactor comment
2024-11-24 21:55:21 -08:00
张明明
e3db4c048f
fixbug for chatglm_v2's RetaryEmbedding dtype ( #9476 )
2024-11-24 21:54:15 -08:00
Ting
195fde32b8
[Unified Checkpoint] Checkpoint compression ( #9183 )
...
* checkpoint compression init
* add ckpt quant argument
* add ckpt quant ci
* fix ci
* fix lint
* remove stage O2, change O3 --> O2
* support async save
* file adjustment
* magic string remove
* ci fix
* ci fix, code refinement
* function extraction
* fix ci
* code refinement
* fix ci
* fix ci
* support non merge tp ckpt quantization
* fix ci
* update
* fix bug
* code refactor
* fix lint
* fix ci
* del old uc.py
* fix lint
* add mgpu ci
* fix ci
* multi thread loading
* fix lint
* fix bug
* refactor code
* add comment
* fix lint
* add comment
* add comment
* fix bug
* fix bugs when ckpt no quant and no master weight
* remove uni-test
2024-11-25 11:38:02 +08:00
blacksheep-Aristotle
58a6eb9c03
[AutoParallel]:fix run llama_13b_auto error ( #9480 )
2024-11-25 10:49:17 +08:00
Chang Lu
1ba3bef24b
add param ( #9481 )
2024-11-22 21:27:29 +08:00
lixc
9494e9a380
[Inference]Move quantization code from run_finetune.py to run_quantization.py ( #9450 )
...
* 1. Move quantization code from run_finetune.py to run_quantization.py
2. Remove experimental code about quantization in llm/experimental. These code will merge in Paddleslim.
* repair experimental/ceval
* update readme and remove useless code
* add test for run_quantization
* update wrong comment
* update qwen2 fp8 quantization config
2024-11-22 17:11:26 +08:00
Siming Dai
7bfe5bc006
Fix eval for map dataset ( #9472 )
2024-11-22 14:58:10 +08:00
TranscenderNing
183e01201a
add Moslora ( #9331 )
...
* add mos lora
* add tests
* correct something by comment
* add tests code for coverage rate
2024-11-22 10:15:50 +08:00
blacksheep-Aristotle
1ca1d4992b
[AutoParallel]:gpt 13b model support fused_linear sp fused_attention and add gpt 13b pir ci ( #9477 )
2024-11-22 10:08:58 +08:00
blacksheep-Aristotle
b690222c50
[AutoParallel]: llama_model_auto support alibi ( #9422 )
...
* [AutoParallel]: llama_model_auto support alibi
* [AutoParallel]: llama_model_auto support alibi
* [AutoParallel]: llama_model_auto support alibi
* [AutoParallel]: change model_auto shard logits so change the loss base
* [AutoParallel]: change model_auto shard logits so change the loss base
* [AutoParallel]: fix llama run vpp error when use alibi
2024-11-22 10:08:26 +08:00
TranscenderNing
9ee691ac5f
add reft method ( #8819 )
...
* solve lint error
* resolve test err
* add tests
* dependency error
* add tests for reft
* Supplementary test cases
* Supplementary test cases1
* Supplementary test cases11
* Supplementary test cases111
* correct CI-Unittest error
* correct CI-Unittest error
* correct CI-Unittest error
* correct CI-Unittest error1
* simplify code
* simplify codes
* delete reft
* make lint tidy
* add more tests
* unify trainer and simplify codes
* test predict
* delete nohup
* correct CaualTrainer to SFTTrainer
* test tests
* solve tests question
* solve conflict
* add set_seed
* solve set seed
* gpt3-ci err
* solve gpt3 ci problem
2024-11-21 18:59:28 +08:00
Yuanle Liu
90a1e335fd
fix AutoInferenceModel for qwen-vl ( #9463 )
...
* fix AutoInferenceModel for qwen-vl
* fix AutoInferenceModel for qwen-vl
* fix readme.md in csrc
* fix export_model.py
2024-11-21 18:24:37 +08:00
whf313
6813e40b67
Revised PoSE ( #8822 )
...
* Yarn
* Revise
* Delete paddlenlp/transformers/llama/modeling_new.py
* Delete paddlenlp/transformers/llama/modeling_sparse.py
* Delete paddlenlp/transformers/long_sequence_strategies/embedding_strategies_old.py
* Delete paddlenlp/transformers/long_sequence_strategies/embedding_strategies_yarn.py
* Delete llm/run_finetune_old.py
* Update data.py
* Update test_long_sequence_strategies_pose.py
* Update test_long_sequence_strategies_pose.py
* Create test_long_sequence_strategies_pose.py
* Update and rename test_long_sequence_strategies_pose.py to test_yarn.py
* Delete tests/peft/test_yarn.py
* Update run_finetune.py
* Update pyproject.toml
* Update pyproject.toml
* Add files via upload
* Update pyproject.toml
* Revise
* Revised
* Revised
* Revised
* update
* update
* update
2024-11-21 16:06:41 +08:00
wawltor
5a343cf93a
fixed the init problem in tensor parallel ( #9452 )
2024-11-21 15:26:41 +08:00
HydrogenSulfate
2b8a77b711
Update modeling_auto.py ( #9461 )
...
use paddle.cast instead of Tensor.astype
2024-11-21 15:23:17 +08:00
lvdongyi
872aafa093
[Tokenizer] Fix chat template for Gemma when answer is contained within question ( #9462 )
2024-11-21 10:15:38 +08:00
waliwali777
5ceb930bc3
Fix auto parallel CI exit -6 ( #9460 )
...
* merge two function list
* move env set before func running
* fix
* fix track case result status
* fix
2024-11-20 21:07:04 +08:00
Chang Lu
bd1fd926c5
[AutoParallel] Reconstruct sharding mesh dimension inference logic - Part2 add sharding_mesh_dimension param ( #9382 )
...
* add custom sharding_dim
* Update training_args.py
* Update auto_trainer.py
* Update auto_trainer.py
2024-11-20 20:27:14 +08:00
lugimzzz
d74df4d0ef
add set_seed ( #9429 )
2024-11-20 16:10:27 +08:00
YUNSHEN XIE
db7ed0feac
增加benchmark多机任务执行脚本对于异常退出的处理 ( #9442 )
...
* 处理多机任务CE case的异常退出,增加对于训练日志更新状态的监控
* update
* Set execution variables for CE cases
2024-11-20 15:39:31 +08:00
Weiguo Zhu
590081a968
[LLM] Add expert parallel ( #9368 )
...
* add expert parallel utils
* update gates
* update
* update base methods
* update moe_layer
* update moebase
* add moe_gate and moe_layer for qwen2moe
* add config
* update
* update gate dtype
* update moe gate and layer
* update moe_layer.py
* update
* update
* update token_priority method
* update data type
* remove old moe
* fix moe capacity reduce.Max
* update comment
* lint
2024-11-20 14:57:46 +08:00
Weiguo Zhu
ca1af448f8
[ChatTemplate] Fix chat template when answer is contained within question. ( #9444 )
...
* fix chat template
* remove ans generation_prompt
* fix
* remove split test case
* add comments
* update
* revert fix
* fix qwen2 chat_template
* compatible with python 3.10
* support add token and update chat_template for llama3
* revert llama chat_template
2024-11-20 14:56:57 +08:00
Weiguo Zhu
554941fa7a
update ( #9447 )
2024-11-20 14:56:35 +08:00
Chang Lu
d5a90f74ca
[AutoParallel] add release_gradients and comm_buffer_size_MB to strategy ( #9432 )
...
* add release_gradients and comm_buffer_size_MB to strategy
* Update training_args.py
* add note
* fix codestyle
2024-11-20 13:56:49 +08:00
liym27
79bba4fa35
update conf for sharding overlap in auto_parallel static ( #9456 )
2024-11-19 21:44:36 +08:00
gongel
619c1b9279
refactor tool of creating pretrain dataset ( #9454 )
2024-11-19 20:17:25 +08:00
will-jl944
707240627d
Fix row parallel lora layers parameters initialization bug ( #9427 )
...
* Fix row parallel lora layers parameters initialization bug
* Fix ColumnParallel LoRA layers
* Fix QuantLora param init bug
2024-11-19 17:26:19 +08:00
waliwali777
3fe6aba68e
Reduce long duration for the exit -6 re-run process. ( #9400 )
...
* Reduce long duration for the `exit -6 re-run` process.
* fix
* Add export env
* Add log colorful
2024-11-19 15:58:51 +08:00
lugimzzz
f21329c279
fix pp no drop last ( #9439 )
2024-11-19 14:50:13 +08:00
Siming Dai
801dd74002
Update dist_dataloader.py ( #9451 )
2024-11-19 14:44:22 +08:00
Siming Dai
2ecf7ef484
[DistDataloader] fix eval new_group ( #9438 )
2024-11-18 21:27:09 +08:00
Weiguo Zhu
04291490f7
fix import in py38 ( #9446 )
2024-11-18 19:02:39 +08:00
co63oc
d971b2af4c
Fix ( #9419 )
2024-11-18 18:59:18 +08:00
co63oc
a11367af72
Fix ( #9434 )
2024-11-18 18:58:51 +08:00
Dangweichong
81a2d43c6f
[DCU] update dcu paddlenlp_ops ( #9433 )
2024-11-14 18:58:31 -08:00
Siming Dai
921fc44a4f
[Unified Checkpoint] Support sharding_comm_overlap ( #9392 )
...
* update
2024-11-14 16:08:10 +08:00
Zero Rains
018b5300c4
[INFER][LLM] Add the AutoModel for inference mode ( #9416 )
...
* add the AutoModel for inference mode in dynamic graph
* add the AutoModel for inference mode in static graph
* create AutoInferenceModelForCausalLM class and polish the code
* fix the return result
* add the confirm_inference_model method
* roback the AutoModel
* modify the description
* update
2024-11-13 23:13:49 -08:00
Liujie0926
c9cfa99f4a
[CI]update target_lists_for_llm ( #9417 )
...
* update target_lists_for_llm
* add scripts/regression
2024-11-13 19:30:00 +08:00
Dangweichong
09d2c14c47
fix hip paddle_nlp_ops bug ( #9418 )
...
Co-authored-by: root <root@localhost.localdomain >
2024-11-13 01:09:05 -08:00
Jianbang Yang
2838e80e9d
[XPU] llama swiglu uses Paddle's native swiglu ( #9414 )
2024-11-13 09:24:57 +08:00
zhangbo9674
10a62c7a36
[AutoParallel] refine log ( #9397 )
2024-11-11 17:45:04 +08:00
lugimzzz
b5e3f0cccb
[LLM]add ktotrainer ( #9393 )
...
* add ktotrainer
* fix oom
2024-11-08 16:54:22 +08:00
Liujie0926
5c6279abc3
[CI]fix scripts ( #9394 )
...
* fix ci scripts
* [CI]add recursive for submodule
* [CI]fix
2024-11-08 16:53:08 +08:00
Liujie0926
eca4da486f
[CI] add recursive for submodule ( #9389 )
...
* fix ci scripts
* [CI]add recursive for submodule
2024-11-08 10:28:26 +08:00
risemeup1
140ea48e20
Add submodule ( #9385 )
...
* add submodule
* add submodule
2024-11-07 15:41:18 +08:00
Siming Dai
d526be29d2
[Unified Checkpoint] Support empty state_dict saving ( #9380 )
...
* fix empty state_dict
* update sharding split_parma
2024-11-07 11:39:41 +08:00
tianyuzhou668
2f0b407d4a
[Llama] Support pp + no_recompute_layer. ( #9373 )
...
Co-authored-by: 周天宇 <tianyu.zhou@iluvatar.com >
2024-11-06 17:03:51 +08:00
waliwali777
3971fc7c5f
[AutoParallel] Fix EXCODE bug of AutoParallel CI ( #9355 )
...
* Fix exitcode bug
* Fix `track_case_status` func match bug
* Fix return code
* Fix print_info func with exit -6
* set output format of fail tests
modify verification check failed
2024-11-06 16:18:06 +08:00
gaoziyuan
09778587d6
[LLM INFER] Optimize fuse some kernels in postprocess ( #9201 )
...
* optimize fuse some kernels
* optimize fuse some kernels
* fix top_p reject
* fix
* ci
* fix review
* fix
2024-11-05 19:55:12 -08:00
zhangyuqin1998
19a2e1f5aa
[Auto Parallel] fix adapt_stale_fwd_patch for to_static mode ( #9372 )
2024-11-06 10:24:30 +08:00
Siming Dai
85333aa6ad
[Trainer] Update assert to warning ( #9332 )
...
* mv assert to warning
2024-11-05 14:34:28 +08:00
ShenLiang
9d658a9997
Add check for sharding stage1-v2 using amp master grad ( #9333 )
2024-11-05 14:33:55 +08:00
wanghuancoder
ab62e477a2
refine dtype use ( #9366 )
2024-11-05 14:11:16 +08:00
ShenLiang
565a6ab150
Add offload/reload for optimizer ( #9359 )
...
* support optimizer state offload (#8715 )
* support optimizer offload
* update doc
* [FleetY]offload optimizer state after load optmizer state (#9352 )
* add offload optimizer
* fix memory
* [FleetY] Add reload/offload for optimizer (#9356 )
* add reload/offload for optimizer
* fix bug
---------
Co-authored-by: Guoxia Wang <mingzilaochongtu@gmail.com >
2024-11-05 10:10:09 +08:00
Weiguo Zhu
55a1bcb6d8
fix ( #9363 )
2024-11-05 10:06:58 +08:00
Siming Dai
e2cc3d5ae4
[Unified Checkpoint] Fix fp32 dtype for using newest paddle( #9360 )
2024-11-04 19:23:50 +08:00
Leo Chen
1aa91be7bf
clean print in auto_trainer ( #9357 )
2024-11-04 17:11:12 +08:00
lvdongyi
cd22b0de17
[Tokenizer] Add BertTokenizerFast, support register new tokenizer ( #9353 )
...
* Add , support register tokenizer, fix some typo
* add more tests
* CustomTokenizerFast2->CustomTokenizerFastWithoutSlow
* lint
2024-11-04 16:31:03 +08:00
chen
5217a3b795
[Inference] Append attn FP8 quant ( #9328 )
...
* add fp8 gen files to gitignore
* append_attn support fp8 quant
* Unified FP8 Network
* include cuda_fp8.h
* simplify qwen2 network and FusedBlockMultiTransformerFP8
* simplify llama network and code check
* check fp8 params
* code check
* check
* default config for fp8 gemm
2024-11-03 23:34:29 -08:00
waliwali777
582ff5eb2c
Add CI testing for A100 and V100 device ( #9324 )
...
* Add ci for A100 and V100 device
* Fix device judge
* fix compare of float var
* Add output of test failed
* Fix cal fail test count
* Remove compare_float fun with `!=` to compare
* Fix output of fail tests
* Run gpt-3_dygraph when related files modified
* add track status( fail tests ) for every case
* Add track status of loss verification failed test
* Move output position of every case
* modify `exit` to `return 0`
2024-11-04 10:55:58 +08:00
JZ-LIANG
66c5d65f18
[AutoParallel] Hang Bugfix for VPP-Sharding ( #9336 )
...
* bugfixed
2024-11-01 16:54:27 +08:00
ShenLiang
ba5c2ca330
Add ordered save to avoid OOM ( #9347 )
2024-11-01 14:52:33 +08:00
Weiguo Zhu
71dafa679f
[Tokenizer] Support adding special tokens to Qwen tokenizer ( #9344 )
...
* update qwen tokenizer
* add test case
2024-11-01 14:33:33 +08:00
Weiguo Zhu
149cfa8789
[Docs] Add precision alignment doc ( #9346 )
...
* add precision alignment doc
2024-11-01 14:32:48 +08:00
Weiguo Zhu
8279b14497
[Tokenizer] Fix Llama3Tokenizer import ( #9341 )
2024-10-31 17:05:07 +08:00
Weiguo Zhu
483fff4adb
Compatible with Tensor.to change to out_of_place. ( #9343 )
2024-10-31 15:38:30 +08:00
Cheng Yanfei
ce083f0739
[intel_hpu] initial commit for intel_hpu support ( #9273 )
...
* add intel hpu device
* add wa for intel hpu
---------
Co-authored-by: Zhai Feiyue <feizhai@habana.ai >
2024-10-31 11:13:21 +08:00
Leo Chen
26b73c2644
align default custom black/white list for dygraph and static graph ( #9340 )
2024-10-30 23:10:25 +08:00
lvdongyi
ec25cb8c84
[Tokenizer] Support reading Tiktoken tokenizer.model. ( #9215 )
...
* add support of tiktoken tokenizer, refactor some code
* add case of built-in tokenizers to handle CI error
2024-10-30 12:03:38 +08:00
Weiguo Zhu
f5f9d8524c
Update README.md ( #9339 )
2024-10-30 11:50:38 +08:00
Siming Dai
78f911afb1
Update load_save_single_card.py ( #9337 )
2024-10-30 09:48:40 +08:00
Weiguo Zhu
3f1787fdf2
[Docs] Update flashmask ( #9330 )
...
* Update flashmask.md
* update link
2024-10-29 19:19:42 +08:00
Leo Chen
ec3973793d
fix parameter calculation in auto_parallel mode ( #9327 )
2024-10-29 16:48:47 +08:00
Yuanle Liu
9575245c7b
fix bug ( #9335 )
2024-10-29 15:20:01 +08:00
Yuanle Liu
f0aa672220
[LLM INFER] add rope_theta for block_multihead_attention ( #9334 )
...
* add rope_theta for block_multihead_attention
2024-10-29 15:13:13 +08:00
bukejiyu
975d5c72e4
[Inference] fix paddle cpu docs. ( #9299 )
2024-10-29 11:29:06 +08:00
Siming Dai
ce3a1ce11e
[Unified Checkpoint] update non-merge checkpoint loading, move async_save_info.json location ( #9321 )
...
* [Unified checkpoint] update optimizer async save signal
* update async_save_info.json file place
2024-10-28 20:41:59 +08:00
Mangodadada
394aadaf83
fix readme ( #9326 )
...
Co-authored-by: huxinye <2392038429>
2024-10-28 20:07:03 +08:00
Mangodadada
2993974626
add flash_attention on model chatglm_v2 ( #9296 )
...
* add flash_attention on model chatglm_v2
* add flash attn and consider sequence parallel
---------
Co-authored-by: huxinye <2392038429>
2024-10-28 20:06:27 +08:00
Weiguo Zhu
7e37028bc0
Update QR code ( #9325 )
2024-10-28 17:51:50 +08:00
idontkonwher
05ae377f92
[METAX] Support llama for MX C550 ( #9186 )
...
* [METAX] Support llama for MX C550
* fix typo, add paddlenlp branch, add greedy strategy for demo
* add MXMACA software stack acquisition path
2024-10-28 15:32:17 +08:00
Siming Dai
c9d5673416
[Unified Checkpoint] Add split param and refactor code ( #9240 )
...
* [Unified checkpoint] update optimizer async save signal
* update paddlepaddle
* split param
* add save for split param
* fix save split_param
* add load uc split_param
* update uc files
* update uc files
* update split_param loading
* mkdir unified_checkpoint directory
* rename file
* update async handler
* update files
---------
Co-authored-by: gongenlei <gongenlei@baidu.com >
2024-10-28 13:14:11 +08:00
Yuanle Liu
81f5ab5452
update llm infer docs ( #9314 )
...
* update llm infer docs
* update
2024-10-25 18:43:08 +08:00
lugimzzz
81ffc78715
[Doc] Add flash mask ( #9219 )
...
* add flash mask
* translate
* translate
* update introduction
2024-10-25 16:19:12 +08:00
Yuanle Liu
2e8b220eb8
[LLM INFER] Fix some bugs and chatglm_v2 support block_attn ( #9271 )
...
* chatglm2 support block_attn and fix some bugs
* fix ci
* fix more ut error
* update
2024-10-25 15:06:23 +08:00
Lucas
b237ba7868
[XPU], support unified ckpt function ( #9312 )
2024-10-25 14:54:21 +08:00
Zhong Hui
2bf3d7f27e
[TRL] Rename sft trainer. ( #9292 )
...
* rename sft trainer.
2024-10-25 14:08:20 +08:00
wawltor
75f44ef747
change the directory legacy to slm ( #9311 )
2024-10-25 10:52:59 +08:00
gongel
ff7ee8ade8
Fix non-pipelayer to distributed ( #9310 )
2024-10-24 17:51:50 +08:00
CrystalX
75517304a7
[Unified Checkpoint] Accelerate loading checkpoint by multi-thread ( #9034 )
...
* [Unified Checkpoint] speed up loading checkpoint by multi thread
* [Unified CHeckpoint] speed up load by multi-thread
* [Unified CHeckpoint] speed up load by multi-thread
* [Unified CHeckpoint] speed up load by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
* Unified CHeckpoint] speed up loading checkpoint by multi-thread
2024-10-24 14:18:16 +08:00
Leo Chen
6211e3d38f
clean llama static modeling file ( #9301 )
...
* clean llama static modeling file
* update readme
* fix
---------
Co-authored-by: wangnian01 <wangnian01@baidu.com >
2024-10-23 16:42:37 +08:00
Jianbang Yang
0102f311b4
[Tokenizer] Fix TokenizerFast missing clean_up_tokenization_spaces ( #9304 )
2024-10-23 15:17:23 +08:00
zhangyuqin1998
a564483f67
[Auto Parallel] fix bugs for split_batches_for_accumulation && fix bu… ( #9217 )
...
* [Auto Parallel] fix bugs for split_batches_for_accumulation && fix bugs for enable_delay_scale_loss
* add enable_delay_scale_loss flag for auto_parallel
* fix ut
* Update ci_case_auto.sh
2024-10-23 15:16:00 +08:00
Yuanle Liu
31c6b9a670
[LLM INFER] Append attn ( #9244 )
...
* refine paddle::empty(), fix memory error, support multi_stream for attention
* fix and rename attention as append_attention
* rename file
---------
Co-authored-by: lizhenyun <lizhenyun@baidu.com >
Co-authored-by: lizhenyun01 <1500424927@qq.com >
2024-10-23 12:06:53 +08:00
lugimzzz
3443b9f097
fix lora sharding v2 ( #9300 )
2024-10-22 20:37:18 +08:00
Yuang Liu
51f6a4b2fa
[XPU] bug fix for xpu_parallel_matmul tensor parallel output. ( #9297 )
2024-10-22 16:25:42 +08:00
Weiguo Zhu
76a118b808
[FlashMask] Add FlashMask for Qwen2 ( #9264 )
...
* add flashmask
2024-10-21 15:05:49 +08:00
Guoxia Wang
220cc95c48
Support attention mask using causal=True for Baichuan 13B ( #9268 )
2024-10-21 11:10:31 +08:00
Weiguo Zhu
fe8b527a59
[CI] Fix llm/alignment/rm/flashmask path ( #9289 )
...
* fix llm/alignment/rm/flashmask
* update
2024-10-19 22:22:43 +08:00
Weiguo Zhu
1770b51ac6
[Tokenizer] Unify tokenizer _pad ( #9280 )
...
* add test cases for 3D attention_mask and attn_mask_startend_row_indices
* update attn_mask_startend_row_indices return type
2024-10-18 15:22:23 +08:00
Weiguo Zhu
b62ae984a5
[LLM] Add deepseekv2 ( #9250 )
...
* add deepseekv2
* update softmax_scale and attn_weights
---------
Co-authored-by: huxinye <2392038429@qq.com >
2024-10-18 14:39:10 +08:00
Weiguo Zhu
1dc6e18c48
[CI] Skip inference test cases ( #9270 )
...
* skip inference test cases
2024-10-18 14:09:03 +08:00
Siming Dai
2b975b1974
[Trainer] fix save_model ( #9286 )
...
* bug fix
* bug fix
2024-10-17 23:23:32 +08:00
Weiguo Zhu
5244e615a6
[Tokenizer] Enable padding_side as call time kwargs ( #9258 )
...
* enable padding_side as call time kwargs
* [padding_size] Compatible with self._pad without padding_size
---------
Co-authored-by: lvdongyi <lvdongyi1222@gmail.com >
2024-10-17 19:30:23 +08:00
zhangbo9674
5d45695d02
[AutoParallel] Change llama test from sharding stage2 to stage1 ( #9281 )
2024-10-17 17:45:21 +08:00
Siming Dai
823d69f789
[BugFix] Fix async hang ( #9276 )
...
* update async save signal
* fix async save hang
2024-10-17 12:13:43 +08:00
Mangodadada
cf0f478865
[DOC] Add config file for model chatglm2,gemma,yuan ( #9139 )
...
* add config file for model chatglm2,gemma,yuan
* fix dpo.md file, add soft link, fix readme.md
---------
Co-authored-by: huxinye <2392038429>
2024-10-16 19:18:04 +08:00
Siming Dai
697a4cc59e
[Unified Checkpoint] update async save logic ( #9274 )
...
* update async save signal
* fix async save hang
2024-10-16 14:53:20 +08:00
lugimzzz
b090f18a3e
change dataset ( #9266 )
2024-10-16 11:48:18 +08:00
liym27
e9532bc8c2
Fix tests for pass paddle AutoParallel CI ( #9267 )
2024-10-15 19:35:24 +08:00
Weiguo Zhu
5ad7a9c376
[Unified Checkpoint] Fix generation config save ( #9223 )
2024-10-14 22:40:03 +08:00
LiYuRio
0e96b0f37e
Cherry-pick some PRs from incubate/paddlenlp-fleety ( #9253 )
...
* support pp-sharding reshard (#9153 )
* support best unbalaced pp scheduler (#9235 )
* remove pp hack (#9189 )
---------
Co-authored-by: Meiyim <chenxuyi@baidu.com >
2024-10-14 17:00:52 +08:00
Yuanle Liu
3007c7912d
[BugFix] fix pir dt2st ( #9251 )
2024-10-14 14:35:49 +08:00
Siming Dai
d46bc06fd2
[Unified Checkpoint] Support expert parallel ( #9055 )
...
* update code
2024-10-14 11:37:08 +08:00
sneaxiy
80916db4cf
Cherry-pick some PRs from incubate/paddlenlp-fleety ( #9245 )
2024-10-12 16:41:48 +08:00
Yuanle Liu
04f3c20f37
[PIR] fix pir open bugs ( #9248 )
2024-10-12 10:36:58 +08:00
vivienfanghuagood
8a43b0f841
[CI] Reduce the time spent on git downloading third-party libraries ( #9246 )
2024-10-12 10:35:34 +08:00
Yuanle Liu
156182e715
[INFER] update tune_cublaslt_gemm op and fix some bugs ( #9222 )
2024-10-11 14:26:10 +08:00
gaoziyuan
f9eb62edc4
[LLM INFER] top_p_sampling_reject support top_p=0 and custom seed ( #9202 )
...
* fix top_p reject
2024-10-11 14:22:33 +08:00
zhangyuqin1998
ea37a6971e
[Auto Parallel] Adding align mode support ( #9150 )
2024-10-11 11:52:59 +08:00
Weiguo Zhu
8b2cc08193
[version] update version info ( #9241 )
2024-10-11 09:41:44 +08:00
Zhong Hui
d2d0ae6aa8
[CI] Fix ci import. ( #9239 )
...
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-10-10 20:17:05 +08:00
zhangbo9674
0040a6068f
[AutoParallel] Add test for fuse_ffn and fuse_attention_qkv pass ( #9203 )
...
* add ut
* add ut
* sovle conflict
* sovle conflict
* fix
2024-10-10 13:16:39 +08:00
Hanyonggong
37c211adf0
[LLM] Add tools for parameters ( #9137 )
...
* add tools
2024-10-10 11:19:06 +08:00
Chang Lu
dbd3947542
fix ut ( #9228 )
2024-10-08 19:21:09 +08:00
LixinGuo
7be935cd9a
[CI] Fix auto ci return bug when run in v100 ( #9216 )
2024-10-08 17:16:19 +08:00
Chang Lu
75f5031dac
[AutoParallel] add vpp align and pp amp test ( #9176 )
...
* add vpp test
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* add new test
* add new test
* Update ci_case_auto.sh
2024-10-08 15:44:16 +08:00
Guoxia Wang
1fc942924d
compatible with flashmask API rename upgrade ( #9019 )
2024-09-30 11:28:47 +08:00
Wennie396
c2fcc3e0bc
[AutoParallel] Move some auto_parallel args into class AutoTrainingArguments ( #9155 )
2024-09-30 11:02:54 +08:00
Weiguo Zhu
db80bddc50
[Models] Add Llama-3.2 ( #9199 )
...
* add llama3.2
2024-09-27 17:36:24 +08:00
LixinGuo
1694d7c00b
Fix ci not set no_proxy and modify tests in pir mode ( #9205 )
2024-09-27 15:34:54 +08:00
Yuanle Liu
0289118c9b
[LLM_INFER] Support quantized model from bos and fix docs ( #9197 )
...
* llama A8W8 support skip_scale
* support top_k
* qwen2 support skip scales
* merge develop
* add comment
* support quantized model from bos
---------
Co-authored-by: minghaipeng <minghaipeng@baidu.com >
2024-09-27 12:35:39 +08:00
lugimzzz
b2e4db2dcd
Add FlashMask reward model ( #9154 )
2024-09-27 11:26:25 +08:00
Siming Dai
31e47a5a89
[Unified Checkpoint] update async_save_info in develop ( #9173 )
2024-09-26 16:25:56 +08:00
Weiguo Zhu
f80a051337
Skip dynamic to static test cases ( #9196 )
2024-09-25 23:49:11 +08:00
zhangbo9674
1b8f37f632
[AutoParallel] Fix ckpt convert bug for sharding v2 ( #9179 )
2024-09-25 23:48:52 +08:00
zhangbo9674
1ce2642efb
[AutoParallel] Add FLAGS_enable_fused_ffn_qkv_pass for llama ( #9182 )
2024-09-25 23:48:13 +08:00
Ti Zhou
c62390157d
[XPU] add xpu support for llama sft ( #9152 )
...
Co-authored-by: tizhou86 <tizhou86@users.noreply.github.com >
2024-09-25 16:14:20 +08:00
Zhong Hui
c4d3a2f19d
Revert "[Tokenier] Enable padding_side as call time kwargs ( #9161 )" ( #9192 )
...
This reverts commit c5e6db56a3 .
2024-09-25 15:43:36 +08:00
lvdongyi
c5e6db56a3
[Tokenier] Enable padding_side as call time kwargs ( #9161 )
2024-09-24 12:05:22 +08:00
LixinGuo
cd4e81640e
[CI] remove run_pretrain_auto_static.py CI when open PIR ( #9177 )
2024-09-23 17:25:57 +08:00
greycooker
ad14dc4f46
[Trainer] Support skip data intervals ( #8989 )
...
* support skip data intervals
* add debug_data arg
* fix loss compute
* remove callback while skip data
* remove debug data
* add callback_handler
* remove debug_data
* fix conflict
2024-09-23 14:59:26 +08:00
Zhong Hui
353d2785a2
[Tools] Rename tool_helpers to fast_dataindex. ( #9134 )
2024-09-23 14:39:11 +08:00
lugimzzz
bc55104def
[LLM][TRL] Support DPO with Pipeline Parallel ( #9039 )
...
* support dpo/kto pp
2024-09-20 18:01:57 +08:00
JZ-LIANG
8212b53cba
[AutoParallel] enable ci for dp amp clip ( #9062 )
...
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2024-09-20 16:51:48 +08:00
chen
c4f7acf454
[Inference] FP8 dual gemm auto-tune and support compile parallelization ( #9151 )
...
* fp8
* check
* check
* check
* check
* cutlass fp8
* fp8 chech
* check
* ffn1 tune
* delete
* check
* change file path
* top_p_sampling_reject.cu
2024-09-20 01:23:01 -07:00
Zhong Hui
25a5b4fa1b
Update README.md ( #9160 )
2024-09-20 16:12:47 +08:00
Weiguo Zhu
7deb33c194
[Models] Add Qwen2.5 ( #9157 )
2024-09-20 15:46:56 +08:00
gaoziyuan
907ad20496
【Inference】Optimize top_p kernel performance ( #9132 )
...
* add top_p kernel
* fix code style
2024-09-20 11:52:18 +08:00
Weiguo Zhu
c93bada815
[Tokenizer] Fix decode output with space in decode_token ( #9010 )
...
* fix
* fix
2024-09-19 16:31:39 +08:00
lvdongyi
90cef20408
[Tokenizer] Add replace_additional_special_tokens parameter to add_special_tokens ( #9144 )
2024-09-19 11:35:06 +08:00
LixinGuo
7faad55567
Fix llm ce predict run error ( #9149 )
...
* fix llm ce predict run error
2024-09-19 11:29:20 +08:00
Weiguo Zhu
a6cf8826af
[Docs] Update LLM docs ( #9143 )
...
* sync llm to docs/llm
* update pre-commit config
* update pre-commit config
2024-09-18 19:51:16 +08:00
Ferrebo
0540e97c50
[Fix] freeze shard-reshard ( #9067 ) ( #9148 )
2024-09-18 16:59:43 +08:00
a31413510
4503dd3000
add multy devices supported models ( #9079 )
2024-09-18 15:31:57 +08:00
Jingqi Chen
e340457ece
[LLM Inference] Qwen2_Moe Support wint4 ( #9129 )
...
* support wint4
* fix codestyle
2024-09-14 18:35:51 +08:00
Weiguo Zhu
d90617105a
[DOC] Update docs ( #9141 )
...
* update doc
2024-09-14 16:02:44 +08:00
lixc
0832b5934b
[Inference] Update fakequant ( #9140 )
...
* add a8w8(fp8) a8w8c8(int8) quant_type support
* add llama3.1 and qwen2 ptq config
* reformat quantization.md and argument.py
* update prepare data method for ceval ptq
* fix wint4 config bug
* use independent avg/abs_max observer
* rename fp8 quant_type
* update quantization.md
* remove ceval in run_finetune.py
2024-09-14 14:35:45 +08:00
zhangyuqin1998
e9338c24b9
[Auto Parallel] Fix ckpt_converter for auto_parallel ( #9136 )
2024-09-14 10:19:15 +08:00
zhangbo9674
089a3c3b3f
[Benchmark] Fix amp level bug in some gpt tests ( #9116 )
2024-09-13 16:40:25 +08:00
Zhong Hui
5c1779c8bd
[Feature] Add hardware flops for pretraining ( #9069 )
...
* fix hardware tflops.
* Support mfu for pretraining.
2024-09-13 14:53:07 +08:00
Ryan
e2f4c33d5e
[DOC] Update quick_start.rst ( #9127 )
2024-09-13 14:33:28 +08:00
Weiguo Zhu
11252bcc89
[Fix] Remove ring_flash_attention warning ( #9119 )
...
* fix
2024-09-13 14:25:32 +08:00
wanghuancoder
399490b7b7
fix pir dtype ( #9130 )
2024-09-13 12:06:10 +08:00
Ruibiao Chen
cd3dc95814
Add fast_ln spmd rules ( #9125 )
2024-09-13 12:05:24 +08:00
chen
db270d91b7
[Inference]qwen2-a8w8c8 support use_fake_parameter ( #9109 )
...
* use_fake_parameter
* fixed qwen2 and llama fake data. support qwen2 multi-card inference
* check
2024-09-12 19:24:19 +08:00
Siming Dai
93a9b2cd8d
[Unified Checkpoint] Fix uc lora config, fix release_grads ( #9082 )
...
* [Unified checkpoint] update optimizer async save signal
---------
Co-authored-by: gongenlei <gongenlei@baidu.com >
2024-09-12 17:49:21 +08:00
Jingqi Chen
d3302c5515
[LLM Inference] Support Qwen2_Moe Inference with MultiGPU ( #9121 )
...
* Support Qwen2-57B-A14B
* Fix codestyle
2024-09-12 13:23:11 +08:00
zhangbo9674
51b54d236f
[AutoParallel] Fix add ut ( #9120 )
2024-09-12 11:03:28 +08:00
chen
3675ea2d90
[Inference] FP8 gemm auto-tune ( #9094 )
...
* fp8 cutlass gemm tune
* git ignore third_party
* check csrc/readme.md
2024-09-11 21:21:04 +08:00
duanyanhui
73a3db98d6
[DCU] fix DCU w8a8c8 GEMM shape ( #9115 )
2024-09-11 21:18:13 +08:00
gaoziyuan
ba9c345ec1
【Inference】fix step kernel ( #9122 )
...
* fix step.cu when setting FLAGS_allocator_strategy=auto_growth
2024-09-11 18:51:14 +08:00
Hongwen Xin
af23e2db5c
[Bugfix] fix multi-gpu infer ( #9107 )
2024-09-10 14:42:43 +08:00
lixc
98062936c2
remove ceval from run_finetune ( #9100 )
2024-09-10 10:54:49 +08:00
JZ-LIANG
33fc7ff1ee
[AutoParallel] Enable CI for gradclip ( #9059 )
...
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2024-09-10 10:39:54 +08:00
zhangbo9674
2f31866d9c
[AutoParallel] Disable UT ( #9108 )
2024-09-09 19:56:02 +08:00
Tian
d245d0787f
[LLM] fix trainer on npu ( #9101 )
2024-09-06 23:16:27 +08:00
Siming Dai
c90dc87949
[CI] Fix paddlepaddle install ( #9102 )
...
* [Unified checkpoint] update optimizer async save signal
* update paddlepaddle
---------
Co-authored-by: gongenlei <gongenlei@baidu.com >
2024-09-06 22:56:48 +08:00
AIbin
2150ae3539
fix use paddle.incubate.jit.inference(model) errors ( #9016 )
...
* fix use paddle.incubate.jit.inference(model) errors
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
* fix jit_inference function
2024-09-06 17:35:27 +08:00
LixinGuo
ce0c0e73c5
Fix baseline because of PR#8769 ( #9092 )
2024-09-06 14:31:01 +08:00
yujun
7783744531
[data] update tool_helpers version and add unittest ( #9093 )
2024-09-06 12:18:19 +08:00
SevenSamon
f4cff9665e
[LLM] Add tensor parallel for chatglmv2 ( #9014 )
...
* fix_chatglmv2_8k
2024-09-05 20:57:10 +08:00
EnflameGCU
1ef3ec2de8
[GCU] update readme ( #9046 )
2024-09-05 15:12:07 +08:00
Sonder
235f09f363
[PIR] add pir grad merge test ( #9074 )
...
* add test
* change task name
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2024-09-05 14:34:23 +08:00
LixinGuo
0854287269
Fix llm predict install error ( #9088 )
...
* fix llm predict install error
2024-09-05 14:10:46 +08:00
zhengzhonghui
951e3d45d5
Fix hang when Flag_dataloader_use_file_descriptor=True ( #9080 )
2024-09-05 11:19:27 +08:00
zhangyuqin1998
8ee99a46b7
[Auto Parallel] fix data stream bug of dist.to_static ( #9077 )
2024-09-05 09:40:49 +08:00
lixc
70da48252f
[Inference] Fix weight_only_int4 bug ( #9073 )
2024-09-04 16:53:38 +08:00
Hanyonggong
fbbc0a2676
Fix the memory overflow bug of the tune_cublaslt_gemm operator ( #9076 )
...
* fix bug
* add cudacheck
2024-09-04 14:25:25 +08:00
Weiguo Zhu
9939f8451c
[MLU] Fix Llama attrntion_mask in npu and mlu ( #9075 )
...
* fix
2024-09-03 20:47:23 +08:00
ronnywang
4e7fb49f27
[NPU] Fix baichuan2-13b-chat infer ( #9070 )
2024-09-03 11:19:15 +08:00
Weiguo Zhu
a4fbc5221f
[Version] update version info ( #9060 )
...
* update version
* update
* update
* update
2024-09-03 09:32:49 +08:00
chen
84469d61e8
[Inference] Qwen2 support fp8 inference ( #8954 )
...
* qwen2 fp8
* fp8 check
* fp8 cutlass
* int8 cachekv
* a8w8c8_fp8
2024-09-02 21:02:43 +08:00
chen
a275ab7a47
[Inference] support llama3 a8w8c8_fp8 inference and cutlass_fp8_gemm ( #8953 )
...
* fp8
* check
* check
* check
* check
* cutlass fp8
* fp8 chech
* check
* support int8 kv cache
* a8w8c8_fp8
* Copyright check
---------
Co-authored-by: ckl117 <ck117@163.com >
2024-09-02 18:50:53 +08:00
PeiyuLau
a12781f928
Support rms_norm_mlu ( #8504 )
2024-09-02 16:57:14 +08:00
Sonder
e204b6db31
[AutoParallel][PIR] Fit pir grad merge ( #8985 )
...
* fit pir llm grad merge
* fit code style
* add grad merge llama test
* Update run_pretrain_auto.py
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* Update ci_case_auto.sh
* remove test
* Update ci_case_auto.sh
* Update ci_case_auto.sh
2024-09-02 12:39:08 +08:00
lixc
cda9594dce
[Inference] Update fakequant script ( #9054 )
...
* 1. add a8w8(fp8) a8w8c8(int8) quant_type support
2. add llama3.1 and qwen2 ptq config
3. update quantization.md
* fix load_quant_model bug
* fix load quant bug
* update ll/README.md
* remove useless code
* update quant observer config
* resolve wrong modify
* fix prepare_qconfig
* remove unuse files
* update quantization.md
* reformat quantization.md and argument.py
* update prepare data method for ceval ptq
2024-09-02 10:50:44 +08:00
xuzhang
116841a089
fix bos download ( #9023 )
...
* fix bos download
* add test
* update
2024-09-02 10:43:20 +08:00
greycooker
90863b14b2
[Trainer] Add dp degree init ( #9056 )
2024-08-30 17:00:16 +08:00
Zhong Hui
3ec9a1ad32
Update quantization.md ( #9057 )
2024-08-30 16:41:29 +08:00
Meiyim
3ee8ab79d8
[Trainer] Fix moe save load ( #9045 )
...
* fix `upload signal` under pure dp and dp-moe (#8874 )
---------
Co-authored-by: Ferrebo <kebo01@baidu.com >
2024-08-30 11:29:22 +08:00
liym27
312d41c419
[AutoParallel] Add test ( #9015 )
2024-08-30 11:11:54 +08:00
lixc
e0ba7ef923
[Inference] update fakequant support ( #9047 )
...
* 1. add a8w8(fp8) a8w8c8(int8) quant_type support
2. add llama3.1 and qwen2 ptq config
3. update quantization.md
* fix load_quant_model bug
* fix load quant bug
* update ll/README.md
* remove useless code
* update quant observer config
* resolve wrong modify
* fix prepare_qconfig
* remove unuse files
2024-08-29 22:19:19 +08:00
gaoziyuan
c28caf70b0
[Inference] Add cutlass gemm dequant op ( #8909 )
...
* change gpu name
* add cutlass gemm_dequant op
* add cutlass gemm_dequant op
* fix format
* fix fused_transformer_layers
* fix layer
* fix layer
* fix format
* fix format
* fix review
* fix review
* fix review
* fix review
* fix review
* fix review
* fix review
2024-08-29 20:58:38 +08:00
Yuanle Liu
a18e220c32
Fix setup.py for llm inference ( #9041 )
2024-08-29 11:42:00 +08:00
Hongwen Xin
47a95422d8
[Bugfix] fix bias optional ( #9037 )
2024-08-29 11:33:10 +08:00
lugimzzz
7be1e1663f
[llm]support pad to max_length & fix sp bug ( #9040 )
...
* add sp hook
* support zero padding pad to max_length
* support finetune pad to max_length
2024-08-29 11:20:25 +08:00
Siming Dai
59568226eb
[Unified Checkpoint] Update async save info ( #8982 )
...
* [Unified checkpoint] update optimizer async save signal
* [Unified Checkpoint] Update async save info
2024-08-29 11:11:03 +08:00
ShenLiang
ae691e21a0
[Cherry-pick] add comm buffer size ( #8963 ) ( #9031 )
...
* add comm buffer size (#8963 )
* add doc
2024-08-29 10:24:40 +08:00
ShenLiang
5eb8d034ae
Fix checker of nan/inf ( #9029 )
...
* fix checker position for nan/inf
* fix checker position for nan/inf
2024-08-29 10:24:13 +08:00
lixc
19927ba5c2
[Inference] Add a8w8(fp8) a8w8c8(int8) quant_type support ( #9032 )
...
* 1. add a8w8(fp8) a8w8c8(int8) quant_type support
2. add llama3.1 and qwen2 ptq config
3. update quantization.md
* fix load_quant_model bug
* fix load quant bug
* update ll/README.md
2024-08-28 22:21:56 +08:00
Weiguo Zhu
3e7c5caa4a
[Tokenizer] Support for loading added_tokens_decoder ( #8997 )
...
* fix added_tokens_decoder load
* fix decode
* fix saving and loading added_token_decoder
* fix mamba
* fix special_tokens_map_file load
* fix gemma tokenizer
* fix llama tokenzier
* revert llama tokenizer
* fix _decode
2024-08-28 20:38:07 +08:00
sneaxiy
c656452634
[Cherry-pick] Add is_distributed field in sharding reshard param_meta ( #9028 )
2024-08-28 20:05:15 +08:00
wawltor
ae02a3c1a2
fix the recompute for recall model.
2024-08-28 19:29:31 +08:00
wawltor
9b442c8bef
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2024-08-28 19:24:50 +08:00
bukejiyu
25a6d4e96b
update cpu inference ( #8984 )
2024-08-28 19:16:09 +08:00
Yuanle Liu
2f567e6bf4
fix llama3 static run ( #8849 )
2024-08-28 16:09:43 +08:00
Jingqi Chen
34a71c8242
supprot qwen-moe ( #8892 )
...
Co-authored-by: yuanlehome <yuanlehome@163.com >
2024-08-28 11:50:00 +08:00
Sunny-bot1
a2f9558a81
llm inference docs ( #8976 )
...
* update inference docs
* update
* update
* update
* update
* fix comments
* fix comments
* fix comments
* update inference.md
2024-08-27 22:16:39 +08:00
Hongwen Xin
f6fc7ff64f
[Feature] fused mixtral wint4 ( #9013 )
...
* [Feature] fused mixtral wint4
* [Refactor] refine code
2024-08-27 17:40:02 +08:00
zhangbo9674
a0609e8c3f
Refine checkpoint converter ( #9001 )
...
* refine
2024-08-27 16:10:09 +08:00
Yuanle Liu
48820cbc1f
Fix step.cu bug ( #8995 )
2024-08-27 10:58:54 +08:00
Weiguo Zhu
56d293dd77
Fix zero_padding ( #9003 )
2024-08-26 21:04:22 +08:00
zhengzhonghui
24fa97ee43
Fix qwen model use_casual_mask ( #9009 )
2024-08-26 19:22:47 +08:00
EnflameGCU
154928a0f5
[GCU] Add gcu llama2-13b readme ( #8950 )
2024-08-26 17:31:09 +08:00
xiguapipi
3ef7c1ba72
[XPU] Add README.md for llama2-7b ( #8979 )
...
* [xpu]add README.md for llama2-7b
* [xpu]add README.md for llama2-7b
* [xpu]rm readme.md
* [xpu]modify README.md for llama2-7b
* [xpu]modify README.md for llama2-7b
* [xpu]modify README.md for llama2-7b
2024-08-26 14:23:36 +08:00
Hongwen Xin
31cc283f07
[Feature] Fused Mixtral support ( #8901 )
...
* [Feature] Fused Mixtral support
* [Refactor] add MoeConfig and fix static graph export problem
* [Bugfix] fix small bug
* [Bugfix] fix moe_config bug
* [Bugfix] fix moe_config bug
* [Refactor] refine code
* [Refactor] refine code
* [Refactor] refine code
* [Refactor] match fused moe api change
* [Feature] wint8 support
2024-08-26 11:47:30 +08:00
lugimzzz
9f6b486501
【llm】update docs ( #8999 )
...
* update readme
* update readme
---------
Co-authored-by: DesmonDay <908660116@qq.com >
2024-08-26 10:22:08 +08:00
ShenLiang
8e1f6e6a76
[Distributed]Add loss nan/inf checker ( #8943 )
...
* add checker
* fix fp16
2024-08-23 16:14:09 +08:00
duanyanhui
1ea1f5079f
[DCU] Add DCU inference docs ( #8983 )
2024-08-23 16:13:43 +08:00
yujun
de1dc17de0
Upgrade tool_helpers to support 32766个dataset. ( #8994 )
2024-08-23 14:26:58 +08:00
lugimzzz
3c4d157500
update finetune.md ( #8990 )
...
Co-authored-by: DesmonDay <908660116@qq.com >
2024-08-23 14:02:48 +08:00
xingmingyyj
aaacb3272f
[auto_parallel] Add checkpoint convertor ( #8847 )
...
* Add the checkpoint conversion module
2024-08-22 18:11:26 +08:00
LixinGuo
38dd5700a6
Fix pip error in legacy benchmarks ( #8978 )
...
* fix pip error
2024-08-22 16:52:29 +08:00
zhangyuqin1998
56dba6d225
[Bug fix] fix skip consumed_samples twice bug ( #8980 )
2024-08-22 15:13:33 +08:00
winter-wang
cf3a672617
fix the loss base in llama_align_dygraph_dy2st_auto_bs2_bf16_DP2-MP1-PP1 for A100 ( #8986 )
2024-08-22 14:49:10 +08:00
Mangodadada
dd909d1330
更正run_dpo.py文件路径 ( #8952 )
2024-08-21 19:03:45 +08:00
Siming Dai
1191a51e91
[Unified checkpoint] update optimizer async save signal ( #8975 )
2024-08-21 17:12:16 +08:00
winter-wang
5f6998f32d
add amp unit test case for auto_parallel ci. ( #8966 )
2024-08-21 15:14:41 +08:00
Weiguo Zhu
30a2ac6d90
[ZeroPadding] padding to max_length for sequence parallel ( #8973 )
...
* fix zero_padding for sequence parallel
2024-08-21 15:09:43 +08:00
zhengzhonghui
d505a97727
Fix qwen benchmark ( #8969 )
2024-08-21 11:35:43 +08:00
zhangbo9674
fbe1fae140
[Auto Parallel] Support save model file ( #8927 )
2024-08-21 11:16:09 +08:00
Siming Dai
0136312b74
[Unified Checkpoint] update async save ( #8801 )
...
* update async save
* move load_unified_optimizer
* update async save
* tmp
* add config
* update final async save
* add load_non_merge_optimizer
* update unlink func
* update final signal
* update windows for async_save
* fix rng load
* fix unittest
* fix distdataloader, update async_save
* update unlink
* remove dist dataloader
* fix load optimizer oom
2024-08-20 16:41:49 +08:00
Weiguo Zhu
27f8462f42
[CI] Fix ( #8793 )
...
* fix ci
2024-08-20 16:22:14 +08:00
Zhong Hui
326cf82153
Enable tensor parallel tests. ( #8757 )
2024-08-20 16:20:32 +08:00
yujun
bafd7e5c90
fix JambaModelIntegrationTest ( #8965 )
2024-08-20 14:47:35 +08:00
chen
ecfe0aca35
[LLM Inference] support qwen2 a8w8c8 inference ( #8925 )
...
* qwen2-1.5b a8w8c8
2024-08-20 11:43:11 +08:00
Yuanle Liu
71b3be3a51
[LLM Inference] add --use_fake_parameter option for ptq fake scales and fix compute error of total_max_length ( #8955 )
...
* update some code
* update
* update
* update
* update tune_cublaslt_gemm demo
* fix step in tune_cublaslt_gemm
2024-08-19 21:04:56 +08:00
yujun
0ec78aa916
[NEW Model] Add jamba ( #8517 )
...
* Add jamba
2024-08-19 20:12:21 +08:00
yujun
12107af7a2
[BUG] fix mamba tokenizer ( #8958 )
...
* fix
* fix
* fix
* fix
2024-08-19 16:42:49 +08:00
yujun
b08e44509d
[NEW Model] Add mamba ( #8513 )
...
* add mamba
* update
* do not shift
* update
* push
* mamba 单测pass
* mamba
* update_model_kwargs_for_generation
* fix tests
* test
* test
* add tokenizer test
2024-08-19 13:22:45 +08:00
Siming Dai
8599a53410
Add greedy_zero_padding ( #8933 )
2024-08-19 11:47:12 +08:00
Weiguo Zhu
d2d4d92fb6
[Tokenizer] Add Fast Tokenizer ( #8832 )
...
* add fast tokenizer
* add convert slow tokenizer method
2024-08-19 11:09:42 +08:00
Siming Dai
e8708edf82
[Trainer] Fix distributed dataloader ( #8932 )
...
* fix ddloader, fix uc unittest
* update dataloader
2024-08-16 16:28:28 +08:00
winter-wang
277fdb4a5c
support amp in pir dy2st mode. ( #8485 )
2024-08-16 15:39:11 +08:00
Zeyu Chen
e0d2809432
Update README.md
2024-08-16 13:18:19 +08:00
Yuanle Liu
6e12ef3400
[LLM Inference] move llm.utils.utils.py to paddlenlp.utils.llm_utils.py ( #8946 )
...
* adjust some code
* update
* update
2024-08-16 12:13:57 +08:00
Yuanle Liu
6d538c7b33
Fix predictor bug ( #8947 )
...
* fix bug
* update
2024-08-16 02:43:23 +08:00
Siming Dai
310a7bcb13
[Unified Checkpoint] Fix load best checkpoint ( #8935 )
...
* fix load best
* update
2024-08-15 20:43:36 +08:00
Yuanle Liu
c88a971ddf
[BugFix] fix predict get_tensor_parallel_mappings ( #8939 )
2024-08-15 11:30:43 +08:00
zhangyuqin1998
9b76eb2452
[BugFix] fix create_optimizer_and_scheduler for auto_parallel ( #8937 )
2024-08-15 11:11:42 +08:00
Weiguo Zhu
8f6b001e39
update tokens compute ( #8938 )
2024-08-14 22:19:02 +08:00
Yuanle Liu
3fff3787ed
[LLM Inference] support llama3.1 ( #8929 )
...
* support llama3.1
* update
2024-08-14 17:49:58 +08:00
Yuanle Liu
82ea8bc590
fix test_wint8 ut ( #8930 )
2024-08-14 16:57:46 +08:00
gongel
01bb1f80a2
[Cherry-pick] Fix pipeline eval ( #8924 )
2024-08-14 15:52:43 +08:00
zhengzhonghui
75c76365fd
[TIPC] Set logging_step to 5 with baichuan && qwen benchmark ( #8928 )
...
* set logging_step to 5 with baichuan && qwen benchmark
2024-08-14 15:27:44 +08:00
greycooker
85fbe52fcc
support json parameter ( #8446 )
2024-08-14 13:45:21 +08:00
Weiguo Zhu
0cc8554735
[doc] Update README ( #8922 )
...
* add yuan2 model list
* update
2024-08-14 10:36:03 +08:00
zhengzhonghui
f069a5350f
Update qwen && baichuan benchmark config ( #8920 )
2024-08-13 12:58:36 +08:00
zhaogf01
30fc639eba
[LLM]Update yuan model ( #8786 )
...
* add yuan model
* add yuan model settings
* fix conflict
* add readme
* update format
* update readme
* update readme
* update for lint
* update for lint
* update for lint
* update for lint
* add fp16
* update utils
* fix bug
* format
* correct pre-commit
* correct fp16
* delete rearrange
* add pre_train
* auto convert from torch
* support sft lora
* update structure
* fix yuantokenizer pad
* update scripts
* update readme
* update readme
* add pad_token_id
* format
* format
* update readme
* update for review
* update for review
* fix bug
* update to CRLF
* format
* support param convert
* update sft config
* fix modeling
* fix qk fuse&spilt and fix fa
* format
* format
* format
* fix fa dtype
---------
Co-authored-by: drownfish19 <drownfish19@gmail.com >
2024-08-12 16:25:07 +08:00
xiaoguoguo626807
57a42f8aa9
modify dict include none to aviod pir dytostatic bug in while op ( #8898 )
...
* modify dict include none
* recover
2024-08-12 14:27:46 +08:00
Yuanle Liu
0a5de127b7
[LLM Inference] Support qwen2 ( #8893 )
...
* stage 1
* update
* update
* support qwen2 bf16/wint8
* add qwen2 ptq map
* update
* fix tune_cublaslt_gemm.cu
2024-08-12 14:01:59 +08:00
greycooker
6f3e736ddb
【Fix】modify tensorboard requirements ( #8904 )
...
* modify tensorboard requirements
* modify tensorboard requirements
* modify tensorboard requirement
2024-08-12 11:48:59 +08:00
Yuanle Liu
5bc040a157
[LLM Inference] Refactor BlockInferencePredictor ( #8879 )
...
* stage 1
* update
* update
* fix ci
* fix ci
* fix ut
2024-08-12 10:08:41 +08:00
ShenLiang
718729921f
fix format ( #8878 )
2024-08-09 16:55:15 +08:00
Zhong Hui
4ebec1d46d
[Readme] Update README.md ( #8908 )
...
* Update README.md
* Update README_en.md
2024-08-09 13:19:02 +08:00
JZ-LIANG
c5e81094d3
bugfix auto parallel FA ( #8903 )
...
Co-authored-by: winter-wang <1030748926@qq.com >
2024-08-09 10:38:28 +08:00
Weiguo Zhu
4860d631e6
[doc] Update readme ( #8905 )
...
* update
* update
* remove
2024-08-08 22:13:00 +08:00
Zhong Hui
996198a199
Update run_pretrain.py ( #8902 )
2024-08-08 18:07:50 +08:00
zhengzhonghui
6f5bb76e96
[Fix] enable_sp_async_reduce_scatter for qwen_72b && llama2_70b ( #8897 )
2024-08-08 16:55:15 +08:00
Wennie396
fd692a8003
Fix fast_ln InferDtypeFn ( #8891 )
2024-08-08 16:41:22 +08:00
lugimzzz
2491f5d087
fix zeropadding ( #8895 )
2024-08-08 16:01:49 +08:00
xiaoguoguo626807
5c5701559e
modify Paddlemix qwen dytostatic ( #8869 )
...
* modify api for pir
* modify api for pir
* pass none for while
* modify ci test
2024-08-07 17:31:53 +08:00
S M
678843e5bd
Fix the issue of P-tuning official sample error ( #8884 )
...
* Fix the issue of P-tuning official sample error
* Create codecov workflow.yml
* Delete .github/workflows/workflow.yml
2024-08-07 17:30:07 +08:00
Ben
6235fcd09a
Fix the bug with issues code 8641. ( #8880 )
2024-08-07 11:33:41 +08:00
zhengzhonghui
4cf0806677
Support nested list of dict inputs ( #8876 )
2024-08-06 17:24:03 +08:00
sneaxiy
dbf395f8bf
Cherry pick some changes from incubate branch ( #8862 )
...
* Fix sharding reshard bug and support reshard in different partition ways (#8837 )
* Fix sharding reshard bug and support reshard in different partition ways
* fix some bugs
* refine codes
* revert some useless codes
* add log
* Fix TP sync (#8846 )
* fix sharding reshard compatiblity for wrong master weight name (#8851 )
* change print to logger.info
* remove useless f-string
2024-08-06 11:05:07 +08:00
greycooker
c4d1abfbe5
support sft mapdataset ( #8840 )
...
* support sft mapdataset
* fix __len__ and __getitem__
* fix judge impl method
* fix mmap
* change variable name
2024-08-05 17:38:53 +08:00
Yuanle Liu
a6a7870761
[Inference LLM] support static c8 ( #8833 )
...
* support llama2 static c8
* fix
* fix
* fix
* fix ci
* fix ci
* fix ci
* fix ci
2024-08-05 11:30:04 +08:00
wawltor
680b85e543
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2024-08-01 20:43:42 +08:00
Siming Dai
77480a071d
[UC] Fix tie_word_embeddings ( #8795 )
2024-08-01 19:41:04 +08:00
Siming Dai
12ba7ee237
Add release_grads ( #8829 )
2024-08-01 19:12:15 +08:00
Siming Dai
d4975e0b45
update_uc_merge ( #8856 )
2024-08-01 16:16:41 +08:00
zhangbo9674
7c43bc8a6e
[AutoParallel] Refine save and load ckpt for auto_trainer ( #8828 )
2024-08-01 11:47:42 +08:00
Yuanle Liu
d406e56d1a
Fix tune_cublaslt_gemm compile bug ( #8844 )
...
* fix tune_cublaslt_gemm
* Fix:
* fix
2024-07-31 15:36:05 +08:00
Hanyonggong
99d9bcb481
Add tune_cublaslt_gemm operator by cublaslt gemm algorithm and generate algo cache file ( #8799 )
...
* Add tune_gemm feature
2024-07-31 13:22:29 +08:00
yujun
fe7e2fe24e
[BUG] Fix build train valid test datasets ( #8826 )
...
* train_val_test_num_samples
2024-07-31 11:26:08 +08:00
Weiguo Zhu
e85a68dfa3
[Models] Add llama3.1 ( #8824 )
2024-07-31 11:05:22 +08:00
GoldPancake
5da5c36522
[DCU] fix llama inference bug on DCU ( #8815 )
2024-07-29 15:57:10 +08:00
Yuanle Liu
6ea9dc0930
fix pad_token_id bug ( #8814 )
2024-07-29 13:02:28 +08:00
Zhuoqun Li
ee4944e75c
add paddle nv-embed-v1 ( #8785 )
...
* add paddle nv-embed-v1
* rename hf_model and use config in models
2024-07-28 15:53:31 +08:00
Guoxia Wang
39632e97ec
support Llama3.1 8B 128K generation on single GPU 80GB ( #8811 )
...
* support Llama3.1 8B 128K generation on single GPU 80GB
* support llama3 rope
* try to fix _clear
* fix
* fix
* add config
2024-07-28 11:56:39 +08:00
Weiguo Zhu
77c0b0ef9f
[Doc] Update README ( #8817 )
...
* update readme
* update
* update
* update
2024-07-26 18:53:13 +08:00
Siming Dai
054c3addd9
[MoE] Optimizer parameter broadcast ( #8810 )
2024-07-26 18:00:06 +08:00
wawltor
53a510a460
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2024-07-26 16:43:11 +08:00
zhangbo9674
e6d74f7f64
[AutoParallel] Refine auto_trainer save load ( #8767 )
2024-07-26 14:07:22 +08:00
Siming Dai
5fd6dd23c1
add enable_sp_async_reduce_scatter ( #8803 )
2024-07-25 21:33:14 +08:00
Siming Dai
77f6e98114
[Prediction] Update LLM prediction. ( #8778 )
...
* update llama predict
* update qwen predict
* update chatglm predict
* update opt, gpt predict
* update return_numpy=True
* fix tp split
* bug fix
2024-07-25 20:47:41 +08:00
GoldPancake
105e0da074
[DCU] Llama a8w8 inference performance optimization ( #8800 )
...
* [DCU] Llama a8w8 inference performance optimization
* keep two cases
* change back
2024-07-24 21:30:23 +08:00
wawltor
320dfc7ee4
Update quantization.md
2024-07-24 19:15:38 +08:00
Yuanle Liu
6f56bd47d5
[Inference LLM] refine some code in llama wint8/4 ( #8796 )
...
* delete validate model and fix wint8/4 in llama
* update
2024-07-24 15:36:03 +08:00
Weiguo Zhu
da1eb9c875
fix ( #8792 )
2024-07-24 09:52:40 +08:00
TranscenderNing
de7d103dc3
vera-pissa method added ( #8722 )
...
* vera-pissa method added
* add vera-pissa
* Add vera-pissa and test
* Add vera-pissa and tests and correct the lint format
* Revise according to the review comments and add tests
* Revise according to the review comments and pass tests
* Revise according to the review comments and pass tests 1
* Revise according to the review comments and pass tests 2
* Revise according to the review comments and pass tests 3
* Revise according to the review comments and pass tests 31
* Revise according to the review comments and pass tests 32
2024-07-23 19:48:25 +08:00
yujun
7c18d9d71b
[BUG] 额外添加20个样本,防止制作预训练数据的时候超过index ( #8789 )
2024-07-23 10:50:34 +08:00
Weiguo Zhu
c4efddf48f
update version ( #8791 )
2024-07-22 20:56:27 +08:00
houj04
88d4b19bc6
[XPU] use allgather and fp32 multinomial for XPU ( #8787 )
2024-07-22 11:21:25 +08:00
Weiguo Zhu
e8e59d069c
fix ( #8779 )
2024-07-22 11:03:21 +08:00
Zhong Hui
57000fa12c
Refine savable ( #8758 )
...
* mark tensor_parallel_degree savable.
* fix
2024-07-19 14:23:13 +08:00
lszxb
dedf4c5662
fix incorrect token counting in llm/predictor.py ( #8769 )
2024-07-18 10:51:35 +08:00
Difer
62a18c4ad8
[Trainer] Enable parallel_config to use commas as delimiters. ( #8677 )
2024-07-17 20:09:25 +08:00
wawltor
e89399a21e
fix the ce for the unittest ( #8772 )
2024-07-17 15:32:14 +08:00
wawltor
89095c34d2
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleNLP into develop
2024-07-17 13:05:41 +08:00
lszxb
ab72ba7940
fix the missing truncation=True in llm/predictor.py ( #8768 )
2024-07-17 11:14:39 +08:00
LixinGuo
227ec81e63
add benchmark baichuan2 scripts ( #8683 )
...
* remove tsinghua pypi
* modify gpt dateset addr for benchmark
* fix run_benchmark for llama2_70b in auto_parallel
* fix autotunner benchmark error and fix llama2 dy2st benchmark
* fix benchmark dir because of PR#8627
* Update run_benchmark.sh
Update run_benchmark.sh
* fix benchmark dir because of PR#8627
* add qwen N4C32
* fix etcd
* fix qwen N4C32 for per_device_type
* fix benchmark dir and add CUDA_DEVICE_MAX_CONNECTIONS to qwen
* add benchmark baichuan2 scripts
* fix run time
* update baichun2_13b config
2024-07-17 10:55:09 +08:00
lizexu123
5e53db1361
【inference】support load or save Llama2-7b in three patterns ( #8766 )
...
* config:
* fix
2024-07-16 20:43:00 +08:00
Weiguo Zhu
5a508e5c4c
Fix version show ( #8754 )
2024-07-15 14:38:41 +08:00
Weiguo Zhu
be957f06fa
[NPU] Fix sequence parallel lib import ( #8760 )
2024-07-15 11:13:48 +08:00
JZ-LIANG
7a1c4394d8
[AutoParallel] update loss for global clip ( #8750 )
...
* update loss for global clip
* skip ci
2024-07-12 16:14:29 +08:00
Weiguo Zhu
10d058d2b1
[PaddleNLP 3.0] Update README ( #8681 )
...
* update
* update readme
* update
* update
* update
* update
* update
* update
* update
* update README(EN)
* correct broken links in readme
Signed-off-by: Zhang Jun <jzhang533@gmail.com >
* add markdownlint
* update
* add check_spaces
* update
* update readme
* update readme
* update
* update
update readme
* update readmes
* update
* update
* update llm doc index
* update
* add rlhf docs
---------
Signed-off-by: Zhang Jun <jzhang533@gmail.com >
Co-authored-by: Zhang Jun <jzhang533@gmail.com >
2024-07-12 11:06:56 +08:00
Leo Chen
028206b6cb
update a100 loss ( #8708 )
...
* update a100 loss
* disable test
* enable check
2024-07-11 19:38:31 +08:00
zhangyuqin1998
2f0f8b1628
[Bug fixes] Fix ring attention ( #8740 )
...
* fix ring attention
* fix
* fix
2024-07-11 16:52:19 +08:00
Weiguo Zhu
e336e78c33
[LLM] Update sequence parallel linear import ( #8706 )
...
* Update sequence parallel linear import
* update lora models
* update lora sequence parallel layer
2024-07-11 12:04:05 +08:00
LixinGuo
c4f99ee07a
fix nlp dir and auto_parallel_ci exit -6 ( #8744 )
2024-07-11 11:19:20 +08:00
zhaogf01
1af227adda
[LLM] Add Yuan model ( #8654 )
...
* add yuan model
* add yuan model settings
* fix conflict
* add readme
* update format
* update readme
* update readme
* update for lint
* update for lint
* update for lint
* update for lint
* add fp16
* update utils
* fix bug
* format
* correct pre-commit
* correct fp16
* delete rearrange
* add pre_train
2024-07-11 10:42:16 +08:00
ronnywang
a1dbc39aae
revert benchmark fix ( #8747 )
2024-07-10 20:06:38 +08:00
wawltor
04c9b39f22
fix the tipc ce case
2024-07-10 19:48:31 +08:00
jzhang533
324112048d
correct broken links in readme ( #8741 )
...
Signed-off-by: Zhang Jun <jzhang533@gmail.com >
2024-07-10 16:28:30 +08:00
Weiguo Zhu
1a2502c4b8
[Safetensors] Fix mmap for Windows system ( #8734 )
...
* fix mmap for Windows system
2024-07-10 14:33:53 +08:00
lugimzzz
fbe613bbc5
disable lora ( #8674 )
...
* disable lora
* lora disable & merge
* fix
* fix unitest
* fix the finetune and predict in llm
---------
Co-authored-by: wawltor <fangzeyang0904@hotmail.com >
2024-07-09 10:53:10 +08:00
Yuang Liu
595c2fbf8f
bug fix ( #8730 )
2024-07-09 10:04:30 +08:00
tianhaodongbd
e6810195d0
Finetune support use_fast_layer_norm ( #8717 )
2024-07-08 16:52:25 +08:00
zhengzhonghui
bdd2287bf3
fix fast_ln backward ( #8719 )
2024-07-05 16:30:52 +08:00
lizexu123
d8ddba9244
【inference】support load or save Llama2-7b in three patterns ( #8712 )
...
* fix
* fix
* 删除注释
* 恢复+删除
* 删除+恢复
2024-07-05 10:32:03 +08:00
Yuang Liu
e471b1e8af
fix xpu gather for unified ckpt ( #8710 )
2024-07-05 10:18:02 +08:00
zhengzhonghui
70564ba8cd
[Benchmark] Enable use_fast_layer_norm for llama2 benchmark ( #8714 )
2024-07-04 20:35:08 +08:00
zhengzhonghui
fd01043844
[Performance] Add fast_rmsnorm ( #8680 )
...
* add fast_rmsnorm
---------
Co-authored-by: Liu Yiqun <liuyiqun01@baidu.com >
2024-07-04 17:00:15 +08:00
Yuang Liu
6d464bfa79
xpu use allgather ( #8697 )
...
* xpu use allgather
* xpu use allgather
2024-07-03 17:19:25 +08:00
yujun
85cbadad35
num_samples 向下去整,防止prefrech预取时候超过数据集最大长度... ( #8690 )
2024-07-03 15:54:31 +08:00
wawltor
cf57f86755
fix the fast tokenizer in the taskflow
2024-07-03 11:24:32 +08:00
Siming Dai
c574d6de5a
[Safetensors] Fix safetensors shape ( #8702 )
...
* Update sequence_parallel for predict
* Do not save moe_group
* Fix safetensors reading
2024-07-03 11:03:03 +08:00
Ting
af19dc4c4f
Add new mistral ( #7425 )
...
* mistral model init commit
* code save
* add dump code
* mistral support lora,prefix,multi-gpu
* bug fix
* add flash attention
* mistral sliding windows attention (attention_mask version)
* llm json fix
* bug fix
* ci code save
* mistral ci, attention mask
* remove redundant comment
* remove print
* empty commit
* update
* add init py
* bugfix
* remove swa strategy
* update
* lora support
* update
* add tp cross entropy
* support zero padding
* update README.md
2024-07-03 10:55:11 +08:00
Leo Chen
64efd1ff0c
update loss base of auto-parallel tests ( #8701 )
...
* clean legacy case
* clean gpt tests in model_zoo
* disable check
* fix loss base
* enable check
2024-07-03 10:49:40 +08:00
gmm
eaa80c985c
[benchmark] Change the mirror source for pip ( #8699 )
2024-07-02 20:36:26 +08:00
lzydev
4a56c68855
change max_steps ( #8679 )
2024-07-02 19:57:41 +08:00
xiaoguoguo626807
d832282f84
【pir save 】Modiy export llama model file in pir mode ( #8689 )
...
* modify model to support llama export json
* modify model to support llama export json
* modify id
* modify full_like None
* modfiy utils
* reply comment
2024-07-02 19:51:11 +08:00
sunrui
79de55278a
[Pre-Train] 支持qwen2预训练处理 ( #8698 )
2024-07-02 17:02:16 +08:00
Jianbang Yang
a53477cddf
[XPU] add lora optimization ( #8527 )
...
* [XPU] add lora optimization
* fix
* refine
2024-07-02 11:16:47 +08:00
Ting
2723138738
bug fix ( #8687 )
2024-07-01 15:01:58 +08:00
LixinGuo
be5bb14a8b
fix benchmark dir and add CUDA_DEVICE_MAX_CONNECTIONS to qwen ( #8678 )
...
* remove tsinghua pypi
* modify gpt dateset addr for benchmark
* fix run_benchmark for llama2_70b in auto_parallel
* fix autotunner benchmark error and fix llama2 dy2st benchmark
* fix benchmark dir because of PR#8627
* Update run_benchmark.sh
Update run_benchmark.sh
* fix benchmark dir because of PR#8627
* add qwen N4C32
* fix etcd
* fix qwen N4C32 for per_device_type
* fix benchmark dir and add CUDA_DEVICE_MAX_CONNECTIONS to qwen
2024-06-28 15:14:09 +08:00
yuguo
5364d5e612
[DCU] high performance LLM train and inference for DCU ( #8580 )
...
* [DCU] high performance LLM train and inference for DCU
2024-06-28 15:04:31 +08:00
gongel
a2b8a7835c
update version ( #8676 )
2024-06-28 10:44:16 +08:00
Ting
c86e44774e
Sft flash mask ( #8664 )
...
* support sft flash mask
* dpo support
* update
* remove dense mask when using flash mask
* bugfix
* support pp
* bugfix
* bugfix
* bugfix
---------
Co-authored-by: gongel <ainlp88@qq.com >
2024-06-28 10:43:42 +08:00
gongel
3ebe938339
Update version ( #8675 )
...
* update version
* update pre-commit
2024-06-27 20:56:41 +08:00
Siming Dai
cd5ca827f7
Update export model ( #8671 )
...
* Update sequence_parallel for predict
* Do not save moe_group
* update export model
2024-06-27 20:54:10 +08:00
lugimzzz
513e21d1d2
adjust llm readme ( #8672 )
...
* fix readme
* update readme
* fix readme
* fix readme
2024-06-27 20:53:30 +08:00
DrownFish19
04c2f2b0ec
[PaddleNLP 3.0] Update README.md ( #8666 )
...
* update README.md
* update readme
* update readme
* fix
* fix dead link
* update figures
* update
* fix
* update
* update
* update quick start
* update figures
2024-06-27 20:53:16 +08:00
lugimzzz
1182cd553e
support flashmask ( #8670 )
...
* support flashmask
* support flashmask
2024-06-27 20:52:56 +08:00
lzydev
dae64cc8f5
【AutoParallel】Change benchmark config for llama2-7b ( #8667 )
...
* change benchmark config for llama2-7b
* change logging_steps
2024-06-27 20:12:58 +08:00
bukejiyu
69e04c0c04
support llama avx model inference ( #8634 )
2024-06-27 19:42:47 +08:00
gmm
c6c2cd8a10
[benchmark] fix benchmark script ( #8648 )
...
* add llama-7b_auto_dp2mp2pp2 benchmark sh
* add llama-7b_auto_dp2mp2pp2 benchmark script for cinn
* update llama-7b_auto_dp2mp2pp2 benchmark script
* Update run_benchmark.sh
* Update run_benchmark.sh
* fix llama-7b_auto_dp2mp2pp2/benchmark_common
* Update run_benchmark.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
* fix benchmark script
* fix script path for transformer benchmark
2024-06-27 16:37:47 +08:00
Yuanle Liu
faabf870b5
inference support llama3(wint8|4/a8w8) ( #8630 )
...
* inference support llama3
* fix
2024-06-27 10:49:59 +08:00
lugimzzz
69be4dbaf8
fix ( #8668 )
...
Co-authored-by: zhangjunjun04 <zhangjunjun04@baidu.com >
2024-06-26 20:07:50 +08:00
LixinGuo
80e7ef55ef
fix benchmark dir because of PR#8627 ( #8649 )
...
* remove tsinghua pypi
* modify gpt dateset addr for benchmark
* fix run_benchmark for llama2_70b in auto_parallel
* fix autotunner benchmark error and fix llama2 dy2st benchmark
* fix benchmark dir because of PR#8627
* Update run_benchmark.sh
Update run_benchmark.sh
* fix benchmark dir because of PR#8627
* add qwen N4C32
* fix etcd
* fix qwen N4C32 for per_device_type
2024-06-26 18:54:52 +08:00
DrownFish19
4e971f82b6
[DOC] Fix dead link ( #8662 )
...
* update dead link
* update dead links
* update dead links
* update dead links
* update dead links
2024-06-26 13:42:23 +08:00
Tian
8edb84e543
[LLM][NPU] fix on readme ( #8659 )
2024-06-26 10:40:36 +08:00
DrownFish19
381949da62
Fix different length for numpy>=1.24.x ( #8655 )
...
* fix different length for numpy>=1.24.x
* update numpy version
2024-06-25 20:49:16 +08:00
DrownFish19
7130c185a9
Add License ( #8658 )
2024-06-25 14:43:30 +08:00
zhengzhonghui
007b653544
fix fast_ln compile error ( #8650 )
2024-06-25 11:45:10 +08:00
Leo Chen
11a7fd38f5
align llama auto_parallel dataloader with manual_parallel ( #8639 )
2024-06-25 11:40:25 +08:00
Tian
25d21402d7
[NPU][LLM] add README & reformat llama scripts ( #8642 )
...
* [NPU][LLM] add README & reformat llama scripts
* [LLM][NPU] fix readme 0621
* [LLM][NPU] reformat npu scripts
2024-06-22 11:47:41 +08:00
Difer
65e721e788
[LLM] Add sequence_parallel support for qwen ( #8558 )
...
* add sequence_parallel for qwen
* add sequence_parallel in qwen pp
2024-06-21 11:13:11 +08:00
lugimzzz
498f709884
[LLM] change llm content ( #8627 )
...
* change llm
* fix
* fix
* fix ci
* fix
* fix
* fix
---------
Co-authored-by: zhangjunjun04 <zhangjunjun04@baidu.com >
2024-06-21 10:51:22 +08:00
gmm
34fcced27f
【benchmark】 fix model_zoo path ( #8643 )
...
* add llama-7b_auto_dp2mp2pp2 benchmark sh
* add llama-7b_auto_dp2mp2pp2 benchmark script for cinn
* update llama-7b_auto_dp2mp2pp2 benchmark script
* Update run_benchmark.sh
* Update run_benchmark.sh
* fix llama-7b_auto_dp2mp2pp2/benchmark_common
* Update run_benchmark.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
* Update prepare.sh
2024-06-20 19:51:27 +08:00
XiangGao
5619cc3286
because PaddleNLP has changed path of model_zoo, we also changed in ci_case_auto.sh and ci_case_dy.sh ( #8633 )
2024-06-20 14:12:05 +08:00
DrownFish19
da8b9ac70e
[LLM] Support prefix tuning and lora for qwen2 ( #8601 )
...
* add unittest for qwen2
* update for tie_word_embeddings
* update qwen2
* update for tokenizer set attr to null
* support prefix training
* fix llm unittest
* fix pipeline and sequence parallel
* add pretrain configs
* add lora, prefix tuning, sft config
* fix pp for lora and recompute
2024-06-20 11:47:03 +08:00
DrownFish19
6bfca91b9f
[PaddleNLP 3.0] update dataset preprocess ( #8629 )
...
* update datasets preprocess
* add symbolic link 'preprocess' for ernie-1.0
2024-06-20 11:45:45 +08:00
Zhong Hui
7318273ada
[PaddleNLP 3.0] Refactor/3 part3, move pipelines. ( #8619 )
...
* mv pipelines legacy.
* remove ppdiffusers.
* remove unused.
* refine ci.
2024-06-19 20:43:02 +08:00
zhink
347717b8d4
fix npu llama ( #8628 )
2024-06-19 20:41:50 +08:00
Ting
fde454c2f5
remove fast generation ( #8625 )
...
* remove fast generation
* fix ci
2024-06-19 20:17:45 +08:00
Guoxia Wang
9c59aad16f
[LLM] support sparse attention for LLAMA ( #8592 )
...
* [LLM] support sparse attention for LLAMA
* fix modeling_pp.py and rename attn_mask_start_row_indices
* fix assert
2024-06-19 17:37:54 +08:00
sneaxiy
7dcd1fdc4d
Update PaddleNLP to fix PPO ( #8618 )
...
* Update PaddleNLP to fix PPO
* fix lint
2024-06-19 17:06:19 +08:00
Zhong Hui
9361a4e510
Fix dead link ( #8626 )
2024-06-19 16:28:05 +08:00
Yiqun Liu
970b8680d2
Remove delay_scale_loss and release_grads for llama-2 13B's benchmark. ( #8623 )
2024-06-19 12:54:59 +08:00
gongel
4e16650ae6
[PaddleNLP 3.0] Refactor RLHF ( #8617 )
...
* refactor PPO & RM
2024-06-19 11:23:02 +08:00
Zhong Hui
a8d446c7d5
[PaddleNLP 3.0] Refactor, merge examples/language_model model_zoo to legacy/model_zoo ( #8614 )
...
* merge examples/language_model model_zoo to legacy/model_zoo
2024-06-19 11:13:28 +08:00
Ting
2f3af3b662
[PaddleNLP 3.0] Repo adjustment ( #8605 )
2024-06-19 11:11:25 +08:00
Zhong Hui
cd2a70e385
[PaddleNLP 3.0] Refactor/3 part1- remove fast tokenizer. ( #8613 )
...
* delete fast_tokenizer.
* delete deploy with fast_tokenizer.
* delete fast tokenizer in tests.
2024-06-18 18:49:32 +08:00
tianhaodongbd
cbd0ab3a09
Finetune support continue_training ( #8615 )
2024-06-18 16:11:30 +08:00
DrownFish19
307960cf25
[PaddleNLP 3.0] Refactor examples ( #8609 )
2024-06-18 11:14:21 +08:00
sneaxiy
c134a7f2ae
to_json_string兼容性升级 ( #8608 )
...
* to_json_string兼容性升级
* fix lint format
2024-06-17 12:22:45 +08:00
Zhong Hui
0844a5b730
[Feature] Optimize config saving. ( #8490 )
...
* support not saving training config.
* fix print.
* add llm meta config to run pretrain.
* fix optionals.
* delete duplicate keys.
* tmp
* change tensor_parallel_output to default to true.
* move out fuse_attention_qkv, fuse_attention_ffn
* add to finetune.
* delete print.
* tensor_parallel_output = true
* fix
* fix
* fix
* fix to dict.
* bug fix.
* add register_nonsaveable_keys.
* apply register_nonsaveable_keys.
* fix ci.
* fix qwen2
* fix all.
* fix.
* fix ci.
2024-06-14 17:31:41 +08:00
ShenLiang
7bf31a39a1
Add main process print ( #8604 )
2024-06-14 14:42:11 +08:00
yinwei
439f8f3395
[Bug Fix] fix sharding stage1 allgather overlap bug, which needs to forbiden pin memory ( #8594 )
...
* forbiden pin memory
2024-06-13 20:38:33 +08:00
zhink
2dc4d7bb0a
[XPU] Open ir pass ( #8598 )
2024-06-13 20:27:55 +08:00
Zhong Hui
8e24341bf0
Fix dataset with empty char. ( #8469 )
...
* fix dataset with empty char.
* revert file links.
2024-06-13 17:11:44 +08:00
Guo Sheng
4bca376b24
Clean ppo main script ( #8596 )
2024-06-13 15:07:12 +08:00
NeroLoh
77a7693a58
[xpu] change xpu setup.py to paddlenlp_ops ( #8595 )
...
Co-authored-by: neroluo <neroluo@github.com >
2024-06-13 14:47:45 +08:00
Guo Sheng
bf6d4e70f6
Add Pipeline Parallel for PPO training and support generation with InferenceModel ( #7953 )
...
* Add Pipeline Parallel for PPO training.
* Move new_ppo_trainer.py to ppo_trainer.py
* Fix padding among batches of accumulation steps in _prepare_pipeline_inputs_func.
* Fix hcg using in TP generation
* Try to support generation in PP. And allow extra training args passed from main from_pratrined.
* Support PP generation.
* Fix PP eval by unify prediction_step
* Fix reward value showing error cased by BF16 dtype when eval
* fix all
* Make non-PipelineParallel models use the same loss layer with PipeModel to unify.
* add offload.
* Use create_loss to unify Pipe and non-Pipe usage.
* Add eval mode and offload level.
* merge
* support tp+pp
* fix data split.
* Fix position_ids in generation/eval/train.
* fix data group.
* add tp rank guard
* Support rollout label data both with target length or source+target length.
* Move metric calculation to rl_step to avoid comm.
* fix pad
* fix create group.
* no print
* Suppport inference model generation.
* fix compatible for no eval model.
* fix pp sync.
* remove debug info
* Refacor PPO training using StepTrainer.
* Open PolicyTrainer loss logging postprocess. More StepTrainer docs.
* more timer.
* fix bugs.
* Add EMA and PPOMetric
* add tests
* add unit test for rank guard.
* Fix reshard zero3 and reshard infer.
* Revert #7818 for llama and remove position_ids for gen/train/eval to align.
* Move reload/clean/data_group to comm_utils and use guard to decorate them.
* Offload sync and other data reuse fix.
* Clead code
* Update README
* Update ppo_trainer
* format code
* Fix make_position_ids by 4d causal mask.
* Fix nested_broadcast_tensor_with_empty import
* Update eval with make_attention_mask
---------
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
Co-authored-by: gongenlei <gongenlei@baidu.com >
2024-06-13 14:33:56 +08:00
zhink
3d777c1c27
[XPU] xpu devices support llama-7b basic mode inference (turn on BlockAttention) ( #8588 )
...
* xpu devices support llama-7b basic mode inference (turn on BlockAttention)
2024-06-13 11:10:51 +08:00
NeroLoh
5ba7a94d52
[xpu] add xpu custom ops support for llama2-7b ( #8515 )
2024-06-12 20:17:31 +08:00
Zhong Hui
2b557e2feb
[CI] Enable test with re-try. ( #8590 )
2024-06-12 19:33:18 +08:00
Difer
525eef76f0
[CE] Fix autotuner resume case ( #8259 )
2024-06-12 16:14:03 +08:00
LixinGuo
ef84facad7
[CE] Fix autotunner benchmark error and fix llama2 dy2st benchmark ( #8587 )
...
* fix autotunner benchmark error and fix llama2 dy2st benchmark
2024-06-12 16:12:56 +08:00
DrownFish19
5bdf75105e
[LLM] Fix Qwen2 ( #8584 )
...
* fix output_router_logits
* fix with __future__
2024-06-12 14:03:37 +08:00
DrownFish19
4609d07a54
[LLM] support Qwen2 ( #8338 )
...
* add Qwen2Moe
* update default config
* update QWen2Moe modeling
* update modeling
* update ckpt name
* support same prefix model name for auto modeling
* update qwen2moe testing
* update qwen2moe modeling and config
* update qwen2moe import
* fix mlp hidden_size
* update qkv bias convert
* update modeling init_weight
* update _get_name_mappings
* update _get_name_mappings and _init_weight
* add tokenizer
* update modeling
* update modeling
* update tokenizer
* update modeling and tokenizer
* fix index_add_ error
* fix
* update comments
* update lora weights
* add todo
* update Copyright
* update Moe to MoE
* update comment
* update Copyright
* update readme and json
* update __init__.py
* add qwen-1.5
* update QWen to Qwen
* update Qwen2MoE to Qwen2Moe
* update readme
* update qwen2moe sft and lora json
* update qwen2moe base name
* update qwen2
* update
* update readme
* update readme
* update readme
2024-06-11 20:24:42 +08:00
lugimzzz
909be01bf9
add llama & qwen dpo ( #8474 )
...
* add llama&qwen dpo
* add
* add dpo
* fix bug
* add
2024-06-11 14:33:47 +08:00
ShenLiang
547d29c7e9
Add async save for optimizer ( #8557 )
2024-06-11 14:22:14 +08:00
Zhong Hui
eaf8cb13a4
[CI] Fix ci pyproject.toml ( #8541 )
...
* Update pyproject.toml
2024-06-11 11:48:08 +08:00
Zhong Hui
fe5b6fd900
fix test_long_sequence_strategies ( #8568 )
2024-06-11 11:11:19 +08:00
sneaxiy
bcacc6aa21
[Cherry pick] Sharding reshard function enhancement ( #8544 )
...
* fix bug of sharding format (#8483 )
* Optimize the speed of set_state_dict (#8532 )
* fix sharding reshard save (#8535 )
* Fix ignore_data_skip bug when timer is enabled (#8536 )
* Save parameter shape and dtype when using sharding reshard (#8543 )
* save parameter shape and dtype
* refactor
* format pre-commit
---------
Co-authored-by: ShenLiang <2282912238@qq.com >
2024-06-11 10:23:28 +08:00
Ghost Screaming
162d8d31c8
[AutoParallel] Add benchmark for llama-7b-dy2st. ( #8559 )
...
* [AutoParallel] Add benchmark for llama-7b-dy2st.
2024-06-07 14:40:05 +08:00
Zhong Hui
f89c91d960
[FIX DDP] fix ddp ( #8549 )
...
* enable trainer tests.
2024-06-07 14:37:38 +08:00
Galaxy1458
4e3f60dbc5
Update llama_npu_opt_lora.sh ( #8562 )
2024-06-06 20:58:13 +08:00
ronnywang
8887ed5ed6
fix llama export ( #8561 )
2024-06-06 16:52:24 +08:00
lzy
0e0c9b4c92
Update generation_utils.py ( #8502 )
...
* Update generation_utils.py
* Update generation_utils.py
2024-06-06 15:18:13 +08:00
zhengzhonghui
d06b3279d4
add fuse_attention_ffn support for qwen ( #8526 )
2024-06-06 14:47:34 +08:00
Zhong Hui
79e8b6eefd
Update modeling.py ( #8548 )
2024-06-06 14:45:30 +08:00
Siming Dai
66ad506a67
Update sequence_parallel for predict ( #8551 )
2024-06-06 13:10:26 +08:00
sneaxiy
5a6d0fa98e
fix memory leak bug ( #8546 )
2024-06-06 11:21:47 +08:00
gmm
b0a8cdddc8
【benchmark】 add llama-7b_auto_dp2mp2pp2 benchmark script for cinn ( #8423 )
...
* add llama-7b_auto_dp2mp2pp2 benchmark sh
* add llama-7b_auto_dp2mp2pp2 benchmark script for cinn
* update llama-7b_auto_dp2mp2pp2 benchmark script
* Update run_benchmark.sh
* Update run_benchmark.sh
* fix llama-7b_auto_dp2mp2pp2/benchmark_common
* Update run_benchmark.sh
2024-06-06 11:12:38 +08:00
ronnywang
87edf28f9a
support fused weights for export_model ( #8554 )
2024-06-06 09:58:50 +08:00
greycooker
d98d722de3
del codev ( #8555 )
2024-06-06 09:08:55 +08:00
zhangyuqin1998
4cb8b6d053
Add RingFlashAttention for context parallel ( #8383 )
...
* Add RingFlashAttention for context parallel
* update, using sep_group
* using sep group
* fix
* fix
* update
* fix
2024-06-05 22:01:40 +08:00
ShenLiang
91936bdaae
[Cherry-pick] Add release grad & sharding format & decorate_exclude_layers ( #8545 )
...
* fix bug of sharding format (#8483 )
* Add release grad for SD (#8478 )
* add decorate_exclude_layers
---------
Co-authored-by: westfish <westfish@126.com >
2024-06-05 21:56:57 +08:00
Xuanang Chen
1cf780e4d7
add mteb evaluation ( #8538 )
...
* add mteb evaluation
* add mteb evaluation
* add mteb evaluation
* add mteb evaluation
2024-06-05 20:41:22 +08:00
Zhong Hui
3c21f0ae56
Update run_ci.sh ( #8552 )
2024-06-05 20:22:45 +08:00
Zhong Hui
f36ed75f4f
update source. ( #8540 )
2024-06-04 20:48:24 +08:00
asr-sheep1
4c9a3f5ded
fused_ln:Added implementation for the HIP platform ( #8472 )
2024-06-04 16:55:51 +08:00
tianhaodongbd
cb8a229794
[BugFix][NPU] fix llama attn_mask astype error ( #8528 )
2024-06-04 16:31:45 +08:00
Zhong Hui
f8cdd3dcb0
fix eval. ( #8529 )
...
* fix eval.
* fix
2024-06-04 11:30:39 +08:00
yinwei
0087c4a801
update code ( #8519 )
2024-06-03 13:34:39 +08:00
Zhong Hui
2286799c01
[Safetensors] Fix fast safe open slice. ( #8512 )
...
* fix more case.
* fix slice.
* fix error slice.
2024-06-03 11:19:01 +08:00
wawltor
fd2a39ee04
Update README.md ( #8524 )
2024-06-03 10:21:05 +08:00
Ferrebo
440c093867
[fix] Broadcast optimizer state using broadcast_dp without shard-reshard. ( #8522 )
2024-06-03 09:55:03 +08:00
yinwei
e71540bfc6
Add Sharding V1 broadcast and allgather overlap optimize ( #8499 )
...
* update
* update is_casual_mask to use_casual_mask
* update by environment
* add constraint
* add pretrain and finetune enviroment
* update
* update
* Update finetune_generation.py
update use_casual_mask env
* update
* lint code
---------
Co-authored-by: zhengzhonghui <zhengzhonghui@baidu.com >
Co-authored-by: lizhiyu <1528794076@qq.com >
2024-05-31 16:10:16 +08:00
Ferrebo
ac7145dae4
[fea] moe support ( #8498 )
...
Co-authored-by: kebo01 <kebo01@baidu.com >
2024-05-31 14:43:36 +08:00
Galaxy1458
60c661546b
Update merge_lora_params.py ( #8514 )
...
* Update merge_lora_params.py
* Update merge_lora_params.py
* Update merge_lora_params.py
2024-05-31 11:05:25 +08:00
Zhong Hui
92aa9f1767
Update model_utils.py ( #8509 )
2024-05-30 11:31:27 +08:00
Tian
d8adc2b9d1
[LLM] disable part of MC2 in lora ( #8505 )
2024-05-29 13:18:33 +08:00
ming1753
c1cfe631df
modify block_multihead_attention api ( #8456 )
...
* modify block_multihead_attention api
* add param to blha
* modify fused_transformer_layers
* fix bug
2024-05-28 18:52:56 +08:00
Ghost Screaming
85ba5735c3
[AutoParallel] Support qwen for auto_parallel ( #8312 )
...
* run 4096
* support 3d semi auto run of qwen model
* [AutoParallel] Add qwen auto parallel.
* Delete useless files.
* Fix code style problem.
* Fix problems.
* Polish code.
* Add CI-cases.
* Add bf16 ci testcase.
* Fix some problems.
---------
Co-authored-by: pangengzheng <pangengzheng@baidu.com >
Co-authored-by: pangengzheng <pangengzheng.baidu.com>
2024-05-28 10:12:39 +08:00
zhangyuqin1998
d4edd19194
Fix rng_state in llm models ( #8396 )
2024-05-27 14:30:23 +08:00
Zhong Hui
773497e2e6
quick fix from pretrained. ( #8486 )
2024-05-27 12:51:20 +08:00
lzydev
d8e1a6b2b6
【AutoParallel】Add split_backward for vpp ( #8479 )
...
* add split_backward for vpp
* polish
* add test cast
* polish
* update test case
* change the config
* polish
2024-05-27 10:54:27 +08:00
LixinGuo
a90f16353d
fix run_benchmark for llama2_70b in auto_parallel ( #8484 )
...
* remove tsinghua pypi
* modify gpt dateset addr for benchmark
* fix run_benchmark for llama2_70b in auto_parallel
2024-05-24 16:51:23 +08:00
Tian
0cd8fe7ee5
Revert "Support Sharding Overlap ( #8473 )" ( #8491 )
...
This reverts commit 7aaa788069 .
2024-05-24 15:28:09 +08:00
yinwei
7aaa788069
Support Sharding Overlap ( #8473 )
...
* update
* update is_casual_mask to use_casual_mask
* update by environment
2024-05-24 10:17:21 +08:00
yinfan98
c6f4159d9c
[Ops] RoPE kernel support theta input ( #8440 )
...
* [RoPE] feat: support theta
* Update modeling.py
* [RoPE] feat: support theta for qwen
2024-05-23 11:26:21 +08:00
EnflameGCU
621118e487
fix rotary_emb for llama ( #8470 )
2024-05-22 20:44:25 +08:00
Lucas
70bffa8df3
[LLM] fix bug when loss is None in llama modeling.py ( #8459 )
2024-05-22 13:58:25 +08:00
ronnywang
87e4c4fa87
[NPU] support npu llama2-13B export & inference ( #8442 )
...
* [NPU] support npu llama2-13B export & inference
* move csrc_npu to csrc/npu
2024-05-20 22:15:10 +08:00
Zhong Hui
9064078e8d
Fix CI tests. ( #8471 )
2024-05-20 19:29:07 +08:00
zhangbo9674
b36b6a01a6
Add llama2-70b for test_tipc ( #8455 )
2024-05-17 20:56:30 +08:00
Liujie0926
5d4ce560ef
[benchmark]Add llama2 auto ( #8424 )
...
* fix ci requirements
* add llama2_auto benchmark
* fix
* update config
* Add ips log for per card
2024-05-17 16:12:49 +08:00
w5688414
9381e9fe78
[bugfix] fix erniedoc ( #8393 )
...
* fix erniedoc
* revert
2024-05-17 16:10:50 +08:00
EnflameGCU
d9dcd9a797
[GCU] Support llama for GCU ( #8445 )
2024-05-17 15:26:21 +08:00
Galaxy1458
7f13396332
update ( #8448 )
...
* update
* add llama-npu-opt-script
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_sft.sh
* Rename dev_opt_lora.sh to llama_npu_opt_lora.sh
* Update dev_opt_ppt.sh
* Rename dev_opt_ppt.sh to llama_npu_opt_ppt.sh
* Update llama_npu_opt_lora.sh
* Update and rename dev_opt_sft.sh to llama_npu_opt_sft.sh
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* update
* Update fusion_ops.py
* update
* update
2024-05-17 12:52:56 +08:00
Zhong Hui
daf2f3ae6b
fix load rng compatiblity. ( #8450 )
2024-05-17 11:15:39 +08:00
zhangbo9674
ebe397ea52
Support fused_attention_qkv for auto_parallel llama ( #8432 )
...
* add
* add
* add
* add
* add
2024-05-16 18:37:30 +08:00
Zhong Hui
562229c1da
Fix/test gpu ( #8452 )
...
* fix safe open.
* fix online ci.
2024-05-16 17:15:33 +08:00
Zhong Hui
21eb6bdcac
Fix CI bugs ( #8430 )
...
* fix bugs
* swith test to python 3.10
* skip test.
* update python version.
* fix bugs
* fix gradio
* test.
* fix all
2024-05-16 13:13:54 +08:00
NINGBENZHE
5170664dbf
fix npu sft ckpt load bug and no FA bug ( #8438 )
...
Co-authored-by: NINGBENZHE <zhenwenqi@huawei.com >
2024-05-15 19:58:52 +08:00
Liujie0926
5da340e038
Add scripts for unittest ( #8433 )
2024-05-15 14:46:21 +08:00
Galaxy1458
11aba32ace
Update llama_npu_opt_lora.sh ( #8439 )
2024-05-15 10:12:49 +08:00
Yuanle Liu
6902c3e179
delete csrc/generation/reset_need_stop_value.cc ( #8413 )
2024-05-14 21:09:15 +08:00
Galaxy1458
05acad574e
[NPU]Custom fusion operator unification ( #8431 )
...
* update
* add llama-npu-opt-script
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_sft.sh
* Rename dev_opt_lora.sh to llama_npu_opt_lora.sh
* Update dev_opt_ppt.sh
* Rename dev_opt_ppt.sh to llama_npu_opt_ppt.sh
* Update llama_npu_opt_lora.sh
* Update and rename dev_opt_sft.sh to llama_npu_opt_sft.sh
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* add funsion ops
* update
* Update fusion_ops.py
* update
2024-05-14 13:47:45 +08:00
Tian
53ad2da1a8
[LLM] add assertion for enable_stage1_overlap in lora mode ( #8425 )
2024-05-13 15:29:43 +08:00
Galaxy1458
17fb497af4
add npu-llama-opt0-script ( #8401 )
...
* update
* add llama-npu-opt-script
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_lora.sh
* Update dev_opt_ppt.sh
* Update dev_opt_sft.sh
* Rename dev_opt_lora.sh to llama_npu_opt_lora.sh
* Update dev_opt_ppt.sh
* Rename dev_opt_ppt.sh to llama_npu_opt_ppt.sh
* Update llama_npu_opt_lora.sh
* Update and rename dev_opt_sft.sh to llama_npu_opt_sft.sh
2024-05-13 13:59:53 +08:00
Zhong Hui
474aaaaf30
fix llama3 eot. ( #8371 )
2024-05-13 13:24:15 +08:00
zxcd
d9f555e85f
Adapter new type promotion rule for Paddle 2.6 ( #8421 )
2024-05-13 11:15:44 +08:00
Zhong Hui
fe6277fa93
Fix safe open. ( #8422 )
2024-05-13 11:00:34 +08:00
Siming Dai
6bd2b0d9da
fix distdataloader, fix eval with dp group ( #8420 )
2024-05-13 10:46:56 +08:00
Tian
f27fdb41a3
[LLM] relocate tensor_parallel_output to avoid conflict ( #8419 )
2024-05-11 17:22:39 +08:00
gongel
29d40e2da1
last ckpt should be model done when afs ( #8402 )
2024-05-11 14:30:44 +08:00
zxcd
99fbc418f2
Fix type promotion problem. ( #8414 )
...
* fix type promotion problem.
2024-05-11 11:42:30 +08:00
Tian
c6e5459703
[Distributed] metric calculation supports tp logits ( #8370 )
2024-05-10 21:47:40 +08:00
zhangbo9674
ac117a108d
Refine position_ids for auto parallel training of llama ( #8363 )
...
* fix
* fix
* fix
2024-05-10 19:36:21 +08:00
wanghuancoder
16ef8f414c
pre copy pinned data to gpu ( #8386 )
2024-05-10 16:09:53 +08:00
Zhong Hui
9146c1e492
fix compatible with npu. ( #8409 )
2024-05-09 21:16:23 +08:00
DrownFish19
2619f17029
[LLM] Fix fuse or split with same key ( #8378 )
...
* fix fuse or split with same key
* fix
* fix eps
* update format
2024-05-09 17:51:32 +08:00
Siming Dai
a13975886e
[DistDataloader] Update implementation, add nested.py ( #8380 )
...
* Fix sharding overlap bug
* [DistDataloader] Update implementation, add nested.py
* Fix pipeline
* add first try
* update dataloader
---------
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-05-09 17:51:06 +08:00
Leo Chen
46f49dfa03
fit for llama3 for auto_parallel ( #8395 )
...
* fit for llama3
* add run scripts
2024-05-09 16:52:15 +08:00
w5688414
c02712e197
[bugfix] fix uie ( #8379 )
...
* fix uie
* fix windows bug
2024-05-09 14:24:42 +08:00
w5688414
eeafb21acf
Fix fast tokenizer import error ( #8367 )
2024-05-09 14:21:11 +08:00
Galaxy1458
6b3875c0dd
update ( #8399 )
2024-05-09 13:09:31 +08:00
Zhong Hui
d6ac1bd5da
[Performance] Optimize unified checkpoint save/load speed. ( #8204 )
...
* opt unified checkpoint save/load speed.
* fix bug.
* add fast safe open API.
* mix file open and mmap.
* fix
* add test for read fast read tensors.
* fix
* fix tests.
* remove profile log.
* fix
* fix ci
2024-05-08 20:50:18 +08:00
Zhong Hui
2f3faff947
fix init ( #8377 )
...
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-05-08 20:14:35 +08:00
Zhong Hui
0f458750b9
Revert "update" ( #8389 )
...
* Revert "update (#8359 )"
This reverts commit ae0bea9e85 .
* Update modeling.py
* fix
---------
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-05-08 19:00:00 +08:00
Liujie0926
829e7f03a5
fix llama2 benchmark ( #8376 )
2024-05-08 15:11:35 +08:00
Kunbo Ding
a85a9a9a1c
[BugFix] Update truncate in distributed training ( #8362 )
...
* Remove truncate
* update truncate
* update truncate
2024-05-08 15:08:01 +08:00
wanghuancoder
18e5cee909
refine benchmard bert ips stat ( #8361 )
...
* refine benchmard bert ips stat
* refine
* refine
2024-05-08 14:00:24 +08:00
w5688414
ae0450a63e
[paddle-pipelines] Update offline ann ( #8353 )
...
* Update offline ann
* update offline_ann.py
2024-05-08 10:48:44 +08:00
Tian
9f3cf822c6
[LLM] fix lora target modules on llama ( #8372 )
2024-05-07 18:54:01 +08:00
Galaxy1458
ae0bea9e85
update ( #8359 )
...
* change llama/modeling.py to opt npu performence
* update
* update
* Update modeling.py
* add judge
* update
* update
---------
Co-authored-by: Wang Huan <wanghuan29@baidu.com >
2024-05-07 16:29:31 +08:00
Yiqun Liu
09a0ce7278
Disable eval and predict for llama-2 benchmark. ( #8366 )
2024-05-07 14:35:50 +08:00
Sijun He
fdcabf8e5f
Update README.md
2024-05-06 12:09:11 +08:00
w5688414
3aa92ce269
Update llm docs requirements ( #8336 )
...
* Update llm docs
* Update requirements.txt
* try to fix
2024-04-30 15:01:15 +08:00
Galaxy1458
1c781d8e57
change llama/modeling.py to opt npu performence ( #8342 )
...
* change llama/modeling.py to opt npu performence
* update
* update
* Update modeling.py
* add judge
---------
Co-authored-by: Wang Huan <wanghuan29@baidu.com >
2024-04-30 14:33:37 +08:00
Leo Chen
e7de0fa5ca
add eliminate_transpose arg ( #8339 )
2024-04-30 14:03:24 +08:00
Jianbang Yang
ba9d9bd53c
[XPU] llama add xpu support ( #8282 )
...
* [XPU] llama add xpu support
* fix
* use try import
* fix
* refine
* refine
* refine
* refine
2024-04-29 16:20:11 +08:00
zhangbo9674
62b58a3f0c
[Pre-Train] Add num_hidden_layer for pretraining ( #8288 )
2024-04-29 14:54:12 +08:00
zhangbo9674
db52319a0c
fix bug ( #8329 )
2024-04-28 20:57:17 +08:00
Southpika
71cc40463b
[Tokenizer]Add Chat template ( #8226 )
...
* add jinja template
* add in cfg
* add system
* add notes
* fix apply chat template
* add generation flag
* update jinja ut
* fix error
* add syntax error check
* fix syntax error
* refresh codev
* refresh codecov
* update special token map in render
* update save
* add multi round chat ut
* use new api
* rm pdb
* add split ut
* fix des
* fix ut
2024-04-28 19:46:22 +08:00
Siming Dai
7c3ab53193
Fix sharding overlap bug ( #8333 )
2024-04-28 16:37:56 +08:00
Zhong Hui
ea2926c105
[BugFix] Fix gpu ci ( #8337 )
...
* fix test_synced_gpus
* fix all ci
2024-04-28 10:12:07 +08:00
Xuanang Chen
cb9ba2d185
textfeature_queryinput ( #8331 )
2024-04-26 18:55:48 +08:00
w5688414
a37f53d6e0
cherry pick paddlenlp 2.8 ( #8323 )
...
* cherry pick paddlenlp 2.8
* Update README
2024-04-26 16:00:41 +08:00
Ruibiao Chen
ae06f0cb66
[DEV] Support sync params in tensor parallel config ( #8311 )
...
* [DEV] Support sync params in tensor parallel config
* Update code
2024-04-26 15:10:01 +08:00
w5688414
6ed54d8cdc
fix try import ( #8332 )
2024-04-26 14:01:54 +08:00
Tian
de149078f8
[Distributed] fix lora ( #8325 )
2024-04-25 21:23:39 +08:00
DrownFish19
f29a7b905f
[LLM] Support fuse attention q, k, v weights ( #8202 )
...
1. add use-interface & fuse action
1.1. modify 1., code order
2. switch to name_mapping
3. solve tp branch
3.2 follow hui, handel qkv separately
3.3 handle pdparams
3.4 from torch
3.5 abandon low_cpu_mem_usage
3.6 solve shard branch
* 3.6.1 solve shard branch after rebase develop
* code clean
* remove debug comment
* Redefine fuse and split functions
* Redefine fuse and split functions
* comment and fix
* update method
* update QKV fuse and split
* support fuse weights in multi-files
* add precision compare
* simplify function call
* support use_fast_ffn
* clean modeling and configuration
* add test for gpt and opt
* fix tp_actions get
* add fast_ffn test
* add Qwen2Moe
* Revert "add Qwen2Moe"
This reverts commit 113b8838a7 .
* add test for split
* update doc
* update filter_dict_keys
---------
Co-authored-by: Zii <ziangqin.baidu@gmail.com >
2024-04-25 16:11:39 +08:00
zhangbo9674
1a73b76afa
fix ( #8321 )
2024-04-24 20:59:01 +08:00
lzydev
af3041c2ff
【AutoParallel】Add llama2 UT for auto-parallel ( #8300 )
...
* add llama UT
* add llama UT
* update data
* instatll external ops
* update data
* update data
2024-04-24 19:24:51 +08:00
wanghuancoder
273c593fd5
benchmark llama worker=1 ( #8305 )
2024-04-24 17:28:49 +08:00
Liujie0926
277f45bfbe
[dist CI]fix ( #8283 )
2024-04-24 15:42:01 +08:00
Liujie0926
d22bded11d
[benchmark]update llama2_ips ( #8322 )
2024-04-24 15:41:42 +08:00
w5688414
1ffa290841
[paddle-pipelines] Update mkdocs ( #8310 )
...
* Update mkdocs
* Update mkdocs configuration
* migrate paths
* change root path
* try to fix
* revert
* Update memory.md
* restore agent.md path
* fix path error
* Add index.md
* Update README.md
* Update README.md
2024-04-24 11:27:59 +08:00
Yuang Liu
eaca5b29b0
bug fixer ( #8314 )
2024-04-24 10:35:17 +08:00
Tian
bc91dc620f
[Distributed] [CustomDevices] Adapt SP on lora && polish MC2 APIs ( #8303 )
...
* [Distributed] adapt sequence parallel on LoRA (#8235 )
* [Distributed] [CustomDevices] adapt lora sp && polish MC2 APIs
2024-04-23 23:18:11 +08:00
Zhong Hui
98588af263
Support llama-3 ( #8307 )
...
* support llama-3
* Add llama-3 tokenizer
* fix for llama3
2024-04-23 19:18:52 +08:00
w5688414
e67fd7881d
[paddle-pipelines] Add pipelines documentation ( #8308 )
...
* Add pipelines documentation
* Update pipeline docs
* remove rss module
* Update docs
* Update site url
2024-04-23 11:06:29 +08:00
w5688414
40398976f6
[paddle-pipelines] faq semantic search question answering reamde ( #8292 )
...
* Update dense qa readme
* Update readme
* Update semantic search readme
2024-04-21 16:01:31 +08:00
Leo Chen
3bb4bb751e
add a100 test ground truth ( #8249 )
...
* add a100 test ground truth
* add requirements
* cache is_a100 result
* update
* update
* update sp allclose
* fix check_result
* add ground truth for llm_gpt_dygraph
2024-04-18 19:38:20 +08:00
Yiqun Liu
909ff315d5
Add p2p_comm_overlap for Llama-2-70b benchmark. ( #8276 )
2024-04-18 16:21:21 +08:00
Tian
beb433a9ae
[LLM] add memory stats to logger of trainer ( #8269 )
2024-04-17 10:22:44 +08:00
Southpika
c3ec984db7
[Bug Fix]Fix merge parameters in pp ( #8239 )
...
* update merge pp
* update des
* renew
2024-04-16 20:16:12 +08:00
Liujie0926
07908243ee
update paddlenlp ( #8267 )
2024-04-16 16:48:53 +08:00
wanghuancoder
ee88c12457
use tensor.shape bug not paddle.shape(tensor) ( #8260 )
...
* use tensor.shape bug not paddle.shape(tensor)
* refine
* refine
2024-04-16 14:22:10 +08:00
sneaxiy
f658fa7a89
fix sharding <100 limitation ( #8146 )
2024-04-16 14:21:49 +08:00
zhangbo9674
1ef7503861
fix ( #8265 )
2024-04-15 15:43:23 +08:00
Sijun He
f4a8f4cb7e
Update tests.yml ( #8268 )
2024-04-14 15:49:03 +08:00
Siming Dai
3566381385
[BugFix] Try except sequence parallel utils ( #8189 )
...
* try except sp
* fix sp import
2024-04-12 22:19:48 +08:00
Southpika
3515e32923
[LLM]Support Gemma model ( #8082 )
...
* add model
* add cfg&tokenizer
* update weight share
* rm useless notes
* rm pdb
* add cfg
* fix version
* fix
* fix des
* fix des
* update url
* fix some logic
* add it model
* update_cfg
* add modeling ut
* add link
* fix typing
* fix typing
* add init
* add tokenizer ut
* fix small bug
* add alibi
* add addedtoken str
* add special attr
* add tp ut
* merge
* apply api change
* rm hard code cfg
* fix ut
* fix ut
* add zero padding
* upload bf16 safetensors model
* fix
* add gemma in sft data convert
* add gemma in sft data convert
* add gemma tokenizer
* fix des
* rm fast tokenizer
* update sft cfg
* cherry-pick pp from develop
* add cfg
2024-04-12 16:04:20 +08:00
lugimzzz
0d055448c3
add scaling ( #8256 )
...
* add scaling
* add scaling
* add scaling
* format
2024-04-12 11:18:13 +08:00
Liujie0926
662feb1692
[dist]pip requirements-dev.txt ( #8258 )
...
* pip requirements-dev.txt
* fix
2024-04-11 21:07:18 +08:00
Kunbo Ding
62d5609c3d
Fix timer for NPU&XPU ( #8261 )
...
* Fix timer for NPU&XPU
* Fix NPU/XPU timer
2024-04-11 19:05:31 +08:00
w5688414
84615ea086
Fix gpt download bug ( #8253 )
2024-04-11 14:06:34 +08:00
w5688414
814e9c4724
Add DeBERTa model ( #8227 )
...
* Add DeBERTa model
* trigger unitest
* Add hf mirror
* fix unitest
* Update deberta v2 model
* Update debertav2
* Update deberta config
* Update deberta docs
* Update docs
* support stabledropout
* refine tokenizer and comments
* fix tokenizer
* try to fix connection error
* Update deberta unitest
* Add deberta doc
* removev useless comments
* Add deberta contents.rst
2024-04-11 11:47:32 +08:00
yujun
9b89f45d6c
[BUG] fix to_static ( #8194 )
...
* fix
* 限制huggingface hub版本
2024-04-11 11:17:32 +08:00
Lu Qi
2900f78002
[LLM] Optimize llm/GPT3 performance ( #8172 )
2024-04-11 11:15:18 +08:00
Ting
a6d3a2857b
Pissa ( #8250 )
...
* single gpu pissa impl
* fix
* scale update
* raise error in mp
* update pissa config
* add pissa config
2024-04-11 11:00:45 +08:00
Tian
bd25e0cd62
[LLM] add decay steps option for finetuning ( #8251 )
2024-04-10 21:32:00 +08:00
liym27
98a4b84bdc
[AutoParallel] support GPT for auto_parallel ( #8160 )
...
* add modeling_auto.py
* add run sh
add run_pretrain
modify llama test loss
* comment llama
comment llama
* update
* fix
2024-04-10 19:47:48 +08:00
tianhaodongbd
79cb8b6acd
fix llama fa bug ( #8237 )
2024-04-09 18:40:32 +08:00
Yuang Liu
c1aad028c2
bug fix ( #8238 )
2024-04-09 17:34:48 +08:00
Zeyu Chen
70f4a6fcf8
Rename ernie-tiny to ernie-3.0-tiny
2024-04-09 15:35:47 +08:00
zhangbo9674
220d867d16
fix ( #8234 )
2024-04-09 15:29:35 +08:00
gongel
a5f69e4543
add checkpoint_done to last model ( #8223 )
2024-04-08 14:56:20 +08:00
NINGBENZHE
ae7dc15a62
add mc2 & finetune fused ( #8139 )
2024-04-03 20:20:24 +08:00
Tian
2273ee7812
[Distributed] Support pp non batch comm ( #8097 ) ( #8222 )
...
* add disable_non_batch_p2p_comm to pipeline_parallel_config
2024-04-02 11:45:23 +08:00
zhangbo9674
7b493a8e8b
Support sharding for auto_trainer ( #8164 )
...
* add
* fix
* refine code
* refine
* fix
* fix
* fix
* refine
2024-04-01 10:23:14 +08:00
w5688414
4d661bc34b
remove ._static_mode for static model ( #8214 )
2024-03-29 18:05:46 +08:00
wuhuachaocoding
50b449104f
update for npu. ( #8210 )
2024-03-29 16:26:58 +08:00
w5688414
57b22e7052
[Paddle-Pipelines] Add matryoshka representation learning ( #8165 )
...
* Add matryoshka training
* Update README.md
* Update modeling.py
* reformat trainer
2024-03-28 14:59:14 +08:00
lzydev
6b8f7f918a
change the dtype of initializing the model ( #8199 )
2024-03-27 20:43:57 +08:00
yujun
acfa7f29b5
关闭从hf下载和aistudio下载的单测. ( #8198 )
2024-03-27 18:00:06 +08:00
lzydev
4d49a3e8a2
【AutoParallel】Change llama in auto-parallel ( #8151 )
...
* change llama in auto
* change ci
* polish
2024-03-26 20:42:57 +08:00
Zhong Hui
89bff208da
save rng state not seed. ( #8185 )
2024-03-26 16:48:44 +08:00
WAI-clear
6b5099ada2
add long sequence strategies ( #8076 )
...
* test
* remove test.txt
* add long sequence strategies
* long sequence V1
* draft
* draft
* draft new
* add long sequence stratiges
* add long sequence strategies new
* fix format
* fix conflict
* fix format
* fix error
* fix error
* fix format
* fix format
* fix format
* fix format
* close @slow
* fix test
* fix error
* modify try_catch
* fix format
* fix format
* fix format
* add bloom_alibi
* fix error
* add dynamic_to_static
* add dynamic_to_static
2024-03-26 09:42:01 +08:00
wuhuachaocoding
a0457d14d5
adapt npu FA. ( #8171 )
2024-03-25 16:50:47 +08:00
Lu Qi
a5d87f5d1a
[BugFix] Fix FusedLinearWithGradAdd usage ( #8178 )
2024-03-25 15:44:47 +08:00
Guoxia Wang
a33a4f341a
fix read-data timer when ignore_data_skip=False and skip_profile_timer=False ( #8177 )
2024-03-25 14:56:22 +08:00
yujun
d577e19b5e
[LoRA] add quick_lora ( #8106 )
...
* quick_lora
* add use_quick_lora
* update
* update
* update
* update
* When lora and use_quick_lora are enabled, recompute_use_reentrant must be set to True to prevent any potential errors from occurring.
* update code
* update
2024-03-25 13:56:58 +08:00
Haohongxiang
feb69cf7c2
add arg ( #8168 )
2024-03-22 17:02:31 +08:00
w5688414
f005084a87
[Paddle-pipelines] Add pytorch retrieval model tutorials ( #8159 )
...
* Add pytorch retrieval model tutorials
* Update doc
* fix unitests
* Update docs
* Update torch2paddle tutorial
2024-03-21 16:00:51 +08:00
gongel
4d35236aba
Json parsers supports raise error ( #8163 )
2024-03-21 14:28:21 +08:00
yinwei
a092775a52
Replace Sequence Parallel to Paddle Sequence Parallel ( #7966 )
...
* sp support overlap
* add mixtral sp
2024-03-21 14:05:59 +08:00
wuhuachaocoding
8f2b19d9fd
support mc2 for mp lora. ( #8161 )
2024-03-21 12:13:56 +08:00
Zhong Hui
ac57ad7c77
Squashed commit of the following: ( #8157 )
...
Merge remote-tracking branch 'origin/develop' into bugfix/sample_generate
Update Makefile
Update Makefile
remove paddle as require.
fix https://github.com/PaddlePaddle/Paddle/issues/62860
fix test_sample_generate bug.
2024-03-20 20:36:00 +08:00
Siming Dai
b6dcb4e19e
[Unified Checkpoint] Fix tie_weights save and load ( #8137 )
...
* fix unified checkpoint tie_weight
* unify static2struct_name_mappings
* fix chatglm model
* fix trainer
* fix attr
* simplify code
* add single card config save
2024-03-19 21:54:33 +08:00
Liujie0926
99802de4ee
add auto_pir case ( #8144 )
2024-03-19 17:39:37 +08:00
zxcd
d46a96e320
Adapter new type promotion rule for Paddle 2.6 ( #8079 )
2024-03-19 15:07:59 +08:00
Ting Liu
7370d72e5b
add rslora & lora+ ( #8111 )
...
* add rslora & lora+
* remove print
* reformat
* update
* fix bug
* add rslora+ ci
* remove magic number
* update
* empty
---------
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2024-03-19 13:02:02 +08:00
lugimzzz
1cd270a155
text classification ( #8110 )
2024-03-18 14:26:33 +08:00
ShenLiang
57791863fc
fix config bug ( #8128 )
2024-03-18 10:17:18 +08:00
Liujie0926
1b373a8ec7
[benchmark]add skip_memory_metrics for ce_gpt ( #8132 )
...
* add skip_memory_metrics
* add skip_memory_metrics for autotuner
2024-03-18 10:07:18 +08:00
zhengzhonghui
d83bd5ef3c
[AutoParallel] unify llama model ( #8127 )
...
* [AutoParallel] unify llama model
* attention_mask can be None
2024-03-15 16:33:11 +08:00
lzydev
c406d90545
【AutoParallel】Add strategy with more options ( #8114 )
...
* add strategy
* polish
2024-03-14 16:53:21 +08:00
Ting Liu
880d2ea68d
qwen init bug fix ( #8120 )
2024-03-14 14:47:22 +08:00
Zhong Hui
5fdc3c2126
Update trainer.py ( #8117 )
2024-03-14 13:56:44 +08:00
Siming Dai
0a39fbffd1
[Trainer] Change num_train_epochs default value ( #8113 )
...
* change num_train_epochs default value
* update docs
2024-03-13 20:38:31 +08:00
Liujie0926
e145bfc97a
[dist benchmark]add llama2 with autotuner ( #8108 )
...
* benchmark scripts
* update case device
* test
* Revert "test"
This reverts commit 75bf72c7ee .
* update
* Update CE_meta-llama-Llama-2-7b_pretrain_bs32_bf16_autotuner.sh
* fix
* update
* add top1 case
* fix
* add 13b/70b autotuner
* update autoconfig
* remove enable_stage1_tensor_fusion
* update ips
* add top1 config
2024-03-13 14:10:33 +08:00
Liujie0926
8f9734df29
update llm_gpt_recompute_bs32_bf16_MP2-SD4-stage1 loss_base for Paddle#62500 ( #8107 )
2024-03-13 14:09:56 +08:00
骑马小猫
acacb470c2
[Bug fixes] convert min_new_token -> min_new_tokens ( #7883 )
...
* convert min_new_token -> min_new_tokens
* fix f-string linting
* update warning log testing
2024-03-12 20:02:28 +08:00
LOVE-YOURSELF-1
646a42919d
Download----fix new bug ( #8088 )
...
* fix new bug
* resolve bug
* modified locks_path
* fix None bug
* Update bos_download.py
* Update tokenizer.py
* skip
---------
Co-authored-by: yujun <50394665+JunnYu@users.noreply.github.com >
Co-authored-by: yujun <573009727@qq.com >
2024-03-12 19:02:51 +08:00
PeiyuLau
196db7ee2f
dist dataloader: add cuda compilation check ( #8099 )
2024-03-12 17:46:09 +08:00
ShenLiang
60b9755f70
[BugFix]Rm overlap limit in dp & pp ( #8089 )
...
* rm overlap in dp & pp
* fix bug in comm overlap
2024-03-11 18:51:59 +08:00
greycooker
6fd186da24
[BugFix] fix test tensorboard callback ( #8066 )
2024-03-11 16:17:00 +08:00
gongel
557c794655
add log ( #8058 )
...
Co-authored-by: gongel <gongel@qq.com >
2024-03-11 11:51:36 +08:00
ShenLiang
d48dc75f7c
paddlenlp/trainer/training_args.py ( #8051 )
2024-03-11 10:43:39 +08:00
Sonder
67964cf583
[Distributed] Add dp_gradient_sync_after_accumulate ( #8045 )
...
* add dp_gradient_sync_after_accumulate
* recover run_pretrain_auto_static.sh
* recover
* use gradient_sync_after_accumulate
* change name under DP_OPTIMIZATION
* add doc for data_parallel_config
* update notes
* add note and recover codes
* add note
2024-03-08 17:36:35 +08:00
LOVE-YOURSELF-1
95c8b24f7c
Download重构 ( #8020 )
...
* download
* modified file
* modified from_pretrained
* modified config
* modified download
* test_tokenizer
* Delete tests/transformers/from_pretrained/run.sh
* Update test_tokenizer.py
* Update tokenizer_utils_base.py
* test_model
* test_model
* test_model
* Remove comments
* Remove comments
* add requirements
* update bos download
* Update test_model.py
* clear unused import
* modified bug tokenizer_utils_base.py
* change safetensors
* modified load generation config
* add requestion
* 更新
* modified error
* fix bug
* add \n
* Update __init__.py
* add requestion
* modified download
* 重测
* Update test_tokenizer.py
* Update requirements-dev.txt
* Update requirements.txt
* delete from_pretrained
* make superior
* Update run_pretrain_trainer.py
---------
Co-authored-by: yujun <573009727@qq.com >
2024-03-08 16:41:40 +08:00
Ruibiao Chen
b504a7370c
Support hybrid_parallel_topo_order for auto parallel Llama ( #8011 )
...
* Support hybrid_parallel_topo_order for auto parallel Llama
* Set order in hybrid_configs
* Update get_mesh_with_dim
* Update loss for CI baseline
* Fix CI errors
* Update loss
* Update loss
* Update loss
* Update loss
* Update loss
2024-03-08 11:48:18 +08:00
cyber-pioneer
93aa4bc9ca
fit cinn and pir flag in predictor ( #8071 )
2024-03-07 17:07:11 +08:00
Siming Dai
e34cbe98e3
[Unified Checkpoint] Fix lora unittest ( #8070 )
2024-03-07 16:14:29 +08:00
liuzhenhai93
dd8a46c81d
unify_criterion_inputs_dynamic_and_static ( #8053 )
...
* unify_criterion_inputs_dynamic_and_static
* polish
---------
Co-authored-by: liuzhenhai93 <liuzhenhai@baidu.com >
2024-03-07 10:54:28 +08:00
Liujie0926
972542b19b
fix ci scripts ( #8063 )
2024-03-07 10:06:00 +08:00
zhang junjun
fb0ddb5252
Revert "Fit pir flag in predictor ( #8048 )" ( #8065 )
...
This reverts commit 5df6e7d1d4 .
2024-03-06 20:58:19 +08:00
lugimzzz
67f31c6e55
update pp ( #8059 )
...
* update pp
* Update paddlenlp/transformers/model_utils.py
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
---------
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2024-03-06 19:26:06 +08:00
cyber-pioneer
5df6e7d1d4
Fit pir flag in predictor ( #8048 )
...
* locate llama2 while
* fit pir flag
* fix code
* add cinn flag
2024-03-06 16:01:03 +08:00
greycooker
32d8b3f4a0
[BugFix] Fix Test wandb callback bug ( #8056 )
2024-03-06 13:17:11 +08:00
Yiqun Liu
092c84502c
Optimize the log and enable to print the number of tokens each second. ( #7853 )
...
* Optimize the log and enable to print the number of tokens each second.
* Update the prompt message of logging.
* Add is_pretraining to switch whether calcaulating and printing in tokens.
* Add the interval_samples_per_second back.
2024-03-06 10:39:06 +08:00
Ruibiao Chen
e3cb5d239b
Fit sharding optimization for auto parallel llama ( #8021 )
...
* Fit sharding optimization for auto parallel llama
* Add args enable_allreduce_avg_in_gradinent_scale
* Fix CI errors
2024-03-05 14:17:42 +08:00
wawltor
4b1c54b559
fix the index_dataset with old data format ( #8049 )
2024-03-04 19:38:59 +08:00
lzydev
17cc16964e
【AutoParallelism】fix dataloader bug and add ci for static ( #8014 )
...
* fix dataloader bug and add ci for static
* change dy2st ci
* disable fused_rms_norm
* disable pir-executor
* add loss on V100
* polish
* polish
* delete dy2st ci
* delete dy2st ci
2024-03-04 14:19:45 +08:00
co63oc
77a23d1275
Fix _cache_founf_inf ( #7997 )
...
* Fix
* Fix
* Fix
2024-03-04 10:36:02 +08:00
Ruibiao Chen
a5749005bc
Add SwiGLU for auto Llama ( #8038 )
2024-03-02 18:36:59 +08:00
zhang junjun
b7bfb262a4
[CI] fix test ptuning ( #8040 )
2024-03-01 15:32:02 +08:00
Siming Dai
462ebaa9b3
[Mixtral] Add mixtral moe ( #7803 )
...
* Add mixtral moe
* fix mixtral moe
* add mixtral lora config
* fix load balancing loss
* add sft scripts
* add unittest
2024-03-01 14:13:00 +08:00
wawltor
0d564905dd
support the loss mask for the pretrain ( #8034 )
2024-03-01 13:05:14 +08:00
lzydev
dff7dcc4ff
init model using float32 ( #8033 )
2024-03-01 10:42:33 +08:00
DrownFish19
b72f35256c
[DATA] Remove repeated chars during preprocessing ( #7739 )
...
* add remove_repeated_chars
* update max_repeated_len
2024-02-29 12:42:12 +08:00
Siming Dai
6f45e95cc4
[Unified Checkpoint] Support peft model ( #7691 )
...
* fix qwen merge tp concat
* support peft unified checkpoint
* add prefix numpy save
* add single node peft
* fix peft distributed load
* add single node optimizer load
* support peft tensor parallel for unified checkpoint
* add prefix from_pretrained from safetensors
* add lora and prefix safetensor name
* fix typo
* fix params that is not enough to save per worker
* fix lora pp tp split
* add peft uc tests
* fix master_weight is None
* add ptuning uc tests
* fix tensor copy blocking
* unify lora and ptuning
* fix load_best_model
* fix index json name
* remove ptuning unittest
2024-02-29 11:02:24 +08:00
Difer
37e85e695d
add autotuner buffer check ce case ( #7993 )
...
* add autotuner buffer check ce case
* fix some errors
* fix some errors
* fix some typo error
2024-02-28 14:34:58 +08:00
SebastjanPrachovskij
5bab940a22
Add SearchApi integration ( #7936 )
2024-02-28 11:21:08 +08:00
Siming Dai
db490623ae
[DOC] Add unified_checkpoint doc ( #7961 )
2024-02-26 14:43:24 +08:00
Liujie0926
28b9eb84c1
[AutoConfig]add N2C16 ( #7915 )
...
* add N2C16
* fix
* update N2C16_gbs to 16
* fix env
* fix
* fix
* update
* fix env set
* fix
* fix bug
* update
2024-02-26 14:11:39 +08:00
Difer
e8d6233c5c
[AutoConfig]add N1C8_resume ( #7950 )
...
* add N1C8_resume
* fix some errors
2024-02-26 10:17:17 +08:00
Zhang Ting
6a6a9fe8d6
support GQA ( #7906 )
...
* fa and fuse rope support gqa/mqa
* add tests for llama with GQA
* rename test
* add test
* remove test
* remove comments
* fix dtype
2024-02-23 10:29:23 +08:00
yujun
9931d65cd1
fix ( #7992 )
2024-02-22 15:54:54 +08:00
yujun
2edcd08622
[Trainer] ignore_save_lr_and_optim ( #7978 )
...
* ignore_save_lr_and_optim
* 只对finetune的测试开启ignore_save_lr_and_optim
2024-02-22 11:36:59 +08:00
lzydev
b2be2fc191
【AutoParallel】Add semi autoparallel amp ( #7985 )
...
* add semi-autoparallel amp
* support amp in semi-auto
* change loss base
* polish
2024-02-21 16:05:04 +08:00
Haohongxiang
5c9c8d3cb4
[model_zoo/gpt-3] Fix bugs from PR-61236 which cleared paddle.jit.dy2static.utils_helper ( #7989 )
...
* fix bugs
* add try import to support develop and release
2024-02-20 20:30:11 +08:00
sneaxiy
4eb6f0a4dc
add swiglu operator ( #7967 )
2024-02-20 17:50:25 +08:00
Siming Dai
7e643ada4c
fix multi-node same output json written ( #7977 )
2024-02-19 11:41:14 +08:00
NINGBENZHE
394a3e2898
add npu fused and fix AICPU ( #7976 )
2024-02-07 11:10:09 +08:00
w5688414
7b9cb9bc9e
Update text matching ( #7973 )
2024-02-06 14:37:40 +08:00
Siming Dai
b312959a77
[Unified checkpoint] Turn off unified checkpoint when using sharding stage3 ( #7969 )
...
* turn of uc when sharding stage3
* fix
2024-02-06 11:26:45 +08:00
Zhong Hui
a33ab3781f
skip some trainer test. ( #7949 )
2024-02-05 18:05:11 +08:00
Leo Chen
8d6e81339a
rename files and add readme for llama auto_parallel ( #7944 )
...
* rename files and add readme for llama auto_parallel
* rename files and add readme for llama auto_parallel
* fix ci
2024-02-01 13:10:41 +08:00
Yuang Liu
c0c64fa1e5
gqa fuse attention qkv ( #7890 )
...
* gqa fuse attention qkv
* add annotation for the fusion
2024-02-01 11:50:02 +08:00
Haohongxiang
3a704ea0bc
[Auto Parallel] Support semi-auto trainer and fit Llama2 training ( #7885 )
...
* support semi-auto trainer and fit Llama2 training
* support shard_dataloader in dynamic semi-auto
* rewrite traning loop
* refactor traning loop
* refine args of auto trainer
* broadcast loss
* add auto ci cases
2024-01-31 18:51:57 +08:00
Kunbo Ding
44bfeb01f8
fix timer device ( #7939 )
...
fix timer device
2024-01-31 16:13:34 +08:00
greycooker
0d6fc1ecbf
Trainer add wandb and tensorboard ( #7863 )
2024-01-31 15:01:09 +08:00
Kunbo Ding
6e0ac44080
RuntimeTimer for the toolkit ( #7913 )
...
* RuntimeTimer for the toolekit
* RuntimeTimer for the toolekit
* reformat
* fix timer and load checkpoints
* remove reset
2024-01-29 22:16:02 +08:00
Kunbo Ding
9a31322910
[Improvement] fix logger level ( #7903 )
...
* fix logger level
* fix training args logger level
2024-01-29 20:44:32 +08:00
Liujie0926
5951179b32
[CE]add gpt sharding_v2 case ( #7914 )
...
* add sharding_v2 case
* update run_mode to device_num
* fix
* fix
2024-01-29 16:33:51 +08:00
Zhong Hui
a86de1b546
trainer refactor ( #7909 )
2024-01-29 14:35:41 +08:00
Ting Liu
2a5e5a624b
add qwen benchmark ( #7758 )
...
* add qwen benchmark
* update qwen benchmark scripts
* qwen 7b benchmark
* arg change
* fix wrong args
* fix args
* update
2024-01-29 11:05:58 +08:00
Zhong Hui
688adb81e3
[RELEASE] Update README.md ( #7834 )
2024-01-26 15:57:38 +08:00
Liujie0926
879a853d25
[AutoConfig]add benchmark scripts ( #7897 )
...
* add auto_tuner
* fix
* update log_file
* update json
* close eval/predict
* fix run_mode
* update
* fix
* Revert "fix"
This reverts commit e526c8680b .
* Revert "update"
This reverts commit 9cbd773e9b .
* update prepare
* Revert "Revert "update""
This reverts commit 811b6a4ff4 .
* Revert "Revert "fix""
This reverts commit 32cc005265 .
* update finetune prepare
* update
* add
* update sft/lora steps
* update json
* update
* add benchmark
* update years
* update a100
2024-01-26 15:42:59 +08:00
Tian
95c0dd4593
[LLM] fix llama precision on custom devices ( #7895 )
2024-01-26 15:34:53 +08:00
Tian
1f82403063
[CustomDevice] fix loading rng state on custom device ( #7894 )
2024-01-26 15:34:00 +08:00
Ernestina
cdfa8614ac
[Hackathon 5th No.73] ToT ( #7660 )
...
* Hackathon TASK73 ToT
1. finish meta/llama2 version
* update readme tutorial
* modify according to Lint
* modify according Link
1. resolve one unused variable
* Delete LICENSE
* Update LICENSE
* black format
* isort format
* Update search_crosswords-dfs.ipynb
* update files formats
* Update LICENSE
* Update LICENSE
* Update LICENSE
* Update LICENSE
* delete test data
* delete some unnecessary files
1. delete some unnecessary files according to comments.
* add paddlenlp-llama2
1. add llama2 in paddlenlp
* fix one bug
* fix outputs bug
1. format data structure
* delete meta/llama2
* modify according to comments
1. add acknow into readme
2.change png into url in readme
3. add all the models supported by paddlenlp
* change according to comments
* Delete .gitignore
* Create .gitignore
* Move directory
* Add tree of thoughts scripts
* add first dir
* add note
* Update README.md
add test results of facebook/llama-2-7b-chat and llama-2-13b-chat
* Update requirements.txt
delete unnecessary packages
* Update demo.py
add Ernie
* Update .gitignore
delete pyproject.toml
* Update run.py
add Ernie
* Update __init__.py
add Ernie
* chat templates
* add Ernie
* Update llama.py
兼容Ernie
* Update bfs.py
兼容Ernie
* Update models.py
兼容Ernie
* Update run.py
* format style
* format style
* format style
* format style
* format style
* format style
* format style
* format style
* 删掉重复的“测试结果”
* 删除Ernie的token,设置环境变量解决
* format style
* format style
* 删除注释掉的代码
---------
Co-authored-by: root <root@tutu-win.localdomain >
2024-01-26 15:00:34 +08:00
Zii
3a42280eeb
[CE] Add Qwen into CE process ( #7887 )
...
* add qwen & baichuan into CE
* add Qwen & Baichuan into CE, cleaned for PR
* add only Qwen into CE, cleaned for PR
* dd only Qwen into CE, open switch_ir_optim, cleaned for PR
* add only Qwen into CE, keep switch_ir_optim open, add ce script
2024-01-26 14:24:21 +08:00
Ruibin Cheung
13fd6555e8
[Bug Fix] fix allreduce tensor dtype ( #7876 )
...
* [Bug Fix] fix allreduce tensor dtype
Reason: some CCL not support bool dtype
* update int8 to int32
2024-01-25 10:59:22 +08:00
lzydev
ca7944418e
support bf16 loss in static ( #7874 )
2024-01-24 20:37:31 +08:00
Lu Qi
eafa066020
update ( #7882 )
2024-01-24 13:00:27 +08:00
lzydev
b456110689
【AutoParallel】Support 'master_grad' in Llama in static auto-parallelism ( #7658 )
...
* add master_grad
* add llama_fp16_test
* polish
* merge develop
2024-01-24 11:13:48 +08:00
骑马小猫
b50db1ce70
[Bug Fixes] update chatglm1 tokenizer ( #7870 )
...
* update chatglm1 tokenizer
* update additional_special_token
* add is_training tag
* fix linting
2024-01-23 23:23:12 +08:00
Wu Chencan
2a8d1380fa
[LLM]support QWenVL second part ( #7808 )
...
* add qwenvl second part
* improve code & add comments
* add qwenvl test
* update qwenvl tests
* remove print
2024-01-23 11:04:25 +08:00
RichardWooSJTU
4a9c76655e
revert benchmark codes ( #7871 )
2024-01-22 20:50:55 +08:00
wawltor
2ac42ca498
Update ppo_main.py ( #7881 )
2024-01-22 20:03:59 +08:00
wawltor
7a5fbe7a5b
Update reward_main.py ( #7880 )
2024-01-22 20:02:52 +08:00
Guo Sheng
d4de12c763
Add PPO training. ( #7305 )
...
* Add reward model and training.
* Make reward training runable
* Add eval in reward training.
* For result alignment.
* training setting.
* PPO alignment with Beaver
* Align training with Beaver.
* Clean ppo_trainer.py and debug print.
* Move score models from paddlenlp to example and add AutoModelForScore.
* Remove eval.py, eval_score.py.
Fix AutoModelForScore and update reward training usage.
* Update ppo_trainer.py after merge with develop.
* Make PPOTrainer support reference/reward Trainer optionally.
* Complete README.
* Add unittest test_load_from_custom_arch for AutoConfig
* Add test_synced_gpus.py for generation.
* Add more test cases in test_synced_gpus.py
* Support tensor parallel.
* Add require_gpu to test_synced_gpus.py.
2024-01-22 19:20:28 +08:00
Zhong Hui
e3fc63a250
cherry pick empty cache. ( #7868 )
2024-01-22 16:25:57 +08:00
yinwei
fcb532a43a
[CE] Add CE for Hybrid Parallism ( #7817 )
2024-01-22 15:04:32 +08:00
骑马小猫
082dc52f20
[Improvement] fix ops improting in utils ( #7865 )
...
* fix ops improting in utils
* update the reset_stop_value importing
* update the error msg of import paddlenlp_ops
* rename error -> warning
2024-01-22 13:29:35 +08:00
greycooker
283c535a50
fix_trainer_argparser ( #7860 )
2024-01-22 12:24:54 +08:00
zhang junjun
c1ccafaca8
[CI] add ci approval pipelines ( #7859 )
...
* [CI] add ci approval pipelines
* update
* update
* update
2024-01-19 15:06:14 +08:00
Haohongxiang
16d3c49d2b
[Auto Parallel] Support dynamic semi-auto training in Llama2 model ( #7851 )
...
* update
* add ci
---------
Co-authored-by: liuzhenhai93 <liuzhenhai93@outlook.com >
2024-01-18 16:31:59 +08:00
骑马小猫
915fa43712
[New Features]add ranks testing for test_predictor ( #7800 )
...
* add ranks testing
* update gpus testing
2024-01-18 15:33:11 +08:00
DrownFish19
48c1313da9
[unified checkpoint] fix checkpoint names ( #7795 )
...
* fix(unified checkpoint): add config save
* fix(unified checkpoint): name change
change master weigths name to model weigths name when SKIP_SAVE_MODEL_WEIGHT
* fix(unified checkpoint): model weights load
when skipping model weighs save and saving master weights as model weights, unified checkpoint needs choose the model weights to load into master weights.
* test(unified checkpoint): add test cases
To test file list and file name when skip_save_model_weight=1
* test(unified checkpoint): add enable_all_options
* fix(unified checkpoint): fix last ckpt save
* fix(unified checkpoint): unified config format
2024-01-17 17:17:26 +08:00
DrownFish19
5a01362b4a
[unified checkpoint] Fix last checkpoint save ( #7854 )
...
* fix(unified checkpoint): fix last ckpt save
* fix(unified checkpoint): unified config format
2024-01-17 17:16:05 +08:00
周周周
cf907fc683
Support 5.2 bloom ( #7846 )
...
* initial commit
* remove debug code
* remove debug code
* modify predictor.py
* remove print
* remove rope_emb in bloom
* format
* add test
2024-01-17 10:33:10 +08:00
Zii
e4bd6c344e
[LLM] fix Qwen-7b-Chat precision issue ( #7823 )
...
fix qwen-7b0chat model batch inference precision issue
add Qwen-7B-Chat to PaddleNLP unit test
2024-01-16 17:49:23 +08:00
ZeyuTeng96
c9d22dba87
[text_classification_retrieval_based] fix bug of evaluate.py ( #7844 )
2024-01-16 12:17:27 +08:00
ZeyuTeng96
04142e3ca8
[faq] fix bug of evaluate.py ( #7840 )
2024-01-12 23:07:46 +08:00
ZeyuTeng96
2a5dba9591
[semantic_indexing] fix bug of evaluate.py ( #7843 )
2024-01-12 23:06:47 +08:00
骑马小猫
b44f88857e
[Bug fixes] update chatglm tokenizer ( #7797 )
...
* update chatglm tokenizer
* update chatglm2 tokenizer
* update chatglm2 tokenizer
* update max & src slider
* add chatglm2 tokenizer
2024-01-12 21:51:39 +08:00
Shenghe Wang
8bc06b0ce8
fix the bug of reading files ( #7836 )
2024-01-12 16:21:19 +08:00
ZeyuTeng96
a1d1aee6ff
[neural search][fix bug of evaluate.py] ( #7832 )
...
* [fix][fix bug of evaluate.py]
* Update evaluate.py
* Update evaluate.py
2024-01-11 17:16:25 +08:00
Siming Dai
ee4b9dde93
[Pretrain] Fix eval during pretrain ( #7827 )
...
* add unified checkpoint training args doc
* fix eval during pretrain
* fix
2024-01-11 17:11:55 +08:00
liuzhenhai93
f039d097d3
fused rms spmd ( #7830 )
2024-01-11 16:44:22 +08:00
lugimzzz
4069f22c01
fix lora ( #7824 )
2024-01-11 11:06:22 +08:00
Ruibin Cheung
abb0d3c91f
[Bug Fix] fix paddle multipy_fwd_func warning message ( #7818 )
2024-01-11 10:51:45 +08:00
RichardWooSJTU
c5d8d5bb2d
[LLM] Support block_attention/cachekv quant for llama ( #7649 )
...
* support blha and cache kv quant
* lint
* fix unit test
* fix infer when blha is on
* code refine
* add docs and fix ops
* merge blha read res in predictor
* finish docs
* add docs and unittest
* add unittest
* migrate read res
2024-01-10 22:23:38 +08:00
greycooker
5a32534df2
Trainer support simultaneously parse JSON files and cmd arguments. ( #7768 )
...
* add parse_json_file_and_cmd_lines
* change unit test file path
* Change the way the JSON file is determined
* Merge parameter parsing judgment branches and add comments.
* remove the special handling of output_dir
* Add remaining_args warning
2024-01-10 15:15:48 +08:00
lugimzzz
5c2bf81130
[llm]support qlora pp ( #7801 )
...
* supprt qlora pp
* fix scale dtype
2024-01-10 11:48:17 +08:00
Yuanle Liu
75e898146a
delete useless code for write_cache_kv.cu ( #7812 )
2024-01-10 10:43:37 +08:00
骑马小猫
3056226df1
fix br gradio ( #7788 )
2024-01-09 20:45:41 +08:00
Zhang Ting
d51edd0c1b
pipeline parallel benchmark ( #7759 )
...
* pipeline parallel benchmark
* add seed setting
* fixed
2024-01-09 20:16:53 +08:00
Siming Dai
dab175b58b
[Pretrain] Fix eval during pretrain ( #7806 )
...
* fix eval during pretrain
2024-01-09 15:56:38 +08:00
tianhaodongbd
fc6ab70e8e
[CE] Add MP2-SP2-pp4-vpp2-SD2-stage1-mbs2-acc8 ce ( #7774 )
2024-01-09 15:08:18 +08:00
yinwei
393ac18789
[CE] Add CE for Distributed Hybrid Parallel ( #7782 )
2024-01-09 14:07:55 +08:00
Wu Chencan
37b4fe0285
[INFER][LLM] Support qwen in fined grained dybatch v1 ( #7644 )
...
* init qwen inference model
* fix name
* fix hidden dim
* fix dtype
* fix length
* fix attention_mask
* fix up & gate dtype bug
* fix ffn1 weight
* modify codes
* remote unused variable
* remove unused code
* add qwen weight only
* format with black
* format with isort
* fix dtype
* add qwen inference model in static graph
* add qwen unittest
* format with black
* print log
* remove print
* set safetensors usage False
* remove tests
* Empty-Commit
2024-01-09 11:16:52 +08:00
yujun
97f6158e76
slow ( #7798 )
2024-01-08 18:38:02 +08:00
DrownFish19
487428b399
Fix shared weights sync for PipelineLayer ( #7772 )
...
* fix shared weights sync
* fix typo
2024-01-08 15:59:12 +08:00
qingzhong1
ff1e91088a
[Paddle-Pipelines] update faiss ( #7793 )
...
* update faiss
* update faiss
* update faiss
2024-01-08 15:48:09 +08:00
lugimzzz
079f0674b6
fix ( #7781 )
2024-01-08 11:45:02 +08:00
w5688414
17acf221b4
Update convert_files_to_dicts_splitter ( #7748 )
2024-01-05 17:26:13 +08:00
Siming Dai
4437198aa8
fix dist dataloader eval ( #7777 )
2024-01-04 22:16:41 +08:00
yujun
f93e7da733
[DONE] aistudio, hf hub, bos update download ( #7608 )
...
* try fix
* fix hf download bug ...
* update config download bug
* fix
* add subfolder
* update
* 优先级,先本地,再builtin,再aistudio,再hf hub,再bos
* 更新chattemplate文件检索路径
* update
* fix subfolder && add tests
* fix
* update
* fix tokenizer_config_file_dir_list
* subfolder test
* fix from_pretrained() load hf sharded model
* 更新逻辑
* update use_safetensors
* update
* fix resolve_weight_file_from_hf_hub
* 更新bos旧的下载方式
* update download from hf hubgit add .
* update logging
* update
* 关闭代理
* update
* update
* fix image process
---------
Co-authored-by: CrazyBoyM <ai-lab@foxmail.com >
Co-authored-by: Ke Bai <35400185+CrazyBoyM@users.noreply.github.com >
2024-01-04 20:00:22 +08:00
DrownFish19
7d789a8194
Fix unified_checkpoint bug ( #7770 )
...
* fix use_unified_checkpoint defined
* add n1c2 test into ci_case.sh
* move test_unified_checkpoint to tests
* add tests/trainer into testpaths
* remove unifiedcheckpoint case from ci_case.sh
2024-01-04 19:42:05 +08:00
骑马小猫
04dc6251fb
[New Features] support dynamic src_length ( #7740 )
...
* support dynamic src_length
* revert max_position_embedding
* update doc
* update flask_server
* update max_length control
* update request flask_server
* fix max-position-embeddings
* update error message
* update predictor length init
2024-01-04 17:21:02 +08:00
JZ-LIANG
70c92e5c4e
[AutoParallel] Add Sequence Parallel for Static LLaMA ( #7746 )
...
* sp for static llama
* sp for static llama1
* code style
* change script
2024-01-04 17:05:37 +08:00
Zhong Hui
5c7efcc3d2
[Release] Update release.yml to release tags ( #7765 )
...
* Update release.yml to release tags
* Update release.yml
* Update release.yml
2024-01-04 12:27:39 +08:00
Liujie0926
895a81635b
[benchmark]close skip_memory_metrics for ips ( #7732 )
...
* update mem from B to MB
* fix ft
* fix pretrain
* Revert "update mem from B to MB"
This reverts commit 044a88c49a .
2024-01-03 19:38:11 +08:00
Zhong Hui
f7207940b3
Change version to 2.7.0 ( #7764 )
2024-01-03 12:02:53 +08:00
Zhong Hui
34b381ecd0
[DOC] Update trainer.md ( #7761 )
...
* Update trainer.md
---------
Co-authored-by: DrownFish19 <DrownFish19@gmail.com >
2024-01-02 21:12:01 +08:00
Zhong Hui
0a23bbbbb1
[CE] Delete gpt for sequence classification ( #7757 )
2024-01-02 19:55:23 +08:00
zhang junjun
a2e5cf5693
Add codecov check ( #7760 )
...
* [CI] set codecov status check
* update
* [CI] adjust codeocov target
2024-01-02 19:41:10 +08:00
zhaoyingli
38f792e0d9
[AutoParallel] Auto Trans PP to VPP ( #7747 )
...
* [AutoParallel] Auto Trans PP to VPP
* update pp scheduler config
* add comment
2024-01-02 17:52:33 +08:00
Siming Dai
5f5cb52e1b
Add unified checkpoint training args doc ( #7756 )
2024-01-02 17:24:39 +08:00
lugimzzz
a6968b7692
[llm]support lora merge ( #7733 )
...
* support lora merge
* add finetune
* support bf16 and lora merge
* update
* add lora merge
* version adatpt
* update
* fix
---------
Co-authored-by: root <root@bddwd-inf-k8s-a100-a12ni6-0399.bddwd.baidu.com >
2024-01-02 16:15:41 +08:00
骑马小猫
1982091ba8
[Improvement] support system prompt in training dataset ( #7667 )
...
* update system prompt
* support system prompt
* add context system prompt docs
* update chat-template readme
2024-01-02 14:54:52 +08:00
Siming Dai
6ddb4b1ae4
[Pretrain] Fix llama max_seq_len settings # ( #7745 )
2024-01-02 14:51:32 +08:00
WAI-clear
48bee12c49
[BugFix] Fix qwen matrix alignment ( #7473 )
2024-01-02 11:35:01 +08:00
w5688414
fb8f2bec6a
[bloom] Add kv cache support for flash attention & fix bugs ( #7735 )
...
* Add kv cache support for flash attention
* Update chatglm flash attention version check
* Add test for flash attention
* Fix unitest bug
* Add flash attention to predictor
* Add flash attention2
* Add flash attention unitests
* fix prefix decoder
* remove unused comments
* Update unitest
* Update unitest
2023-12-29 20:27:47 +08:00
liuzhenhai93
fda20a7e97
sharding reshard 兼容老版本 ( #7734 )
...
* polish
* polish
---------
Co-authored-by: liuzhenhai93 <liuzhenhai@baidu.com >
2023-12-29 16:39:12 +08:00
qingzhong1
6e9d46571a
update processing ( #7743 )
...
* update processing
* modify pdf
* modify pdf
* modify pdf
* modify pdf
* update pdf
2023-12-29 14:51:06 +08:00
Chang Xu
b055be6f62
Support AWQ & GroupWiseQuant for LLMs ( #7688 )
...
* Support AWQ & GroupWiseQuant for LLMs
* add docs
* add docs
* upadte
2023-12-29 11:54:00 +08:00
啊biu
a55039cc16
Update Install_windows.md ( #7707 )
2023-12-28 22:35:13 +08:00
啊biu
d5c807b724
Update semantic_search.yaml ( #7708 )
2023-12-28 22:34:24 +08:00
sneaxiy
5de7e57211
Add mp delay_scale_loss function ( #7713 )
...
* add mp delay_scale_loss function
* remove useless codes
2023-12-28 20:29:47 +08:00
DrownFish19
1e9b5a876a
[unified checkpoint] Update unified checkpoint ( #7730 )
...
* replace with unwrap_optimizer
* remove dist.barrier(group=tp_group) for distributed_gather
* add warning when loading model weights as master weights
* update paddle.cast
* Revert "replace with unwrap_optimizer"
This reverts commit 3fd6a58954 .
* add unwrap_optimizer
* convert is_unified_checkpoint to is_unified_checkpoint
* update
2023-12-28 13:06:37 +08:00
qingzhong1
d1e51e2f40
modify pdf ( #7738 )
2023-12-28 11:47:19 +08:00
yujun
dca0575ef4
update fasttokenizer readme ( #7684 )
2023-12-27 20:58:43 +08:00
qingzhong1
29a94d397a
[Paddle-pipelines] update pdf ( #7737 )
...
* update pdf
* update pdf
* update pdf
* update pdf
* update pdf
* update pdf
2023-12-27 20:00:57 +08:00
周周周
57504e7118
去掉内部关于tgt_attention_mask的一些修改 ( #7696 )
...
* commit
* 删掉一些东西
2023-12-27 13:20:20 +08:00
Zhong Hui
228bd14dc0
fix lr. ( #7729 )
2023-12-26 20:50:06 +08:00
DrownFish19
4f15ac0719
[Unified Checkpoint] Add unified checkpoint config ( #7574 )
2023-12-26 19:44:39 +08:00
骑马小猫
b3961f26db
[Bug fixes] update input_spec for forward ( #7648 )
...
* update input_spec for forward
* update opt casting
2023-12-26 17:59:04 +08:00
Haohongxiang
942865f52b
[Trainer] Support release gradients for develop branch ( #7594 )
...
* support release gradients for develop branch
2023-12-26 16:14:21 +08:00
pangengzheng
b541fc2563
Fix sep compatible ( #7721 )
...
* run 4096
* fix get sep attr if paddle do not support sep
* polish
---------
Co-authored-by: pangengzheng <pangengzheng.baidu.com>
2023-12-26 13:22:03 +08:00
骑马小猫
96d12d459e
[Improvement]support base-port & flask-port ( #7668 )
...
* support base-port & flask-port
* update flask_port
2023-12-26 12:14:49 +08:00
骑马小猫
e5eefa7753
use singlthread to do prediction ( #7720 )
2023-12-26 11:40:50 +08:00
zhouzj
7640804279
fix lora from pretrained. ( #7714 )
...
* fix lora from pretrained.
* updates.
* fix comments.
* fix comments.
2023-12-26 11:11:42 +08:00
Zhong Hui
d97016ec84
[BugFix] Fix gpt ( #7716 )
2023-12-26 10:51:07 +08:00
Haohongxiang
79d1d5b42d
[BugFix] Fix seed bugs ( #7715 )
2023-12-26 10:50:38 +08:00
xiaoxiaohehe001
28158b9735
fix_wint ( #7692 )
2023-12-25 20:53:38 +08:00
zhaoyingli
9b6138af24
remove chunkid annotation ( #7703 )
2023-12-25 19:06:33 +08:00
Zhong Hui
fe3485f58b
delete model zoo gpt2. ( #7702 )
2023-12-25 17:48:39 +08:00
yujun
ebd6964c50
[BUG Fix] update IntervalStrategy, update lora conv2d init, update logger.warning ( #7705 )
...
* 强制关闭
* 更新初始化.
* update warn -> warning
2023-12-25 13:50:36 +08:00
yujun
d6e71605a2
[LLM PDC] merge some llm pdc code into develop ( #7694 )
...
* 自定义cuda kernel支持更多arch
* llm gradio添加subtile
* 更新trainer_callback
* 确保模型文件顺利保存,使用checkpoint_done进行判断
* 添加FLAG_LLM_PDC环境变量,兼容task_name_or_path和intokens参数
* 修改finetune pretrain文件
* update
* update
* update
2023-12-22 11:56:31 +08:00
yinwei
838c7ed938
[CE] Fix ce bug ( #7686 )
2023-12-22 11:13:42 +08:00
zhaoyingli
68abb819e2
mv refined recompute to run_pretrain_auto ( #7701 )
2023-12-22 10:41:28 +08:00
Zhong Hui
2da0237e5e
[PreTraining] Unify pretraining scripts ( #7700 )
2023-12-21 20:49:49 +08:00
Ting Liu
f584cdb159
Support torch safetensors load ( #7690 )
...
* support torch safetensors load
* fix dtype bug
2023-12-21 19:03:11 +08:00
zxcd
0577cd298f
fix dtype ( #7697 )
2023-12-21 16:13:59 +08:00
Zhong Hui
3ef9c78d10
[DOC] Add pretraining docs and report pretrain performance. ( #7437 )
2023-12-21 15:47:02 +08:00
liuzhenhai93
c9586cc28e
Pp reshard develop ( #7629 )
...
* polish
* tested
* polish
* polish
* polish
* follow_comment
---------
Co-authored-by: liuzhenhai93 <liuzhenhai@baidu.com >
2023-12-21 10:24:12 +08:00
co63oc
b02c7162a1
Fix typos ( #7687 )
2023-12-20 20:37:35 +08:00
MayYouBeProsperous
47c9185fe1
fix bugs ( #7673 )
2023-12-20 19:49:42 +08:00
Liujie0926
d4b0e4d869
[CI]update for llm_gpt ( #7631 )
...
* fix
* update for llm_gpt
* fix
* fix
* fix
* fix
* fix
* fix
* update case
* fix
* update base
* add Flag
* update loss base
* fix cache
2023-12-20 16:26:03 +08:00
yujun
f54f272675
PEFT lora support Conv2D ( #7680 )
2023-12-20 11:55:29 +08:00
zhang junjun
0f437bd07c
[CI] set codecov status check ( #7647 )
...
* [CI] set codecov status check
* update
2023-12-19 20:27:51 +08:00
pangengzheng
99e2dd1e71
Support sep ( #6994 )
...
* run 4096
* support sequence segment parallel
* polish
* format
* format
* format
* inplace reshape
* format
* run llama with sep
* llama sep
* run sh
* llama converge
* llama align first loss between dp and sep
* support non fuse_qkv and non flash attn to use sep, all align first loss with dp
* support rope emb
* align the first loss of dp and sep for modelzoo gpt3
* sep support local_seed for dropout
* support tp(with sequence parallel) and sep hybrid parallel
* run seq_len scalable test
* do not build attention mask in advance when use flash attention
* polish run
* run benchmark
* test gpt1.3B performance
* clean codes
* run gpt and llama
* code style
* add unittest
* enable test when gpu_num>1
* code style
* fix sep test
* fix test
* code style
* polish
* fix
* polish test
* check tp and sp
* run script
* check compatible
* rename
* fix test
* polish
* fix bug
* rename
---------
Co-authored-by: pangengzheng <pangengzheng.baidu.com>
2023-12-19 20:02:32 +08:00
tianhaodongbd
1fcde9d5ae
[CE] Add ce sharding stage3 and ce mp sharding stage1 ( #7639 )
2023-12-19 16:23:01 +08:00
骑马小猫
9715b6af0d
fix tokenizer decode-tokens ( #7681 )
2023-12-19 16:21:56 +08:00
Ting Liu
445638a4ab
llm doc update ( #7478 )
...
* llm doc update
* pic update
* doc update
* update pic
* doc update
* requirement update
* doc update
* update
* update
* update
* update
* update
* update
* update
* add zero padding
* update
* update
---------
Co-authored-by: lugimzzz <zhenglujing@baidu.com >
2023-12-19 15:13:48 +08:00
lugimzzz
805350b5f6
[llm]Qlora fix ( #7645 )
...
* bug fix
* fix
* fix
2023-12-19 13:16:50 +08:00
Haohongxiang
e78007e2c4
[Llama2] Fix setting seeds of distributed training for Llama model with Auto Parallel ( #7643 )
...
* fix seeds of auto llama
* update loss of ci cases
2023-12-19 11:42:13 +08:00
yinwei
1757c5d52d
[BugFix] Add CE for mp2-sp2-pp2-dp2 ( #7678 )
2023-12-19 11:33:25 +08:00
zhink
6299680263
fix cache kv len ( #7679 )
2023-12-19 10:31:43 +08:00
MayYouBeProsperous
dba73aa484
【Hackathon 5th No.64】PaddleNLP套件模型接入动转静训练功能 ( #7576 )
...
* fix
* add to_static for Trainer
* fix
* codestyle
2023-12-18 19:18:22 +08:00
MayYouBeProsperous
4c94b94c74
add --to_static ( #7656 )
2023-12-18 18:58:07 +08:00
xysheng-baidu
5c7d7b1c6a
add ce_mp8 model ( #7665 )
2023-12-18 17:11:06 +08:00
Ruibiao Chen
5e69cfc1d4
Improve flash-attn mask calculation for auto llama ( #7670 )
2023-12-18 15:40:43 +08:00
Siming Dai
3c8e0b42bb
[BugFix] Fix qwen merge tp concat ( #7675 )
2023-12-18 12:51:19 +08:00
yinwei
0568d98b22
[CE] Add ce for mp2-pp2-sp2-dp2 ( #7664 )
2023-12-15 16:43:18 +08:00
yinwei
e221595791
[CE] Add CE test for stage2 ( #7544 )
2023-12-15 15:43:01 +08:00
Sonder
5106809e5d
[AutoParallel] add pipeline.auto_parallel_profiler to auto_config ( #7343 )
...
* update
* update
* Fix init weight for llama modeling auto
* update
* add support for Llama2
* recover codes
* remove training_args
* fix
* remove test config
* use guard
* change var name
* add import
* fix import error
* fix import error in run_pretrain_auto.py
---------
Co-authored-by: chenruibiao <chenruibiao@baidu.com >
2023-12-15 13:53:16 +08:00
zxcd
b90cf05930
fix dtype ( #7619 )
2023-12-14 15:36:33 +08:00
niuliling123
45afa73a5f
update for seed ( #7653 )
...
* update for seed
* update
2023-12-14 14:13:03 +08:00
niuliling123
6235b8994a
[Trainer] Update for seed ( #7651 )
2023-12-14 12:42:34 +08:00
zhaoyingli
a73a7bf15c
[AutoParallel] add resume_from_checkpoint and vpp for llama ( #7601 )
...
* [AutoParallel] add resume_from_checkpoint and vpp for llama
* add clip
* polish modeling_auto.py
* polish code
* tiny fix
* add vpp ci for llama
* fix ci script
* update loss_base
2023-12-13 17:09:33 +08:00
骑马小猫
1bfe864587
disable chat-template in tipc ( #7633 )
2023-12-13 16:59:30 +08:00
zhang junjun
83acdd365c
[CI] add coverage status checks ( #7635 )
...
* [CI] add coverage status checks
* update
* update
* update
* update
* fix
2023-12-13 14:36:08 +08:00
骑马小猫
d5a9dda0e8
fix chatglm2 training for chat-template ( #7637 )
2023-12-13 14:03:39 +08:00
DrownFish19
b51de6d774
[GPT] Support SharedLayer with different prefixes for pipeline parallel ( #7598 )
2023-12-12 20:52:11 +08:00
DrownFish19
24b6d70204
[FG] Fix fast generation ( #7630 )
...
* fix paddle header file path
* fix paddle header file path
2023-12-12 19:52:44 +08:00
niuliling123
9bff2a029b
[Trainer] Remove args in set_seed function ( #7592 )
2023-12-12 19:42:45 +08:00
ShenLiang
e5175a7af5
[BugFix]Add local seed for gpt in flash_attn ( #7626 )
...
* add local seed for gpt
* add local seed for gpt
* add local seed
* fix bug seed in embedding
2023-12-12 17:58:34 +08:00
Haohongxiang
a4ed7ac6f5
fix grads acc in llama auto ( #7625 )
2023-12-12 10:53:15 +08:00
yinwei
0a58a1a5f8
[GPT] Bug Fix, to fix pp sp layernorm grad sync ( #7613 )
2023-12-12 10:50:47 +08:00
Siming Dai
ac7114f331
[Unified Checkpoint] Add dynamic load unified checkpoint ( #7487 )
...
* initial commit
* add merge tp for optimizer
* add sharded index for unified optimizer
* rename optimizer state dict key
* change param name
* optimize merge optimzer tp speed
* optimize save speed
* nested copy state dict
* fix bug
* fix filename
* add ckpt check, add dispatch table creationg
* fix sharding group index json
* remove dist_gather, use paddle.distributed's gather instead
* add dynamic load
* support dynamic load, not feasible currently
* add check_unified_optimizer
* add dynamic load optimizer
* fix loading optimizer with sharding group
* add unittest for n1c8 dynamic
* add unittest for n2c4 dynamic
* refine unittest, add dynamic convert test
* fix distributed_send_recv bug
* fix optimizer params
2023-12-12 10:33:23 +08:00
MayYouBeProsperous
e6acb0e5bc
add to_static for electra ( #7575 )
...
* add --to_static for electra
* remove comment
* Update run_pretrain.py
2023-12-11 17:30:38 +08:00
Siming Dai
a866ae4337
[Qwen] Support Qwen flash attention 2 with attention mask ( #7624 )
...
Support qwen fa2 with attention_mask
2023-12-11 17:22:55 +08:00
Haohongxiang
675ee05c74
[LlaMA] Fix llama final norm in pp modeling ( #7615 )
2023-12-11 15:46:20 +08:00
Liujie0926
2c71b215b7
【benchmark】add max_mem_reserved for llm benchmark ( #7538 )
...
* 【benchmark】add max_mem_reserved for llm benchmark
* update
* add arg for case
* update gpt-3/moe/bert mem
* update mylog
* fix
* fix
* fix
* update for skip_memory_metrics
* update ce_gpt
* fix
2023-12-11 15:25:17 +08:00
骑马小猫
4f630fe6cc
[Bug fixes]Refactor chat template intergration test ( #7618 )
...
* remote llama chat-template intergration test
* update qwen chat-template
2023-12-11 11:01:26 +08:00
Siming Dai
ae5c1a9c97
add auto_cast enable=False for paddle.outer ( #7617 )
2023-12-11 10:49:40 +08:00
Haohongxiang
dd6e4f146c
[Llama2] Add uts for llama in semi-auto mode ( #7588 )
...
* Add uts for llama in semi-auto mode
* update uts
* update uts
* fix target paths
* update
2023-12-08 17:43:51 +08:00
tianhaodongbd
344f0029ab
[CE] Add ce_gpt-gpt345_dp1 && dp8 && SD8_stage1 ( #7484 )
...
---------
Co-authored-by: niuliling123 <sdust_niull@163.com >
2023-12-08 17:09:17 +08:00
Zhong Hui
a8d0942e1e
[Trainer] Add memory info in log ( #7587 ) ( #7607 )
...
* add memory info
2023-12-08 14:13:03 +08:00
骑马小猫
e7d67410bc
open ci testing ( #7606 )
2023-12-08 13:21:41 +08:00
Zhong Hui
9c279f7e10
[Trainer] Remove dp group with group_sharded_parallel checks. ( #7507 )
2023-12-08 11:46:57 +08:00
Ruibiao Chen
a74916d8b6
Fix post_init bug for run_pretrain_auto ( #7604 )
2023-12-08 11:13:26 +08:00
gmm
8aa96d27ec
【benchmark】add max_mem_reserved for benchmark ( #7488 )
...
* add max_mem_reserved for benchmark
* add max_mem_reserved for benchmark
* add max_mem_reserved for benchmark
* add max_mem_reserved for benchmark
* fix
* fix
* fix
* fix
2023-12-07 16:21:20 +08:00
zxcd
1fd95e5e56
[GPT] Fix dtype ( #7595 )
2023-12-07 11:25:43 +08:00
Haohongxiang
b05873629e
[Auto Parallel] support arg for enabling fused_linear_param_grad_add pass ( #7589 )
2023-12-06 13:16:33 +08:00
骑马小猫
810edc2acc
[Improvement] update eos-token-id ( #7584 )
...
* update eos-token-id
* complete the eos-token-id codes
* update streamer pre-tokens
* change streamer
* update predictor
2023-12-05 21:00:26 +08:00
Yuanle Liu
1e34cb0fa6
[LLM] inference model use new executor ( #7467 )
2023-12-05 20:20:32 +08:00
Ting Liu
0f1abea5b7
Chat gradio ( #7581 )
...
* chat gradio
* bug fix
* bug fix
2023-12-05 19:53:37 +08:00
Liujie0926
6a3efc33f5
[gpt-3]Fix dynamic_prepare for CI ( #7550 )
...
* fix data download
* fix auto_benchmark timeout
2023-12-05 15:26:26 +08:00
骑马小猫
9a0cbcd556
disable CUDA_DEVICE_MAX_CONNECTIONS for ce ( #7586 )
2023-12-05 12:04:50 +08:00
JZ-LIANG
aa44c6ed9f
annotation update ( #7486 )
2023-12-05 11:38:58 +08:00
zxcd
6d41cbcd87
remove astype for probs, all dtype should same with scores. ( #7577 )
...
* dtype should same with scores.
* fix
2023-12-05 11:09:52 +08:00
niuliling123
f3607d5239
[Trainer] Update set_seed in trainer_utils.py ( #7528 )
2023-12-05 10:50:24 +08:00
Siming Dai
ca0e45bef6
[Dist Dataloader] Fix dist dataloader sampler ( #7579 )
...
* fix distdataloader sampler
2023-12-04 21:11:17 +08:00
xysheng-baidu
8ed33e9a42
[LLM] Fix mp parameter initialization ( #7534 )
2023-12-04 19:56:33 +08:00
Ruibiao Chen
7234321697
Set flash_attn mask to None in LlamaPretrainedModelAuto ( #7566 )
2023-12-04 18:51:43 +08:00
blueoom
74bb39b51b
load_from read file with encoding utf8 ( #7558 )
2023-12-04 10:59:30 +08:00
骑马小猫
1a7e7d4572
[Bug fixes]fix intergration test ( #7569 )
...
* remove intergration test
* update llama2 chat-template
2023-12-04 10:58:02 +08:00
Leo Chen
f377693ebe
init fp32 model and then cast to fp16 when use amp-o2 ( #7546 )
2023-12-04 10:57:42 +08:00
lugimzzz
d4a8d4ab15
fix qat ( #7565 )
2023-12-03 22:28:25 +08:00
xuzhang
2f21556a0f
fix clip image processor ( #7540 )
...
* fix clip image processor
* support CLIPTextTransformer fp16
* revoke
2023-12-01 15:18:50 +08:00
lugimzzz
0faa701fb0
[PEFT]add qlora ( #7416 )
...
* add qlora(wip)
* add state convert
* add qlora
* update
* fix
* fix
* update
* update
* fix
2023-12-01 15:11:51 +08:00
lugimzzz
0dc4b48bd9
[llm]update data loading ( #7557 )
...
* update data
* update
* remove error raise
* fix
2023-12-01 13:55:07 +08:00
yujun
2bc6d8df77
确保静态图导出的时候使用的是1D tensor ( #7555 )
2023-12-01 07:31:27 +08:00
Ruibiao Chen
46d7534825
[AutoParallel] Fix init weight for llama modeling auto ( #7491 )
...
* Fix init weight for llama modeling auto
* remove _init_weights in LlamaPretrainedModelAuto
2023-11-30 19:38:46 +08:00
Wang Bojun
665731a40d
add scale dtype test for weight quantize ( #7552 )
...
* add scale dtype test ofr weight quantize
* fix code style
2023-11-30 14:09:09 +08:00
yujun
5500d093d5
删除tipc中对于paddlemix的依赖 ( #7543 )
2023-11-30 10:15:12 +08:00
w5688414
057b429d15
Fix fp16 o1 bugs ( #7548 )
2023-11-29 08:02:39 -06:00
w5688414
5eb2eae1c7
[Paddle-pipelines] remove redundant requirements, upgrade to 0.6.2 ( #7518 )
...
* remove redundant requirements
* Upgrade to 0.6.2
* Update txt text processing
* fix ci error
* recover markdown
2023-11-29 01:15:35 -06:00
骑马小猫
be318c565a
fix pyyaml installing under py310 ( #7526 )
2023-11-27 20:04:18 +08:00
Yiqun Liu
48bb1c05cb
[Llama] Hotfix recompute in PP for benchmark. ( #7479 )
2023-11-27 15:01:09 +08:00
yujun
84ec87bf7f
rm sd ldm benchmark ( #7434 )
2023-11-27 14:51:13 +08:00
lzydev
1b6e00782d
add refined-recompute config ( #7519 )
2023-11-27 11:04:39 +08:00
Ting Liu
3081e2e35b
remove useless import ( #7517 )
...
* remove useless import
* remove import
2023-11-27 09:19:41 +08:00
DrownFish19
e8d3b630ba
[Unified checkpoint] Add unified optimizer loader ( #7441 )
...
Add unified optimizer loader
---------
Co-authored-by: DesmonDay <908660116@qq.com >
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2023-11-24 19:05:00 +08:00
骑马小猫
db1a79a69d
[Bug fixes] remove qwen 14b-chat special token testing ( #7514 )
...
* fix chat_template qwen 14b-chat ci
* remove eos_token_id from ChatTemplate
2023-11-24 01:47:17 -06:00
Ting Liu
8d626c570c
Gradio multi ( #7508 )
...
* code save
* rm sharememory, port exchange
* single gpu support
* code refinement
* gradio unittest
2023-11-24 01:29:09 -06:00
Siming Dai
be99faba2d
[Trainer] Fix dist gather ( #7513 )
...
* remove dist_gather, use paddle.distributed's gather instead
* fix gather
2023-11-24 01:26:20 -06:00
zhouzj
7b36d571df
Fix lora save ( #7504 )
...
* add method for saving scale in TP mode
* fix save mode in PP mode
* fix channel-wise's import
* fix bugs
* fix bugs
* fix bugs
2023-11-24 01:11:47 -06:00
骑马小猫
42764a5389
[Bug fixes]disable predictor testing ( #7496 )
...
* disable predictor testing
* disable inference-model testing
* disable gradio logit-compare
2023-11-23 20:25:37 +08:00
Siming Dai
f625c87717
Remove dist_gather, use paddle.distributed's gather instead ( #7509 )
2023-11-23 17:57:18 +08:00
w5688414
d181e352e5
Fix attention_score -nan bug ( #7501 )
2023-11-22 07:24:32 -06:00
Siming Dai
bf9d5bfa39
fix sharding index json ( #7499 )
2023-11-22 05:54:08 -06:00
Zhong Hui
14ab8d7b40
[Trainer] Fix pp config usage. ( #7443 )
2023-11-22 19:03:08 +08:00
骑马小猫
d4faef6d6a
[Improvement] add context_data support for chat_template rendering ( #7480 )
...
* add context_data support for chat_template rendering
* update method name
* add chat_template_with_context_data file
2023-11-22 14:42:05 +08:00
tianhaodongbd
4645ddcf4a
[Trainer] Support sharding stage 3 for main grad ( #7319 )
2023-11-22 10:50:56 +08:00
tianhaodongbd
628db887c9
[Trainer] Support dp for main_grad ( #7293 )
2023-11-22 10:49:58 +08:00
Zhong Hui
13b478606a
[BugFix] Update trainer.py ( #7492 )
2023-11-21 18:26:16 +08:00
Siming Dai
d148cfee94
[Unified checkpoint] Add unified optimizer ( #7373 )
...
* initial commit
* temp commit
* add merge tp for optimizer
* add sharded index for unified optimizer
* rename optimizer state dict key
* change param name
* optimize merge optimzer tp speed
* optimize save speed
* nested copy state dict
* simplify code
* polish code
* fix bug
* fix filename
2023-11-21 01:23:06 -06:00
Zhong Hui
f136a4453c
[Unified Ckpt] Add unittest for unified checkpoint. ( #7392 )
...
* init test for save/load
* fix warmup_steps.
* add unittest for unified checkpoint.
* reset script back.
* fix pp with sharding.
* remove some code.
2023-11-21 00:33:10 -06:00
Zhong Hui
c1b2fb35bc
[LLM] Fix alibi in pipeline parallel for baichuan-13b ( #7433 )
2023-11-21 11:23:22 +08:00
JZ-LIANG
e56f928bcc
[AutoParallel] Sequence Parallel Optimization Pass Config ( #7409 )
...
* annotation for sp
* hack of shard of
* remove redundent comm
* remove redundent comm
* add yaml
* sp default disenable
* bugfix
* sp optimization as default
2023-11-21 10:49:13 +08:00
DrownFish19
5477d46647
[GPT] Add sequence parallel for GPT ( #7311 )
...
* Add sequence parallel
2023-11-21 10:48:32 +08:00
Liujie0926
8e30689be5
[gpt-3]Add pir ci ( #7471 )
...
* add pir case
* update
2023-11-20 14:44:25 +08:00
zhaoyingli
d42afd342f
update bsz for pretrain auto ( #7474 )
2023-11-20 10:10:56 +08:00
Haohongxiang
637fa55570
[Llama] Support hybrid strategy and recompute in llama auto version ( #7458 )
...
* support hybrid strategy and recompute in llama auto version
* remove redundancy codes
2023-11-17 16:40:45 +08:00
WAI-clear
de211d9ef6
Add load multi torch bin slices logic ( #7445 )
...
* test
* add load multi torch bin slices logit
* add safetensor/bin multi splices load
* add safetensors/bin multi slice files load
2023-11-17 16:37:56 +08:00
Ruibiao Chen
a36b70280a
Log ips in auto Llama ( #7459 )
...
* Log ips in auto Llama
* Update code
* Update code
2023-11-17 14:51:14 +08:00
骑马小猫
757478946e
use old_executor ( #7464 )
2023-11-17 14:04:00 +08:00
Yuanle Liu
0749e96550
[LLM] Inference use new executor and remove top_p_sampling custom op ( #7432 )
...
* inference use new executor
* delete custom op [top_p_sampling]
* update testing utils
* update chatglm2 config
* disable chatglm2 test temporarily
* update chatglm2 d2s
* test llama lora chat-template testing
---------
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-11-16 17:25:54 +08:00
Liujie0926
17a7f8ec44
[gpt-3]add new_exec_pp benchmark ( #7457 )
2023-11-16 16:55:59 +08:00
Liujie0926
2f5024a9e8
[CI]update gpt-3 scripts ( #7350 )
...
* update gpt-3 ci
* fix
* fix path
* fix
* fix
* update
* add case
* fix loss
* revert loss
* update
* fix
* update log_path
* fix
---------
Co-authored-by: PaddleCI <paddle_ci@example.com >
2023-11-16 16:29:39 +08:00
zhaoyingli
10d57f0b34
[AutoParallel] Support Llama ( #7394 )
...
* [AutoParallel] Support Llama
* Update training_args.py
* support dp
* revert modeling_auto
* support recompute
* rm comment
* rm print
* rm print
2023-11-16 11:02:14 +08:00
w5688414
10ff94a752
[retrieval benchmark] fix dynamic oom bug ( #7449 )
...
* fix dynamic oom bug
* Update benchmark
* Add comments
* remove max_length
* remove comments
2023-11-15 10:47:51 -06:00
骑马小猫
5202d5ba59
update chat-template readme ( #7442 )
2023-11-15 00:41:58 -06:00
w5688414
90ab47d86b
remove tsinghua pip ( #7435 )
2023-11-14 23:37:21 -06:00
周周周
f01da97880
[llm] support GQA in chatglmv2 ( #7412 )
...
* support GQA in chatglmv2
* support new paddlenlp chatglmv2
* modify to test
2023-11-15 10:41:40 +08:00
骑马小猫
0731766c01
[New features] Add chat template for training ( #7241 )
...
* complete chat-template
* update chat-template
* fix lint
* update tokenizer
* update from_pretrained method
* update from_pretrained args
* update test
* encode chat-inputs
* add test_data testing code
* update chat_template
* update qwen conversation
* complete qwen finetune with chat-template
* update argument
* update chat-template
* support inference with chat-template in predictor.py
* update predictor
* update use_chat_template inference
* update chat-template pr
* update chatglm chat-template finetune
* update THUDM test_template
* add constrains between chat_template and eval_with_do_generation
* add position_ids to tokenized_result
* update chat-template
* update src_length
* update truncation
* update np.bool
2023-11-14 00:17:26 -06:00
zhang junjun
5524c5895b
Add llm ci report ( #7418 )
...
* [CI] fix llm tests
* Add llm ci report
* update
* update
* update
2023-11-14 10:22:45 +08:00
w5688414
8d5abb607d
[paddle-pipelines] Fix retrieval benchmarks ( #7420 )
...
* Fix retrieval benchmarks
* Update readme
2023-11-13 02:13:23 -06:00
骑马小猫
a16cbb3485
revert chatglm2 config ( #7410 )
2023-11-13 02:12:59 -06:00
RichardWooSJTU
e0643cc501
[LLM] Support ptq inference ( #7224 )
...
* re submit ptq inference
* add unittest
* fix readme and code refine
* fix ut name
* fix ut name
* fix wint8
* turn on auto tune flags in benchmark
* fix review
* fix review
* adapth quantization_config
* fix ci
* test
2023-11-13 16:11:52 +08:00
Ting Liu
92134e1847
add chatglm2 legacy checkpoints convert script ( #7419 )
2023-11-09 22:51:54 -06:00
Leo Chen
8d5fef01e2
support pir fuse pass ( #7393 )
2023-11-10 10:52:12 +08:00
w5688414
2cbf68d918
Update fa2 comments ( #7415 )
2023-11-09 09:30:10 -06:00
Siming Dai
76e92c12c4
fix bug ( #7414 )
2023-11-09 20:44:13 +08:00
Ting Liu
d45f7c4a3b
convert chatglm2 to fuse qkv ( #7379 )
...
* chatglm2 remove fuse qkv
* fix lint
2023-11-09 05:48:10 -06:00
Sijun He
40c9c56e0f
Update requirements.txt ( #7408 )
2023-11-08 23:45:42 -06:00
Siming Dai
e877ad1406
[Trainer] Fix dist dataloader with no mp group ( #7407 )
2023-11-09 13:11:28 +08:00
WAI-clear
0771a88328
fix qwen matrix dimmention alignment ( #7402 )
2023-11-09 10:36:50 +08:00
liuzhenhai93
111b381146
Develop sharding reshard ( #7399 )
...
* format
* tested
* format
2023-11-09 10:01:20 +08:00
Ting Liu
65ec3686b3
support torch safe tensor convert ( #7383 )
...
* support torch safe tensor convert
* code refinement
* if statement adjust
* skip clip & bart unitest
* skip clip & bart unitest
* close bart serialization save
* gradio-fix
2023-11-08 17:24:33 +08:00
lugimzzz
6db372605e
add neft ( #7382 )
2023-11-07 20:39:53 -06:00
骑马小猫
254414e024
[Function optimization] update llama ce script ( #7192 )
...
* update llama ce script
* add bloom & chatglm ce testing
* add bloom/chatglm ptuning ce scripts
* update llama ce scripts
* update test_predictor
* code save
* fix typo
* remove testing model
* update config file
* remove testing model code
* disable chatglm testing
* merge, fix yaml
* update chatglm2
* add chatglm2
* lint fix
* add chatglm2 ce shell
* run_ce arg update
* add debug print
* update llama ce script
* update test_predictor
* reduce the src_length and max_length
* remove chatglm2 config
---------
Co-authored-by: wtmlon <wtmlon@foxmail.com >
2023-11-07 10:40:40 +08:00
JZ-LIANG
40fe6644c0
[Semi-Auto] Sequence Parallel for Auto Mode ( #7301 )
...
* annotation for sp
* hack of shard of
* remove redundent comm
* remove redundent comm
* add yaml
* sp default disenable
* bugfix
2023-11-06 20:55:28 +08:00
w5688414
7841869d4b
[baichuan2 13b] Fix alibi bug ( #7376 )
...
* Fix alibi bug
* Fix alibi 2.5.2
2023-11-06 05:07:49 -06:00
lugimzzz
c5259814a8
[PEFT]add qatlora mp ( #7288 )
...
* add qatlora mp
* support qat lora tp
2023-11-06 01:34:37 -06:00
lugimzzz
dd41947ae2
add peft save_to_aistudio ( #7364 )
2023-11-03 03:22:09 -05:00
lzydev
c013ccb080
【AutoParallelism】add "refined_ops_patterns" in recompute strategy ( #7349 )
...
* add refined_ops_patterns in recompute strategy
* modify the yaml file
* add sr
* fix yaml file"
2023-11-02 20:25:20 +08:00
Ting Liu
fc2bf9cc6e
Qwen support position_ids ( #7359 )
...
* qwen add position ids
* qwen add position ids
* bug fix
* bug fix
2023-11-02 20:02:30 +08:00
w5688414
5a50bdd212
[Fix llm bugs] Add use cache & version check ( #7357 )
...
* Add use cache
* Add version check
* Update flash attention
* Update warning msg
* Update use_cache
2023-11-02 11:51:26 +08:00
Haohongxiang
fd527884d6
support pure single-card modeling for auto_parallel ( #7348 )
2023-11-02 11:35:32 +08:00
Ting Liu
20a6afed9f
freeze gradio version ( #7355 )
...
* freeze gradio version
* freeze gradio version
2023-11-02 10:01:10 +08:00
lugimzzz
b98b64b093
fix peft load_best_model_at_end & resume from checkpoint ( #7360 )
2023-11-01 10:01:05 -05:00
Leo Chen
849ebff85c
add parallel seed control ( #7347 )
...
* add parallel seed control
* update
2023-11-01 20:33:48 +08:00
Zhong Hui
f15ca845d4
[Trainer] Support broadcast optimizer in dp group and fix unified checkpoints ( #7256 )
...
* add sharded save
* fix unified ckpt with dp.
* fix with load dp.
* fix bugs for pure pp. add miss keys check.
---------
Co-authored-by: DesmonDay <908660116@qq.com >
2023-10-31 21:15:28 +08:00
Ting Liu
4fb915b697
Add qwen baichuan ci ( #7324 )
...
* add qwen alibi-baichuan ci
* attention mask fix
* add tiktoken requirement
---------
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2023-10-31 16:16:47 +08:00
LokeZhou
0407095860
[Other]TopPProcess add bfloat16 input ( #7337 )
...
* TopPProcess add bfloat16 input
* fix sorted_indices cast
2023-10-31 16:12:55 +08:00
lugimzzz
f0566e8b47
[aistudio] add save to aistudio hub ( #7338 )
...
* add save to aistudiohub
* fix according to comments
2023-10-31 14:38:59 +08:00
Siming Dai
0c05adc015
[CI] Add qwen pretrain test ( #7330 )
...
* add qwen pretrain test
* rm model_type
2023-10-31 12:03:16 +08:00
xiaoxiaohehe001
13efd366ad
[LLM] Support fuse_gpt wint8/4. ( #7304 )
...
* support_gpt_wint
* support_gpt_qkv_unfuse
2023-10-30 14:15:32 +08:00
lugimzzz
fe8cdf0d79
[quant] add QuantizationConfig ( #7314 )
...
* add
* add quantization config
* update
* fix
* fix
* add quantization_config
2023-10-27 18:06:24 +08:00
Chang Xu
e7b53f6d27
Support Fast PTQ ( #7282 )
2023-10-27 11:18:06 +08:00
Siming Dai
02c98858f0
Optimize qwen model with fused_rope, fused_rms_norm and core_attn recompute ( #7307 )
...
* add fused_rms_norm, fused_rope
* add core_attn
2023-10-27 10:39:59 +08:00
骑马小猫
bae323a940
[Bug fixes] update inference doc ( #7299 )
...
* update inference doc
* update table matri
* remove temp-doc
2023-10-27 08:23:58 +08:00
Ruibiao Chen
770bfacee0
Support setting allreduce_matmul_grad_overlapping and enable_send_recv_overlap in auto_config ( #7297 )
2023-10-26 13:08:44 +08:00
w5688414
5d2c290426
[llm benchmark] Add flash attention 2 ( #7057 )
...
* Add flash attention
* Add chatglm flash attention
* format llama
* Update flash attention
* Fix casual low precision bug
* Update finetune generation config
* Add seed config
* Update FA2
* Update attention
* update llama
* Update casual config
* Update alibi config
* rm is casual parameter
* Update bloomz config
2023-10-25 23:21:14 -05:00
lugimzzz
513f763ec7
fix recompute ( #7235 )
2023-10-25 17:22:51 +08:00
Zhong Hui
60fd6bec50
Support qwen pretrain. ( #7275 )
...
* Support qwen pretrain.
* add missing files.
* fix
* Support fuse rms norm
* add new config.
* refine
* fix
* auto model support from config.
2023-10-24 21:40:59 +08:00
Siming Dai
4b8600615b
Modify dist dataloader ( #7286 )
2023-10-24 17:49:11 +08:00
wawltor
5359c0e2f9
Add qwen flash attention ( #7289 )
...
* support the flash attention for the qwen
* support the attention mask for the qwen
* fix the return softmax in fa
* update the use_flash_attention to use_flash_attn
* disable flash attn for the qwen test
* delte some unused code
2023-10-24 10:54:36 +08:00
骑马小猫
22d6bd5fe4
update inference doc ( #7296 )
2023-10-24 09:46:33 +08:00
lugimzzz
ddb60e5757
[llm]fix weight only quantization ( #7252 )
...
* fix quantization
* fix
* fix
* json
2023-10-23 06:46:54 -05:00
骑马小猫
7dd7f1739e
[Bug fixes] disable ir_optim under bfloat16 ( #7292 )
...
* disable ir_optim under bfloat16
* delete pass
* update predictor
* trigger cic
2023-10-23 17:07:03 +08:00
骑马小猫
4476448af0
[New features] update llm docs ( #7290 )
...
* update llm docs
* update inference doc
* update inference
* update inference doc
2023-10-23 17:04:32 +08:00
Ting Liu
639215adaf
readme update 14b ( #7291 )
...
* readme update 14b
* fix
2023-10-22 21:51:02 -05:00
Yichen Zhang
d9f260356b
[GPT] Replace reshape with set_dynamic_shape api to set dynamic shape to a tensor ( #7281 )
2023-10-20 16:31:37 +08:00
Yiqun Liu
e398018e20
[Trainer] Polish the setting of dist_strategy. ( #7214 )
...
* Polish the setting of distributed strategy.
* Avoid redundant cast.
* Optimize benchmark command for better overlap.
2023-10-20 11:12:18 +08:00
xiaoxiaohehe001
2f2816753e
[LLM] Support chatglm/bloom wint8/4. ( #7207 )
...
* chatglm_bloom_wint
* add_wint4_test
* delete_wint4_test
* update bloom wint8
---------
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-10-19 18:53:03 +08:00
周周周
9db7022c09
[llm]support chatglmv2 in fined FT ( #7253 )
...
* support chatglmv2 in fined FT
* support chatglmv2 in fined FT
* commit
* final commit
* final commit
* final commit
* comment ChatGLMForCausalLM
2023-10-19 18:39:39 +08:00
cyber-pioneer
f9021f8f7f
[PIR][Prim] support PIR train ( #7276 )
...
* support PIR train
* polish code
2023-10-19 15:16:17 +08:00
Zhong Hui
f9d8e73f0c
[Trainer] Add unified checkpoint for hybrid parallel. ( #7238 )
2023-10-18 18:40:23 +08:00
骑马小猫
d152fdb035
add docs for chat-template ( #7270 )
2023-10-18 04:56:34 -05:00
lzydev
90f44a97f3
fix error in dropout of hybrid_model ( #7269 )
2023-10-18 16:17:17 +08:00
zhaoyingli
af0d26ada3
update shard tensor for pp ( #7167 )
...
* update shard tensor for pp
* rm shard_op
* rm shard_op
2023-10-18 14:51:39 +08:00
骑马小猫
00ab0e1c4b
[Bug fixes] update lru_cache usage ( #7260 )
...
* update lru_cache usage
* trigger cla
2023-10-18 14:09:48 +08:00
Leo Chen
27c4c89385
add flash attention for auto gpt3 ( #7135 )
...
* add flash attention for auto gpt3
* remove transpose
2023-10-18 11:51:02 +08:00
Siming Dai
faf3e3c90c
Fix fp32 dist dataloader ( #7261 )
2023-10-18 11:32:14 +08:00
Siming Dai
86f24edb24
Support zero dataset splits for pre-training ( #7259 )
...
* support empty splits
* fix split
* fix dd
* modify func name
2023-10-18 10:40:52 +08:00
xiaoxiaohehe001
c39c6280fe
fix_bloom_precache ( #7249 )
2023-10-17 21:06:24 +08:00
骑马小猫
671775be9d
[New Features] add chat-template for inference ( #7219 )
...
* complete chat-template
* update chat-template
* fix lint
* update tokenizer
* update from_pretrained method
* update from_pretrained args
* update test
* add skip warning for chat-template file
* update chat-template by comment
2023-10-17 03:38:36 -05:00
周周周
9d9e60dca6
when < 11.6 ( #7250 )
2023-10-17 14:27:00 +08:00
Siming Dai
dd9bec075c
Support fp32 dtype for dist dataloader ( #7240 )
...
* support fp32
* add todo
2023-10-16 16:57:08 +08:00
lugimzzz
edcd54d861
remove warning ( #7234 )
2023-10-15 22:21:13 -05:00
Sijun He
70e750c02c
Fix subfolder default argument in model download ( #7220 )
...
* styles
* remove print
2023-10-13 05:43:23 -05:00
骑马小猫
25dcba99d1
[New Features] Add prefix allowed token ( #7210 )
...
* use model_type to control model-intialization
* add prefix_constrained logit processor
2023-10-13 01:45:07 -05:00
骑马小猫
6f03ec69fe
[Bug fixes] Fix export model validate pdmodel ( #7201 )
...
* use model_type to control model-intialization
* update output_path for validate_pdmodel
* update export rank_index
* trigger cla
2023-10-13 11:16:03 +08:00
Siming Dai
b0fa9c42aa
[Trainer] Support iterable dataset with dist dataloader ( #7208 )
2023-10-12 19:52:27 +08:00
Zhong Hui
6140ad2497
Update README.md ( #7184 )
2023-10-12 19:38:17 +08:00
Ting Liu
0a66a2e6a5
adjust gradio unittest assert ( #7205 )
2023-10-12 19:30:27 +08:00
xiaoxiaohehe001
43a6829740
bloom_precache ( #7204 )
2023-10-12 14:55:09 +08:00
DrownFish19
dc6e0d901c
fix tokenizer decode ( #7195 )
2023-10-12 14:42:41 +08:00
Siming Dai
c9db29cecf
fix_shard_size ( #7202 )
2023-10-12 14:40:49 +08:00
RichardWooSJTU
64f00f084f
[LLM] Reconstruct fused transformer layers ( #7186 )
...
* reconstruct fused_transformer_layers
* delete origin class
* code refine
2023-10-12 14:07:53 +08:00
Ting Liu
d0c85dfa3c
bloom chatglmv1/2 llm unittest ( #7165 )
...
* bloom chatglmv1/2 llm unittest
* resolve empty return
2023-10-12 14:06:22 +08:00
Sijun He
74eb855568
Update README.md
2023-10-11 08:06:56 -05:00
Siming Dai
1f708035ea
Add max_shard_size arg ( #6835 )
...
* add max_shard_size arg
* rm max_shard_size
* move to 1024
---------
Co-authored-by: daisiming <daisiming@baidu.com >
2023-10-11 20:48:58 +08:00
骑马小猫
be39ed1abb
use batch_size = 3 ( #7191 )
2023-10-11 05:22:14 -05:00
lugimzzz
11e7735f75
[PEFT]support pp + lora ( #7198 )
...
* support pp lora
* update
2023-10-11 04:47:28 -05:00
xiaoxiaohehe001
d1e060fa88
support_prealloc ( #7194 )
...
Co-authored-by: liuzichang01 <liuzichang01@baidu.com >
2023-10-11 01:56:10 -05:00
骑马小猫
cfd8d391da
add opt __init__.py ( #7193 )
2023-10-11 14:27:24 +08:00
xiaoxiaohehe001
ddf845b7c3
[LLM] Fix error when config.bs is more than input bs. ( #7187 )
...
* bs_slice
* fix_bloom
* support_bloom
---------
Co-authored-by: yuanlehome <yuanlehome@163.com >
Co-authored-by: liuzichang01 <liuzichang01@baidu.com >
2023-10-10 22:02:54 -05:00
Kunbo Ding
dc32055c98
[README] fix README in model_zoo/ernie-1.0/preprocess ( #7188 )
...
* [README] fix README in model_zoo/ernie-1.0/preprocess
* [README] fix README in model_zoo/ernie-1.0/preprocess
2023-10-11 10:27:50 +08:00
Kunbo Ding
aafadd2581
Add share-folder for distributed training ( #7068 )
...
* add share_folder for data_cache_path
* remove pdb
* fix README
* fix share_folder
* update README
* update README
2023-10-10 20:55:53 +08:00
骑马小猫
2ce561bacc
[New Features] add llama ce scripts ( #7118 )
...
* add llama ce scripts
* update llama ce-predictor
* update predictor
* update test_predictor
* update ce scripts
* update ratio
* update run_ce.sh scripts
* update ce scripts
* update llama ce scripts
* update prepare.sh script
* update convergence keyword
* revert requirements
2023-10-10 16:07:43 +08:00
Ting Liu
27d67d49c2
gradio ui support streaming ( #7086 )
...
* gradio ui support streaming
* update
* remove hard code values
* add gradio unitest
* add comment
* add pytest timeout requirement
* add requirement, enlarge port range
* enlarge port scan range
* port range adjust,
* add gradio requirement
2023-10-10 14:09:20 +08:00
骑马小猫
226c6c03fa
[New features] Add precache predictor test ( #7137 )
...
* use model_type to control model-intialization
* add llama precaches predictor
* update pre-cache config
* remove print
* revert max_length
2023-10-09 21:40:22 -05:00
Sijun He
13502f9a46
Support AI Studio download ( #7146 )
...
* styles
* fix subfolder
* remove print
2023-10-09 08:05:49 -05:00
DrownFish19
674587652f
[GPT-3] Fix attention and past_key_values ( #7088 )
2023-10-09 19:05:42 +08:00
骑马小猫
5fe0cfc344
[BugFix] fix readthedocs ( #7175 )
...
* fix readthedocs
* update recommonmark
2023-10-09 04:58:27 -05:00
骑马小猫
34e5744ef8
[Bug fixes] Fix experimental llama set_state_dict ( #7142 )
...
* use model_type to control model-intialization
* fix llama set_value dtype
2023-10-09 04:31:11 -05:00
Ruibiao Chen
26fdd47c39
Enabel FLAGS_new_executor_micro_batching in AutoEngine ( #7168 )
2023-10-09 14:28:23 +08:00
xiaoxiaohehe001
0ba34f68f4
support_chatglm_precache ( #7109 )
2023-10-09 14:16:46 +08:00
lugimzzz
16353f4172
[llm]support lora for quantizationlinear ( #7138 )
...
* support quantizationloralinear
* Version compatible
* add comment
* add mp quantization lora
* fix
* fix
* fix
2023-10-08 22:11:31 -05:00
Zhong Hui
68bb39dc90
[GPT] Fix bugs ( #7141 )
...
* fix gpt-3
* refine
* remove gpt-3.
* fix ci
* fix
* fix ci
2023-09-28 10:37:52 +08:00
lugimzzz
0db85f7d7f
[llm]add quantization tensor parallelism ( #7099 )
...
* add quantization mp
* update
* follow comments
* fix
* fix shape
* update
2023-09-27 01:11:38 -05:00
wanly young
685d12bf1a
[DistDataLoader]bgroup null judge fix ( #7122 )
...
* group null judge fix
* fix all
2023-09-27 11:16:26 +08:00
Siming Dai
6c11dea23e
[BugFix] Fix tp load and gpt pp model ( #7129 )
...
* fix gpt pp model
* fix tp load
2023-09-26 13:11:52 +08:00
骑马小猫
3cf31e8b29
[New Features] Add test predictor for llm ( #7115 )
...
* use model_type to control model-intialization
* add test_predictor
* update inference & no inference
* update comment
* update test_assert
2023-09-25 22:26:47 -05:00
Zhong Hui
0b73e12232
remove load state as np. ( #7120 )
2023-09-25 22:26:11 -05:00
Zhong Hui
c1157e5a2a
Update trainer.py ( #7123 )
2023-09-25 02:10:59 -05:00
Zeyu Chen
9c3f8a4256
Update README.md
2023-09-24 11:12:42 -05:00
Zeyu Chen
cc293601a9
Update README.md
2023-09-23 21:22:27 -05:00
Zhong Hui
51835e8ead
[LLM] Unify pipeline model with PretrainModelPipe ( #7095 )
...
* unify pipeline model with PretrainModelPipe.
2023-09-22 17:58:19 +08:00
zhang junjun
cdc7382c1a
[CI] fix llm tests ( #7117 )
2023-09-22 17:30:05 +08:00
Tian Zheng
060fbf2ff0
[NVIDIA] Add stage2 NCCL kernel overlap ( #7092 )
...
* add stage2 comm overlap
* Make stage2 overlap optional
2023-09-22 17:22:56 +08:00
ZZK
73a20bd663
fix benchmark compute statistics ( #7098 )
...
* fix args.benchmark and compute statistics
* revert warmup times
* fix cachekv shape and force to use fleet exectuor
* fix merge conflict
* update total_max_length
* add enable memory optim
* fix multi predictor in fleet runner
---------
Co-authored-by: xiaoxiaohehe001 <hiteezsf@163.com >
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-09-22 16:02:11 +08:00
Yuang Liu
a99cc55960
[Trainer] Support master grad for sharding stage 2. ( #7075 )
2023-09-22 10:49:15 +08:00
Yiqun Liu
748e69d162
Polish the benchmark scripts and add test for N4C32. ( #7105 )
...
* Polish the benchmark scripts and add test for N4C32.
* Update the setteing of pipeline_parallel_config.
* Add the missing comma and rename all the benchmark filename.
2023-09-22 09:30:47 +08:00
骑马小猫
48596fee6b
[Bug fixes]fix chatglm2 d2s ( #7110 )
...
* fix chatglm2 d2s
* open chatglm2 d2s
2023-09-21 07:12:06 -05:00
w5688414
bcf4427ef9
[Paddle-Pipelines] Add top_k support ( #7103 )
...
* Add top_k support
* Update prompts
2023-09-21 03:57:42 -05:00
周周周
17a3d34d6e
support opt-2.7 ( #7010 )
...
* first commit
* first commit
* remove somen redunant code
* commit
* commi all
* remove my useless code
* make paddlenlp/transformers/opt/modeling.py revert origin
* uopdate # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
* remove some unsed symobl in experimental/transformers/opt/modeling.py
* commit
* commit
* fix a bug in generation_utils
* add model_kwargs[past_kv_length]
* add opt in predict.py
* support more batch
* use state_dict.pop && encoder_max_seq &&
* remove ids_remove_padding
* remove self.past_key_value_length
* remove repeate self.hidden_size = config.hidden_size
* do not use past_kv_length
* remove encoder_max_seq
2023-09-21 14:41:40 +08:00
Yuanle Liu
af28006018
[LLM] Support gpt3 fine grained dybatch v1 ( #7080 )
...
* support batch_size=1
* support batch_size > 1
* update
* support to_static
* add benchmark for dybatch_preprocess
* fix code style
* fix code style
* fix comment
* update
2023-09-20 20:51:12 +08:00
w5688414
d3c2e4c9c0
Fix function log reptition bug ( #7097 )
2023-09-20 05:46:08 -05:00
qingzhong1
8a11e7e330
[Paddle-pipelines] Add HNSW support for BES ( #7021 )
...
* add hnsw
* update elasticsearch
* update elasticsearch
* update es
2023-09-20 05:30:39 -05:00
w5688414
633db301e6
[Paddle-Pipelines] Add stream output ( #7087 )
...
* Add stream output
* Update
* Fix chat bug
* revert
* Add free chat stream support
* Update prompts
* Reformat function calling logic
2023-09-20 05:28:32 -05:00
骑马小猫
a150627577
[New Features] add llm pretrain & lora & sft & prefix_tuning testing scripts ( #7056 )
...
* add chatglm finetune
* add llm ci scripts
* add llama llm testing
* update llm testing
* revert chatglm sft-arguments
* revert chatglm sft-arguments
* update llm testing
2023-09-20 04:57:00 -05:00
Chang Xu
d2524ab9ab
Support WikiText & Lambada ( #7079 )
...
* Support WikiText & Lambada
* Support WikiText & Lambada
* update
2023-09-20 10:56:00 +08:00
Wennie396
f18dcc8868
align config between dy/st and add memory profiler for dy ( #6982 )
...
* align config between dy and st
* add memory profiler for dy
* comment tiny fix
* delete config 'vocab_size_divisible_unit' when get_model
2023-09-20 10:50:57 +08:00
lugimzzz
c6e0f7862f
[llm]add quantize ( #7027 )
...
* add quantize
* fix bug
* bug fix
* fix saving
* bug fix
* fix and add unitest
* update paddle version
* update following comments
* support prefix
* Update paddlenlp/transformers/model_utils.py
* update
* fix
---------
Co-authored-by: DesmonDay <908660116@qq.com >
Co-authored-by: Sijun He <sijun.he@hotmail.com >
2023-09-19 21:41:48 -05:00
Sijun He
06b25e3933
limit to 1 function call per round ( #7084 )
2023-09-19 21:09:32 +08:00
Shijie
5748b69242
[LLM] Fix synchronized memcpy in GPT ( #7008 )
2023-09-19 16:53:49 +08:00
Zhong Hui
a435f30770
[README] Update OpenWebText2.md ( #7078 )
2023-09-19 16:53:14 +08:00
Wennie396
321faf3052
add if-else use_new_executor branch ( #6897 )
...
* add if-else use_new_executor branch
* no pre-commit reformat
* add () for use_new_executor
* align old executor and new executor loss
* fix outs[loss].shape == () can't get value by outs[loss][-1]
* tiny format fix
* restore the way loss is calculated by new exe
* old executor doesn't have to / accumulate_steps
* dataloader_from_generator add param num_workers=1
2023-09-19 15:40:41 +08:00
Zhong Hui
27e25e6c59
[README] Update llama readme and add tool_helpers as requirement ( #7069 )
2023-09-19 14:16:28 +08:00
Sijun He
98fbee3074
changes ( #7070 )
2023-09-18 21:57:27 -05:00
骑马小猫
06764efe6c
update paddlenlp_ops ( #7071 )
2023-09-18 21:57:06 -05:00
zhang junjun
bd3ce88429
[CI] fix-llm-tests ( #7066 )
...
* [CI] fix-llm-tests
* update
* Update ci_case.sh
2023-09-19 10:06:00 +08:00
骑马小猫
9c1fe1cfc3
update layername of chatglm ( #7073 )
2023-09-18 08:36:14 -05:00
Sijun He
40011aed35
Update README.md ( #7072 )
2023-09-18 07:31:23 -05:00
lugimzzz
da02adde36
[llm]fix bloom tensor parallelism ( #7065 )
...
* fix bloom tp
* add comment
2023-09-18 07:16:07 -05:00
Yuang Liu
3bd4bc3daf
fuse rope udpate ( #6957 )
...
* fuse rope udpate
* remove full level rope
* update
* change to bool value
* update
* update name
2023-09-18 18:10:45 +08:00
Zhong Hui
223909073c
[SetUp] Fix set up with pip install -e ( #7062 )
...
* fix pip install -e
* fix time
2023-09-18 16:58:23 +08:00
Sijun He
5db3d2a992
Support decode_token for stream generation ( #7063 )
...
* styles
* comments
2023-09-18 03:51:17 -05:00
zhang junjun
b732896390
[CI] add_llm_ci_ipipe ( #7050 )
...
* [CI] add_llm_ci_ipipe
* update
2023-09-18 16:49:42 +08:00
骑马小猫
7f09a411e9
update inference-model generation-utils ( #7059 )
2023-09-18 03:02:44 -05:00
w5688414
de6953debb
[Paddle-Pipelines] Add function calling examples ( #7051 )
...
* Add function calling examples
* changes
* add log console
* update fnction_calling
* update fnction_calling
* update fnction_calling again
* reformat
---------
Co-authored-by: Sijun He <sijun.he@hotmail.com >
2023-09-18 02:55:56 -05:00
骑马小猫
d7c39ae2da
fix hard-code model-prefix ( #7048 )
2023-09-15 09:06:29 -05:00
Zhong Hui
11dfdac938
[Trainer] Support show paddlenlp commit id ( #7047 )
...
* support install with git commit
* support trainer for paddlenlp commit id.
2023-09-15 17:55:38 +08:00
骑马小猫
c4242f3d94
[New features] refactor llm ci testing ( #7046 )
...
* add llm ci testing
* update pretrain testing
* convert slow -> default
2023-09-15 17:13:27 +08:00
Sijun He
dee37d8983
raise error if TP > 2 for ChatGLM2 ( #7041 )
...
* raise error for tp > 2
* lint
2023-09-15 02:37:33 -05:00
Ting Liu
26255bb4da
fix beam search topk bug ( #7044 )
...
* fix beam search topk bug
* topk fix
* comment add
2023-09-15 02:31:00 -05:00
qingzhong1
4ac1c3f0eb
add BAAI/bge-small-zh-v1.5 model ( #7036 )
...
* add BAAI/bge-small-zh-v1.5
* update parallel_retriever.py
* add bge
2023-09-15 02:03:42 -05:00
骑马小猫
9a80fec89b
[Bug fixes] Fix typo ( #7039 )
...
* use model_type to control model-intialization
* fix typo
2023-09-14 07:22:39 -05:00
骑马小猫
998a041665
[Bug fixes] Fix generate d2s ( #6971 )
...
* use model_type to control model-intialization
* fix generation d2s
* enable llama d2s testing
* update generate d2s
* update is_encoder_decoder
* max_length -> max_new_tokens
2023-09-14 04:28:48 -05:00
Ting Liu
fe71c6801f
fix cache select bug ( #7026 )
...
* fix cache select bug
* update
* lint fix
* fix bug
2023-09-14 00:53:21 -05:00
Sijun He
fd2bed541f
changes ( #7029 )
2023-09-13 22:53:21 -05:00
骑马小猫
7e09afcc0c
[Benchmark]change N2C16 -> gbs=64 ( #6902 )
...
* change N2C16 -> gbs=64
* update gbs=64 configuration
* update gbs field
* update sharding_degree -> ssharding_parallel_degree
* update llama scripts
* update llama benchmark scripts
* update llama N2C16 scripts
* change N2C16 script name
* update N1C8
* update N1C8 script
* update llama benchmark training strategy
* update N2C16 scripts
* update llama new benchmark training strategy
* update run_benchmark
* update max_step -> max_steps
* update tensor_parallel_config
* update benchmark script
* update base_batch_size
* update training_args
* change order or split
* update default tensor_parllel_config value
* change fp16 -> bf16
* revert requ-dev.txt
* update requirements-dev.txt
2023-09-14 11:31:38 +08:00
Siming Dai
1ef5b94a18
[TensorParallel] Support naive split for lazy safetensors ( #7018 )
2023-09-14 10:41:19 +08:00
w5688414
6e6301e544
Add embed_documents for ParallelRetriever ( #7025 )
2023-09-13 08:51:42 -05:00
Ting Liu
405b64c608
fix chatglmv1/2 beam search bug ( #7017 )
...
* fix chatglmv1/2 beam search bug
* group beam search fix bug
2023-09-13 07:06:44 -05:00
zhang junjun
97b22f3e6d
[CI] add_llm_unittest ( #6913 )
...
* [CI] add_llm_unittest
* fix lint
* update
* update
* update
* fix lint
* update
* fix finetune output
* fix lint
* fix predict
* update
2023-09-13 17:44:45 +08:00
lugimzzz
dcad8b0e3d
[llm]update tipc setting ( #6990 )
...
* update setting
* delete
---------
Co-authored-by: DesmonDay <908660116@qq.com >
2023-09-13 03:15:27 -05:00
qingzhong1
fc0e7e16bd
add mulprocessing ( #7019 )
2023-09-13 16:04:24 +08:00
骑马小猫
83e0b4703a
[Bug fixes] fix inference dybatch d2s ( #6998 )
...
* fix inference dybatch d2s
* remove encoder-output
2023-09-13 01:53:09 -05:00
laixinyi
a43138bb4b
fix T5 readme ( #6659 )
...
Support megatron dataset for T5
2023-09-13 11:17:26 +08:00
DrownFish19
d9f1b76773
[GPT-3] fix gpt3 config ( #7006 )
...
* fix gpt3 config
* update
* update
* update
2023-09-13 10:39:46 +08:00
ZZK
4a7665dbd1
Fix benchmark bug ( #7002 )
...
* fix bug
* fix wint4 convert
2023-09-12 08:21:49 -05:00
xiaoxiaohehe001
f5607336ca
[LLM] support bloom dybatch ( #7003 )
...
* support_llama
* support_llama
* delete_loss
2023-09-12 08:20:48 -05:00
Sijun He
e49842c816
chatglm2 beam search fix ( #7012 )
...
* chatglm2 beam search fix
* changes
---------
Co-authored-by: 刘汀 <wtmlon@foxmail.com >
2023-09-12 07:02:56 -05:00
WangZhen
45d4ee804f
Fix bert error in SOT ( #6942 )
...
* Fix bert error in SOT
* Format code
* Format code
2023-09-12 19:23:44 +08:00
DrownFish19
d83032de04
[GPT-3]fix fluid for stride_check ( #6999 )
...
* fix fluid for gpt
* fix
* update FG CMakeLists.txt
* fix
* update FasterTransformer link
2023-09-12 19:19:44 +08:00
Sijun He
07902f6bd6
Add new models to LLaMA README.md ( #6985 )
...
* Update README.md
* changes
---------
Co-authored-by: 刘汀 <wtmlon@foxmail.com >
2023-09-12 06:12:24 -05:00
w5688414
834213c8e6
[Paddle-Pipelines] Update chatpaper UI for fitting aistudio ( #7011 )
...
* Update chatpaper UI
* remove unused comments
* remove unused comments
2023-09-12 06:06:12 -05:00
zhaoyingli
b6ad73037f
add fusedpass config in yaml ( #6986 )
2023-09-12 17:33:06 +08:00
w5688414
be61dcefc1
[Paddle-pipelines] remove ui requirements ( #6992 )
...
* remove ui requirements
* restore typing_extensions==4.5
* Update requirements
* remove st-annotated-text
* Add ui requirements to readme
* Update
2023-09-12 01:37:33 -05:00
ZZK
264de97e23
Fix fluid to base ( #6989 )
...
* fix fluid to base
* revert generation utils
* remove inspect
2023-09-12 10:12:40 +08:00
Siming Dai
77673c19f4
[BugFix] Fix load shard state_dict log ( #6991 )
2023-09-11 22:50:43 +08:00
liuzhenhai93
660185439a
[GPT-3] ppfleetx sep support ( #6962 )
...
Co-authored-by: liuzhenhai93 <liuzhenhai@baidu.com >
2023-09-11 19:51:27 +08:00
DrownFish19
60df8dfcf0
Support megatron dataset for ernie-1.0 ( #6653 )
...
* fix modeling_pp error
* enable recompute for GPTDecoderLayerPipe
* add data impl for ernie-1.0
* support load megatron dataset for ernie
* fix doc_idx
* update
* format code
* fix
* formated
* fix
* update README.md
* update README.md and train bash
* add import in paddlenlp/data
* update
* update README.md
* update
* update readme
* update
* update
* update data download links
2023-09-11 19:04:44 +08:00
骑马小猫
6e82c908cc
[Bug fixes] Fix gradio br newline display ( #6980 )
...
* use model_type to control model-intialization
* fix newline in gradio-ui display
2023-09-11 03:09:48 -05:00
Sijun He
033d859b1f
max_new_token -> max_new_tokens ( #6984 )
...
* max_new_tokens
* default max new tokens
2023-09-11 03:09:20 -05:00
xiaoxiaohehe001
d758792e31
[LLM] support llama precache. ( #6975 )
...
* llama_precache
* update predictor
---------
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-09-11 02:48:55 -05:00
Chenghao Liu
5e250ee158
[Minor Fix] Urgent compatibility fix for “model_zoo/gpt-3” as “paddle.fluid” is already deprecated in Paddle upstream ( #6964 )
2023-09-11 10:36:34 +08:00
ZZK
fa0ea00bbf
Support Weightonly in LLM Inference ( #6799 )
...
* add dyquant transformer
* add dyquant modeling
* add quant config
* Remove quant utils
* add arguments for quant type
* Refine arguments
* refine
* fix weight attr
* fix attr
* fix random seed attribute
* fix dy2static error
* remove redundant print
* merge weightonly layer to fused_transformer_layer
* merge dyquant modeling in naive llama modeling
* refine predictor
* fix bug
* Add weightonly support
* remove redundant code
* fix format
* revert stop_generation_multi_ends.cu
* Set InferenceModel use safetensors as False
* fix lint
* fix input dtype
---------
Co-authored-by: 骑马小猫 <1435130236@qq.com >
2023-09-10 15:18:26 +08:00
qingzhong1
bed6fe1428
update chat_table ( #6973 )
2023-09-08 19:48:22 +08:00
w5688414
ea18e6983a
Update llm scripts ( #6974 )
2023-09-08 19:48:05 +08:00
w5688414
c1e4028103
Add chatglm run_mode with recompute ( #6972 )
2023-09-08 05:44:08 -05:00
qingzhong1
5c7ba6fb59
[Paddle-pipelines] update chatpaper.py ( #6968 )
...
* add translation
* add translation
* add translation
* add translation
2023-09-08 18:32:15 +08:00
骑马小猫
d06252bb62
[Function optimization] refactor predictor & add unittest ( #6955 )
...
* refactor predictor & add unittest
* fix force-eos test
* update predictor unittest
* update parameters
* remove hard-code pad-token-id
2023-09-08 03:19:23 -05:00
Zhong Hui
af64a72b0c
[Trainer] Fix save model for sharding stage3. ( #6966 )
2023-09-08 15:53:12 +08:00
w5688414
7a6c68af1d
Upgrade pipelines to 0.6.1 ( #6969 )
2023-09-08 02:52:42 -05:00
Yuang Liu
e77ae17c52
[Trainer] Support master grad for sharding stage1 ( #6916 )
2023-09-08 14:49:42 +08:00
骑马小猫
490c5d46a9
fix force-eos unittest ( #6958 )
2023-09-08 13:49:23 +08:00
骑马小猫
4401d2893c
[Function optimization] update predictor & inference model ( #6951 )
...
* update predictor & inference model
* add force-decoding-eos token logit processor
* update generation __init__
2023-09-07 08:15:42 -05:00
qingzhong1
a6e3ec7c0e
[Paddle-pipelines] modify chatpaper.py ( #6949 )
...
* update ui
* update ui_1
2023-09-07 17:57:17 +08:00
lugimzzz
694c0bc9b4
add quant save ( #6937 )
2023-09-07 03:11:08 -05:00
Ting Liu
a7754b01f2
opt support multi gpu ( #6943 )
...
* opt support multi gpu
* remove low mem flag
* bug fix, lm_head initialization
2023-09-07 03:10:23 -05:00
liuzhenhai93
cdba8526a0
[Trainer] Support segment parallel group. ( #6946 )
2023-09-07 15:32:37 +08:00
w5688414
adee5a5251
Add intokens support for chatglm2 ( #6941 )
2023-09-07 01:24:20 -05:00
Zhong Hui
deeeb13bf0
change .numpy to cpu().numpy() ( #6940 )
2023-09-07 11:38:32 +08:00
w5688414
22d69688fc
Add llama bloomz benchmark ( #6911 )
...
* Add llama bloomz benchmark
* restore prepare.sh
* rename bloom
* rename bloomz
* Add requirements
* rename bloomz chatglm scripts
* Update mode to recompute
---------
Co-authored-by: qingzhong1 <zhongq1234@126.com >
2023-09-06 22:22:27 -05:00
周周周
294df07ea6
[Paddle Inference]support miniGPT4's second part dy2st ( #6905 )
...
* support miniGPT4
* remove some useless code
* move some function to modeling.py
commit
* 1->self.config.bos_token_id
* remove useless comment
* huifu
* move prepare_input_ids_for_generation to modeling
* LlamaForMiniGPT4InferenceModel
* use model_type
2023-09-07 10:05:33 +08:00
qingzhong1
579d1f947a
modify chatpaper ( #6935 )
...
* modify chatpaper_1
* modify history
2023-09-06 20:13:49 +08:00
骑马小猫
c59f161920
[New features] Add no bad words logit processor ( #6932 )
...
* use model_type to control model-intialization
* add no-bad-words
2023-09-06 04:46:17 -05:00
Ruibin Cheung
ba2a788cff
[Feature] profiler utils add record_shapes option ( #6871 )
2023-09-06 17:11:22 +08:00
qingzhong1
5fec2f4d4a
[Paddle-pipelines] update chat_paper.py ( #6925 )
...
* update ui
* modify chat_paper.py
* modify chat_paper.py
* modify chat_paper_1.py
2023-09-06 03:05:26 -05:00
lugimzzz
3aca6d500a
[llm]rename tipc ( #6931 )
...
* rename tipc
* update run_mode
2023-09-06 01:49:56 -05:00
Sijun He
e234892a42
Add _pad to qwen tokenizer ( #6930 )
...
* qwen _pad
* styles
---------
Co-authored-by: qingzhong1 <zhongq1234@126.com >
2023-09-06 14:23:56 +08:00
Ting Liu
b34420e4b3
fix empty list indices ( #6927 )
...
* fix empty list indices
* code refinement
2023-09-05 23:09:07 -05:00
Ting Liu
e183825ca7
pretrainedModel add gconfig ( #6915 )
...
* pretrainedModel add gconfig
* max/min_new_token, bug fix
* deprecate generation_utils
* code refinement
* code refinement
2023-09-05 08:05:12 -05:00
Ruibin Cheung
5fe97bd248
[Typo] fix script and docs typo ( #6879 )
2023-09-05 08:02:01 -05:00
Yuang Liu
63f654bebc
for pp_recompute_interval ( #6922 )
2023-09-05 07:51:32 -05:00
lugimzzz
b97138aca0
[llm]fix generation evaluation ( #6924 )
...
* fix generation
* update
* fix
2023-09-05 07:51:03 -05:00
骑马小猫
8a844d2a21
use model_type to control model-intialization ( #6923 )
2023-09-05 19:40:39 +08:00
w5688414
116c71ca9c
Add llama alibi intokens support ( #6921 )
...
* Fix llama alibi attention mask
* Add Baichuan
2023-09-05 04:52:08 -05:00
DrownFish19
0283a6b7c1
[FG] Update FG for latest paddle and cuda ( #6812 )
...
* fix FG for new paddle and cuda env
2023-09-05 17:41:26 +08:00
骑马小猫
3a9d41b0db
fix next-tokens after update_model_kwargs_for_generation ( #6919 )
2023-09-05 17:11:07 +08:00
ZZK
19a9207b64
Add LLM benchmark scripts ( #6906 )
...
* add benchmark
* fix decode length bug and update stop generate custom ops
* refine comment
* remove annotation
2023-09-05 15:00:35 +08:00
lugimzzz
77443ffc1c
[llm]support get last checkpoint ( #6914 )
...
* add find last checkpoint
* add intro
* fix quant
* delete overwrite
2023-09-04 22:19:15 +08:00
Yuang Liu
30716e892e
add flag ( #6910 )
2023-09-04 03:00:18 -05:00
Sijun He
59b2bd0e1e
remove triage issue workflow ( #6907 )
2023-09-04 01:34:14 -05:00
DrownFish19
88e90ef8da
[GPT3 & LLaMA] Fix collate_data ( #6869 )
...
* fix collate_data
2023-09-04 14:22:02 +08:00
西瓜
c765bb2ef7
GenerationConfig, logits_process unittests, streamer(unittests) ( #6855 )
...
* GenerationConfig, logits_process unittests
* lisence, comment
* use stopping_criteria in generate
* docstring, hint, code adjustment
* group bs bug fix
* d2s unittest close, bug fix
* cpu dtype matching fix
* disable warning temporary
2023-09-03 23:28:05 -05:00
Sijun He
f0fcd896e7
move import to the top ( #6904 )
2023-09-03 23:10:01 -05:00
lugimzzz
1b616f5b82
add training ( #6899 )
2023-09-03 22:36:16 -05:00
qingzhong1
19a6e5da10
[Paddle-pipelines] upgrade to ernie bot sdk for chatpaper ( #6898 )
...
* Update chatfile
* Update chatfile
* modify chat_paper
* modify readme
2023-09-04 11:35:18 +08:00
w5688414
2f3eac3e29
[Paddle-pipelines] Add index data parallel support ( #6886 )
...
* Add multi thread support
* Update chatpaper index
* Set fixed number_of_shards
2023-09-03 20:23:00 +08:00
Sijun He
7588a216ab
styles ( #6896 )
2023-09-01 18:37:39 +08:00
骑马小猫
4d590ebb48
[Bug fixes] support multi-gpus for gradio_ui ( #6893 )
...
* init dist_env before creating model
* add custom warning
2023-09-01 17:48:36 +08:00
lugimzzz
40918aa8e0
fix llama pp ( #6894 )
2023-09-01 17:47:51 +08:00
lugimzzz
354e85d9dd
[llm]support iteratordataset ( #6895 )
...
* support paddlenlp2.6
* support lazy
2023-09-01 17:27:42 +08:00
Sijun He
a488002f6b
styles ( #6892 )
2023-09-01 16:36:02 +08:00
lugimzzz
96de1779f5
support paddlenlp2.6 ( #6891 )
2023-09-01 15:41:11 +08:00
西瓜
78583b2f37
llama beam search fix ( #6882 )
...
* llama beam search fix
* close chatglm2 beam search tests temporary
* group beam search fix
* fix group beam search
* add comments
2023-09-01 12:09:32 +08:00
Sijun He
f443bae5c5
Support PyLayer version of Recompute ( #6885 )
...
* recompute
* all models
2023-08-31 15:20:10 +08:00
lugimzzz
1426169291
[LLM]add ft benchmark ( #6792 )
...
* add ft benchmark
* update
* fix
* fix
* fix
* fix
* rename
* fix
* change batch size
* fix
* run longer
* fix
2023-08-31 14:52:45 +08:00
骑马小猫
a5626f02cd
add decode_strategy field ( #6868 )
2023-08-31 14:07:10 +08:00
Sijun He
f143685fe5
Update .readthedocs.yaml ( #6883 )
2023-08-31 14:03:23 +08:00
Siming Dai
3b41581502
fix code ( #6880 )
2023-08-31 10:57:17 +08:00
骑马小猫
4c4ef6147f
[Function optimization] Update llama benchmark ( #6856 )
...
* update llama scripts
* update llama prepare.sh scripts
* remove train_data_size
* update data_cache
* update N2C16 parameters
* update llama N2C16 config
* update N1C8 scripts
2023-08-31 10:35:06 +08:00
Liujie0926
5623c1a1d5
[gpt-3]update auto benchmark ( #6849 )
2023-08-31 10:33:26 +08:00
w5688414
2c0b40351c
revert llama flash attention ( #6876 )
...
* revert llama
* remove proxy
2023-08-30 18:52:10 +08:00
ZZK
43d7b872c8
fix format ( #6865 )
2023-08-30 14:33:43 +08:00
zhaoyingli
36ebbf5e29
update auto_engine use iterable dataloader ( #6862 )
...
* fix auto engine with iterable dataloader in new executor
* fix dataloder batch_size
2023-08-30 14:19:27 +08:00
Siming Dai
3655108a18
fix llm predict ( #6870 )
2023-08-30 12:18:33 +08:00
w5688414
2aa58d83a6
[Paddle-pipelines] Add hierarchical search examples ( #6829 )
...
* Add hierarchical search examples
* Add ranker
2023-08-29 19:49:48 +08:00
lugimzzz
6b617b17f2
support paddlenlp2.6 ( #6842 )
2023-08-29 19:31:00 +08:00
Siming Dai
df6a5d7a42
[Pretrain BugFix] Fix load file ( #6861 )
2023-08-29 19:01:39 +08:00
gongenlei
159a96c807
[LLM] Add gradio title and more args ( #6859 )
...
* llm supports advertisegen
* add more args for gradio
2023-08-29 17:36:39 +08:00
DrownFish19
facaf0ee06
fix for sharding satge3 ( #6858 )
2023-08-29 17:35:19 +08:00
Siming Dai
82bc1c64b9
fix llama pretrain ( #6854 )
2023-08-29 16:35:47 +08:00
Zhong Hui
12a4326ca3
[Trainer] Fix load opt, since load opt to cpu tensor many leak mem. ( #6850 )
2023-08-29 16:07:54 +08:00
Sijun He
d1433dbf34
Add .skip() API to IterDataset, use .skip() API in LLM finetune ( #6845 )
...
* styles
* try to fix readthedocs
* styles
2023-08-29 16:03:30 +08:00
DrownFish19
ac8fb319df
[GPT-3] Unify the implementation of gpt ( #6705 )
2023-08-29 15:33:18 +08:00
Siming Dai
d6815b38de
[PreTrain] Add distributed dataloader ( #6775 )
...
* add dist data looader
* remove iterable dataset use dist_dataloader
* fix dist dataloader
* change args and add barrier
* fix dataset load
* add dist dataloader for eval
* fix bug
* fix eval bug
* simplify code
* bugfix
* broadcast data keys
2023-08-29 12:57:51 +08:00
Sijun He
4a79dcef4a
styles ( #6846 )
2023-08-29 11:09:47 +08:00
w5688414
c5b78ba373
[llm benchmark] Add llama flash attentions & GPT3 ( #6603 )
...
* Add chatglm flash attentions
* remove proxy
* Update benchmark
* Update bloom to flash attention
* Update bloom attention_mas
* remove comments
* remove proxy and unused comments
* Add gpt3 support
* Add sharding3 support for gpt3
* Update gpt3
* Update flash attention
* Update chatglm, bloom flash attention
* remove lm shift labels
* Update bloom attention
* Update chatglm attention
* Update bloom flash attention
* Reformat llama flash attention
* Add gpt3 impl
* Update flash attention & intokens results
* Update bloom impl
* rm gpt config
* revert chatglm bloom
* Update llam
* revert bloom distributed results
* Update llama
* remove position ids
* remove proxy
---------
Co-authored-by: Sijun He <sijun.he@hotmail.com >
2023-08-29 11:08:40 +08:00
xiaoxiaohehe001
7903bcc80f
Support chatglm fine grained dybatch v1. ( #6798 )
...
* support_chatglm_fine
* unify_fused_layer
* fix_utils
* delete_model_type
* delete_set_state_dict_external
* fix_useless_log
* add_update_kwags_self
---------
Co-authored-by: zhengzekang <>
2023-08-28 19:17:41 +08:00
Sijun He
71354f8db6
Support Multiple train/dev files in LLM ( #6837 )
...
* styles
* changes
* update read the docs
* changes
* fix read the docs
2023-08-28 19:09:46 +08:00
lugimzzz
06c5b71f10
support d2s for rope ( #6840 )
2023-08-28 19:09:21 +08:00
yujun
3b2b2ba452
[Trainer] Fix timer _git_commit__ ( #6833 )
2023-08-28 16:44:05 +08:00
qingzhong1
aee044f41c
[Paddle-pipelines] update ChatTable ( #6813 )
...
* update chattable
* update README
* modify chattable
* modify create_inedex.py
* update chat_table.py
* modify chat_table
2023-08-28 13:39:15 +08:00
zhang junjun
dabcdc064c
[CI] fix ernie 1.0 ( #6828 )
...
* [CI] Disabled_FG
* fix ernie-1.0
* update
2023-08-28 10:18:00 +08:00
Kunbo Ding
1a69081ed4
[Megatron dataset] Support loading megatron dataset ( #6489 )
...
* Adapt to Megatron
* fix_print_dataset
* fix BlendableDataset
* fix BlendableDataset
* fix skip_warmup
* fix
* fix
* fix
* fix
* fix
* fix
* cache fix
* make new dataset
* fix loss mask
* fix model_zoo/gpt
* fix model_zoo/gpt
* fix model_zoo/gpt
* fix gpt test
* fix legacy
* fix legacy
* hf_model
* remove legacy
* merge develop gpt
* fix model_zoo/gpt for megatron
* merge develop
* resolve conflict
* fix check_rank_flag for data_cache_path
* fix check_rank_flag for data_cache_path
* remove hcg
* fix model_zoo/gpt eval
2023-08-25 19:05:13 +08:00
Ruibin Cheung
d012c87065
fix: profiler export path ( #6825 )
2023-08-25 18:20:26 +08:00
lugimzzz
c9e34e7d2d
fix ( #6827 )
2023-08-25 18:17:54 +08:00
lugimzzz
211e158f48
support iterdataset ( #6826 )
2023-08-25 18:17:13 +08:00
骑马小猫
5c55a80f7a
[Bug fixes] fix fused-transformer nexo rotary params ( #6805 )
...
* fix fused-transformer nexo rotary params
* update boundary length
* update max_length & max_batch_size
* remove pdb
* update max-batch-size comment
2023-08-25 15:13:57 +08:00
littsk
ebe8b43e28
set llama pp_recompute_interval default value to 1 ( #6823 )
2023-08-25 13:38:05 +08:00
骑马小猫
95bfa81ea5
[Llama benchmark]add llama benchmark scripts ( #6721 )
...
* add llama benchmark scripts
* update paddle N1C8 N2C16 benchmark scripts
* update n2c16 config
* update scripts
* update model_item
* rename script file name
* update llama benchmark scripts
* update llama pretrain scripts
* rename llama name
* remove trainer nccl init
* update llama benchmark
* fix pretrain bug
* update 2-server config
* rename script name
* add N1C8
* increate value of timeout
2023-08-25 13:27:44 +08:00
w5688414
0cea4d9dd1
[Paddle-Pipelines] Add ernie retriever ( #6814 )
...
* Add ernie retriever
* Update comments
* rename example files
* remove redundable parameters
* Add embedding retriever
2023-08-25 13:16:31 +08:00
Ruibin Cheung
1f098e77de
[Trainer] Use paddle.device.synchornize to replace paddle.device.cuda.synchornize ( #6811 )
2023-08-25 10:47:42 +08:00
DrownFish19
b808eb33c4
[Trainer] Fix trainer during saving checkpoints ( #6725 )
2023-08-25 10:46:20 +08:00
DrownFish19
beb895435b
[GPT] Fix seed get error ( #6694 )
2023-08-25 10:44:28 +08:00
lugimzzz
3fe62a16a9
[LLM]add qwen in readme ( #6822 )
...
* add qwen in readme
* add
* update
* fix
2023-08-24 21:34:32 +08:00
Sijun He
704846a090
remove ( #6821 )
2023-08-24 21:19:31 +08:00
littsk
af59325f7c
fix bug for recompute in llm finetuning ( #6806 )
...
* fix bug for recompute in llm finetuning
* code refactoring
* fix precition bug
* convert pylayer recompute to hook recompute
2023-08-24 21:05:57 +08:00
Sijun He
bdac333711
Update intokens_dataset.py ( #6820 )
2023-08-24 20:20:11 +08:00
lugimzzz
39302ed546
[LLM]supoort pp intokens ( #6810 )
...
* supoort pp intokens
* unify max_length
2023-08-24 19:59:06 +08:00
西瓜
b701996c66
support qwen in llm module ( #6804 )
...
* support qwen in llm module
* add prefix argument
2023-08-24 19:58:00 +08:00
QingshuChen
0c8385c125
replace int64 size with float for xpu ( #6819 )
2023-08-24 19:51:22 +08:00
zhaoyingli
899c32fb7f
update AutoEngine with low api ( #6703 )
...
* align AutoEngine to EagerEngine
* tiny fix
* fix validate
* align AutoEngine/GPTModuleAuto to EagerEngine/GPTModule
* align AutoEngine to EagerEngine and fix bugs
fix eval_losses bug
fix pp running error bug
fix valid_data_loader exits abnormally problem
add nvprof
add GPU memory log
* fix train_losses bug in func train_one_epoch and other tiny fix
* increase the eval_freq value otherwise sharding in eval mode has problem
* rm sh
* update logger
* update format
* update format
---------
Co-authored-by: Wennie396 <wn295448@buaa.edu.cn >
2023-08-24 19:18:21 +08:00
zhang junjun
d475b0418b
[CI] Disabled_FG ( #6809 )
2023-08-24 12:33:59 +08:00
Ghost Screaming
7165840bfd
Add config for mp_asycn_allreduce. ( #6777 )
...
* Add config for mp_asycn_allreduce.
* Polish code.
2023-08-24 11:27:52 +08:00
lugimzzz
5dd0f5d5e5
fix warning ( #6801 )
2023-08-23 18:42:27 +08:00
Kai Song
e485ebdf3f
[TIPC]update tipc configs ( #6803 )
2023-08-23 16:43:41 +08:00
Siming Dai
271bcd001c
[Trainer] Support load sharded ckpt ( #6787 )
2023-08-23 14:37:39 +08:00
w5688414
0491fb23f0
[Paddle-pipelines] Update pipelines ( #6790 )
...
* Update pipelines
* Update chatpaper ui
* remove pooling_mode parameter
2023-08-23 13:33:01 +08:00
Zhong Hui
d1c50ee4b3
fix tp split to all. ( #6797 )
2023-08-23 00:20:16 +08:00
西瓜
253c1ebd33
qwen init.py ( #6794 )
2023-08-22 19:35:20 +08:00
lugimzzz
e9b27f3cb4
fix ( #6793 )
2023-08-22 18:52:41 +08:00
西瓜
306f0e3db2
add QWen ( #6719 )
...
* add QWen
* add QWen tokenizer, add generative unittest
* generative unittest dtype unmatch on cpu platform
* add qwen multi-gpu
* remove type id, position id, attention mask standardize
* remove redundant print
* remove pad token hardcode
* model prefix name change
* code refinement: dtype, reshape
2023-08-22 16:05:24 +08:00
zhang junjun
52b88632bc
[CI] fix fast gpt ( #6783 )
...
* [ci]fix llama
* update
* [CI] update gpt
* [CI] fix fast gpt
* update
2023-08-22 12:03:50 +08:00
lugimzzz
fdf6980dca
[LLM]fix peft in trainer & llm readme ( #6785 )
...
* fix
* update image
* merge lora & pt code
* update readmeA
* fix intokens
2023-08-22 11:38:25 +08:00
lzy
b3b650c857
supports llama-dybatch-V1 ( #6676 )
...
* supports DyBatch-V1
* update dybatch llama
* complete predictor
* complete multi-gpus checking
* complete predictor
* remove experiment fils
* update parallel_matmul y_distributed
---------
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-08-22 10:06:50 +08:00
haoyuying
c8b930578c
[fix bug] argsort does not support bfloat16 ( #6746 )
...
* [fix bug] argsort does not support bfloat16
* [fix bug] argsort does not support bfloat16
* [fix bug] argsort does not support bfloat16
* fix bug of TopPProcess
* code style test
* -
* fix code style
* -
* fix code style
2023-08-22 09:52:42 +08:00
lugimzzz
071b26e11d
add Llama RoPE scaling ( #6743 )
...
* add rotary scale
* update
* fix
2023-08-21 19:10:32 +08:00
Zhong Hui
e0a9f4eb00
[Trainer] Add hybrid_parallel_topo_order options. ( #6782 )
2023-08-21 13:20:21 +08:00
w5688414
8febfc2455
Update pipelines to 0.6.0 ( #6779 )
2023-08-21 11:31:14 +08:00
littsk
3bf3e02d3c
Add recompute for llama ( #6635 )
...
* Add support for more granular recomputation For LLAMA
* Use a dictionary to store computed outputs
* change do_recompute to layerwise_recompute
* code refactoring
2023-08-21 11:30:37 +08:00
qingzhong1
928c59e23c
[PaddlePipelines] upload ChatTable ( #6768 )
...
* upload chat_sql.py
* upload ChatTable
* upload ChatTable
* upload readme.md
* upload readme.md
2023-08-19 19:23:11 +08:00
骑马小猫
74e3d071ac
[Bug fixes] fix llama/bloom/opt/chatglm/chatglmv2 d2s ( #6696 )
...
* fix llama d2s
* update llm export
* open llama to_static test
* update path checking
* disable gpu
* complete model d2s
* update arguemnt for predictor & update readme
* update tokenizer attribute
* prevent max_length overflow
* update predictor
* update predictor
* update predictor
* update llm d2s
* update boos-token-id
* update bos_token_id config
* disable chatglm d2s testing
2023-08-18 16:06:12 +08:00
w5688414
3d423c6619
[Paddle-pipelines] Add logging error ( #6729 )
...
* Add logging error
* change p_m to num_process
2023-08-18 15:42:40 +08:00
w5688414
de9abfd8d9
[Paddle-pipelines] Update chatpaper&m3e README & debug option ( #6769 )
...
* Update chatpaper&m3e README
* Update readme
* Add debug options
2023-08-18 14:59:55 +08:00
zhang junjun
1f5fd52869
[CI] Update gpt2 ( #6767 )
2023-08-18 14:11:27 +08:00
qingzhong1
6bd7ed8b01
[Paddle-pipelines] update chat_paper.py ( #6760 )
...
* update chat_paper.py
* modify chat_paper.py
* modify create_index
* modify create_index_2
2023-08-18 13:28:56 +08:00
xiezheng-XD
2a12b0e50a
Update README_en.md to fix a series of spell errors ( #6764 )
...
* Update README_en.md
* Update README_en.md
* Update README_en.md
* Update README_en.md
2023-08-18 13:05:59 +08:00
Zhong Hui
00fc1c4449
[LLM] remove llama config in configuration.py ( #6765 )
2023-08-18 13:04:48 +08:00
lugimzzz
3f0ab8d244
fix ( #6756 )
2023-08-17 16:26:25 +08:00
qingzhong1
f588966762
[Paddle-pipelines] upload chatfile2.py ( #6685 )
...
* Upload chatfile2
* Upload chatfile2
* modify chatpaper2.py_1
* modify chatpaper2.py_1
* modify chatpaper2.py_1
* modify chatpaper2.py_1
* update chatpaper q
* update chatpaper
* modify chatpaper
* modify chat_paper
* modify chat_paper_1
2023-08-17 11:33:02 +08:00
Kai Song
d031e49190
[TIPC]update xpu tipc script ( #6753 )
2023-08-17 10:53:46 +08:00
Liujie0926
d75741bbfa
nccl to 2.15,del flag ( #6738 )
2023-08-16 15:35:05 +08:00
Sijun He
3a5773cbfe
Update README.md
2023-08-15 21:27:31 +08:00
qingzhong1
f06e571c62
[Paddle-pipelines] Add ERNIE-Bot-turbo support ( #6737 )
...
* modify ernie_bot
* modify ernie_bot again
2023-08-15 21:13:08 +08:00
Sijun He
4353b6447e
Update readme for release 2.6 ( #6742 )
...
* wip
* update readme for 2.6
* address comments
2023-08-15 21:01:33 +08:00
Sijun He
e8ee455228
release 2.6 ( #6739 )
2023-08-15 20:39:04 +08:00
骑马小猫
18da50a8ba
fix d2s generation bug ( #6740 )
2023-08-15 20:38:35 +08:00
lugimzzz
98bfddd75f
[llm]fix bug in ChatGLM merge tp params and prefix model generation ( #6730 )
...
* fix
* fix prefix generation
* fix chatglm tp
2023-08-15 17:15:21 +08:00
Guo Sheng
8c01eebfba
Make FG adapt to latest paddle ( #6727 )
2023-08-15 11:57:11 +08:00
w5688414
71b4c5314d
[Paddle-pipelines] Update pipelines examples & update markdown splitters ( #6717 )
...
* Update pipelines examples
* Update splitter
2023-08-15 11:32:28 +08:00
zhang junjun
bc8df6ef87
[CI] fix llama ( #6720 )
...
* [ci]fix llama
* update
2023-08-14 21:33:00 +08:00
Sijun He
4dfec25bb3
Update README.md
2023-08-14 21:32:27 +08:00
lugimzzz
3272992567
[llm]update LLM readme & add pp sft ( #6709 )
...
* update readme acoording to comments
* add pp & delete unused files
* tiny fix
* not support ernie 3.5
* update gpt
* delete unused pad
* add support param
* add opt
* fix chatglm unitest
2023-08-14 21:31:35 +08:00
Zhong Hui
b071870d0a
[LLM] Add merge script for merge tp and pp. ( #6713 )
2023-08-14 17:20:50 +08:00
wanghuancoder
d2c228500e
Support stride dy2st ( #6712 )
2023-08-14 17:17:35 +08:00
Guo Sheng
09329bd614
Fix paddle.no_grad in moe example. ( #6715 )
2023-08-14 17:09:39 +08:00
Ruibin Cheung
fe262daf73
fix(llama): add pretrained_init_configuration to LlamaConfig ( #6710 )
2023-08-14 16:37:09 +08:00
yujun
ae777fdd6e
rm benchmark args ( #6708 )
2023-08-14 16:07:06 +08:00
Zhong Hui
e62f3ee670
add safetensors as requirements. ( #6704 )
2023-08-14 13:07:23 +08:00
lugimzzz
2334b4d07e
[LLM]add unify llm ( #6695 )
...
* add unify llm
* add
* tiny fix
* delete unused files
* add quant
* add quant
* add json
* pp not yet support
* update according to comments
* add 4d explaination
* fix
* tiny
* update
* tiny
* tiny
2023-08-14 00:28:36 +08:00
Sijun He
46e55512d4
Implement InTokens data stream for ChatGLM ( #6701 )
...
* fix styles
* to list
* benchmarks
* ready for PR
2023-08-13 22:16:59 +08:00
Sijun He
262b23a7fb
fix intokens ( #6700 )
2023-08-12 15:56:44 +08:00
Meiyim
ac6f9b7e3a
fix loop ( #6698 )
2023-08-12 01:47:45 +08:00
pangengzheng
870cf8e501
[Trainer] Support reshard save/load for sharding stage1 ( #6633 )
2023-08-11 21:01:55 +08:00
ShenLiang
f5f47ad00a
[Trainer] Fix try import ( #6691 )
2023-08-11 20:29:07 +08:00
Meiyim
90403785ee
[Trainer] Update trainer for more timer info
2023-08-11 17:38:34 +08:00
Sijun He
48db6d42e2
Move LLaMA tipc benchmark ( #6689 )
...
* changes
* add tokens and label shift
* styles
* move benchmark
2023-08-11 15:42:28 +08:00
Zhong Hui
dad7b3b801
[Trainer] Fix for compatibility ( #6687 )
...
* fix
* fix
2023-08-11 14:34:26 +08:00
lugimzzz
a2b205924c
support load_best_model_at_end ( #6688 )
2023-08-11 14:28:15 +08:00
ShenLiang
e7bfd49807
[Cherry-Pick]( #6509 ) ( #6504 ) ( #6684 )
...
* support pp delay_scale_loss and dp_comm_overlap
* [Distributed]Add dp/sharding overlap for pipeline (#6504 )
* [Distributed]Support pipelineparallel in accumulation_steps (#6509 )
* fix trainer
---------
Co-authored-by: haohongxiang <haohongxiang@baidu.com >
2023-08-11 11:50:02 +08:00
Siming Dai
4728fc645c
Remove fluid for llm/gpt3 and model_zoo/gpt ( #6664 )
...
* remove fluid
* delete non-trainer gpt
* fix readme
2023-08-11 01:16:04 +08:00
Sijun He
ea89a5d8d4
Fix unwanted fields in InTokens and peft benchmark ( #6682 )
...
* changes
* add tokens and label shift
* styles
2023-08-10 21:51:50 +08:00
lugimzzz
d45c7ee7b3
fix chatglm2 pt ( #6683 )
2023-08-10 17:47:51 +08:00
西瓜
a140e9b802
causallm module support opt ( #6680 )
...
* causallm module support opt
* lora target module
* lora target modules modification
2023-08-10 17:36:12 +08:00
Guo Sheng
3133d6ab1a
Remove contents in ppdiffusers ( #6663 )
2023-08-10 16:34:16 +08:00
lugimzzz
8398a5f74a
merge peft params ( #6678 )
...
Co-authored-by: DesmonDay <908660116@qq.com >
2023-08-10 14:06:12 +08:00
Sijun He
f59274ac8f
Remove shift_lm_labels attributes from all models and scripts ( #6675 )
...
* test 2.5.1
* turn off more tests
* turn off taskflow tests
* changes
* changes
* changes
2023-08-10 14:04:18 +08:00
Ghost Screaming
40bbcb797e
[Trainer] Add time statistics for nccl-connection. ( #6673 )
2023-08-10 11:42:06 +08:00
西瓜
31a5ff2cbe
bloom prefix past-key-value adjustment ( #6667 )
...
* bloom prefix past-key-value adjustment
* bloom prefix past kv comment
* remove redundant transpose
2023-08-09 21:48:22 +08:00
陶泽伟
383a219eec
eliminate transpose in sequence parallel for llama ( #6574 )
...
* Eliminate transpose operation in sequence parallel for LLAMA
* Update configuration.py code refactoring
2023-08-09 20:03:06 +08:00
Sijun He
e7ba623d68
Add position_ids to LLaMA RoPE implementation; Add LLaMA generation unit tests ( #6616 )
...
* wip
* add position_ids to RoPE
* debug recompute
* changes
* add dtype
2023-08-09 19:09:46 +08:00
西瓜
c647f74ec5
Chatglm attention mask v1 ( #6648 )
...
* Standardize chatglm attention mask
* try add generative unittest
* add generative test, fix bug
* fix dtype unmatch on cpu, remove pdb, print
* chatglm tokenizer test
* data py attention mask
* only support 4D attn mask, unittest adjustment
2023-08-09 17:32:58 +08:00
Leo Chen
25c25cfabe
add pp config for auto gpt ( #6640 )
2023-08-09 15:35:48 +08:00
Siming Dai
50cd55e273
Add ernie-3.5-se export model ( #6655 )
...
* add paddleocr stable version
* add export model
* add readme
* add comment
* fix bias
2023-08-09 14:47:05 +08:00
骑马小猫
dcc5f2b1b5
[New Features] update llama2 weight list ( #6494 )
...
* update llama2 weight list
* update llama2 model weight list
* Update README.md
---------
Co-authored-by: Zhong Hui <zhonghui.net@gmail.com >
2023-08-09 14:45:38 +08:00
Guo Sheng
3b60bfd657
Remove fluid usage in paddlenlp package. ( #6660 )
2023-08-09 14:42:35 +08:00
wanghuancoder
ff33e1bbb1
paddle support stride, fix dy2st ( #6590 )
...
* paddle support stride, fix dy2st
2023-08-09 11:30:52 +08:00
qingzhong1
31ea95f57a
[pipelines benchmark] add T2Ranking_test.py ( #6638 )
...
* add T2Ranking_test.py
* add T2Ranking_test.py again
* add T2Ranking_test.py again
* modify T2Ranking_test.py
* add Retrieval_benchmarks.py
* add Retrieval_benchmarks.py
* modify Retrieval_benchmarks.py
2023-08-09 11:08:04 +08:00
w5688414
356811e31b
[blip2] Update blip2 to support fp16 ( #6597 )
...
* Update blip2 to support fp16
* Update
2023-08-08 21:07:08 +08:00
Zhong Hui
f14efe9782
[LLM] Support llama2 70b ( #6622 )
...
* [Llama2] Add support for Llama 2
Co-authored-by: wj-Mcat <1435130236@qq.com >
2023-08-08 20:10:19 +08:00
西瓜
c3946404bc
Chatglmv2 attention mask ( #6634 )
...
* standardize chatglmv2 attention mask
* benchmark add chatglm2 branch, remove print
* remove pad function in prefix model
2023-08-08 20:00:08 +08:00
Guo Sheng
a732077301
Remove most of fluid usage ( #6636 )
...
* Remove fluid usage.
* Fix paddle.nn.Layer doc URL
2023-08-08 19:32:53 +08:00
Sijun He
9680e35cb2
Upgrade GitHub CI to Paddle 2.5.1 ( #6642 )
...
* test 2.5.1
* turn off more tests
* turn off taskflow tests
2023-08-08 16:10:59 +08:00
qingzhong1
fc9dae4bfc
[Paddle-pipelines] Fix debug logger slow speed bug ( #6629 )
...
* modify debug
* modify parallel_retriever
* add config.pbtxt
2023-08-08 13:19:23 +08:00
Yuang Liu
991a9d6fbb
[Trainer] Support pp sharding stage 1 overlap ( #6643 )
...
* support pp sharding stage 1 overlap
* remove hack prepare_training
2023-08-08 12:52:05 +08:00
lugimzzz
331bf7d67f
fix ( #6632 )
2023-08-08 12:15:23 +08:00
DrownFish19
62b6e8ba57
[LLM] Fix GPT modeling_pp error ( #6628 )
2023-08-08 11:15:15 +08:00
yujun
8b927a5ece
update clip clipseg ( #6627 )
...
* update clip clipeg
* cast int32
* update
* fix
* remove attention_mask
* update
2023-08-08 00:27:26 +08:00
lugimzzz
919264a8fc
support chatglm2 ( #6639 )
2023-08-07 22:32:21 +08:00
Sijun He
e3e92afb27
Fix pad token in funetune_generation.py ( #6637 )
...
* Update finetune_generation.py
* Update finetune_generation.py
* Update finetune_generation.py
2023-08-07 21:39:18 +08:00
西瓜
c4b102de00
Bloom generative test ( #6630 )
...
* bloom add generative test
* fix cache shape bug
* fix dtype unmatch bug
2023-08-07 18:49:58 +08:00
Sijun He
64f97979a6
Update README.md
2023-08-05 17:43:56 +08:00
qingzhong1
4111acdd9e
[Paddle-pipelines] Update m3e_retriever ( #6613 )
...
* Update m3e_retriever
* Update README_M3E
* modify ParallelRetriever
* add ParallelRetriever
* rename README_m3e.md
* modify parallel_retriever.py
* modify parallel_retriever.py
* modify parallel_retriever.py
* modify parallel_retriever.py
2023-08-05 09:17:59 +08:00
gongenlei
8df1ae8952
[LLM] Add cache perfix for pretraining dataset ( #6621 )
...
* llm supports advertisegen
* add cache for megatron dataset
* fix gpt3 GPTPretrainingCriterion
* update name
2023-08-04 18:49:09 +08:00
西瓜
375a5ffcc2
add peft document ( #6559 )
...
* add peft document
* update peft.md
* update peft.md
* delete peft.png
* update peft.md
* update peft.md
* update peft.md
* update peft.md
* update peft.md
2023-08-04 16:32:55 +08:00
yujun
ae8b709d8d
[benchmark] add proxy when git clone paddlemix ( #6615 )
...
* add proxy git clone paddlemix
* add einops
2023-08-04 15:33:38 +08:00
Zhong Hui
722acfdf44
[LLM] Add new tp split merge func. ( #6611 )
2023-08-04 15:25:46 +08:00
DrownFish19
edef99f338
[LLM] Fix eval error for llm/gpt-3 ( #6607 )
2023-08-04 14:50:11 +08:00
gongenlei
28375855c5
[LLM] Support parsing json arguments ( #6614 )
2023-08-04 12:18:21 +08:00
Kunbo Ding
3866817e13
[Megatron dataset] Support creating megatron dataset ( #6512 )
...
* create_megatron
* fix & add file
* fix README
* fix docs
* fix README
* fix README
* fix README
* fix --chinese in README
* Abandon paddle.to_tensor
2023-08-04 12:01:53 +08:00