Skip to content

Conversation

@ZHUI
Copy link
Contributor

@ZHUI ZHUI commented Apr 15, 2025

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

Others

PR changes

Others

Description

# python -m pytest -svv tests/prompt/test_prompt_model.py::PromptModelTest::test_efl_no_labels
# python -m pytest -svv tests/prompt/test_prompt_model.py::PromptModelTest::test_efl_with_labels
# python -m pytest -svv tests/prompt/test_verbalizer.py::VerbalizerTest::test_soft_process_outputs
# python -m pytest -svv tests/trainer/test_moe_unified_checkpoint.py::TestUnifiedCheckpointFull::testTP2Sharding4@UC
# python -m pytest -svv tests/trainer/test_moe_unified_checkpoint.py::TestUnifiedCheckpointFull::testTP2Sharding4V2@UC
# python -m pytest -svv tests/trainer/test_moe_unified_checkpoint.py::TestUnifiedCheckpointFull::testTP4DP2@UC
# python -m pytest -svv tests/transformers/albert/test_modeling.py::AlbertModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/albert/test_modeling.py::AlbertModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/albert/test_modeling.py::AlbertModelTest_2::test_model_from_pretrained
# python -m pytest -svv tests/transformers/albert/test_modeling.py::AlbertModelTest_3::test_model_from_pretrained
# python -m pytest -svv tests/transformers/bert/test_modeling.py::BertCompatibilityTest::test_paddlenlp_token_classification
# python -m pytest -svv tests/transformers/bert/test_modeling.py::BertModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/bert/test_modeling.py::BertModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/bigbird/test_modeling.py::BigBirdModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/bigbird/test_modeling.py::BigBirdModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/bigbird/test_modeling.py::BigBirdModelIntegrationTest::test_model_from_pretrained_hf_hub
# python -m pytest -svv tests/transformers/bigbird/test_modeling.py::BigBirdModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/bigbird/test_modeling.py::BigBirdModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/bigbird/test_tokenizer.py::BigBirdTokenizationTest::test_pickle_subword_regularization_tokenizer
# python -m pytest -svv tests/transformers/blenderbot_small/test_modeling.py::BlenderbotSmallModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/blenderbot/test_modeling.py::BlenderbotModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/blip/test_modeling.py::BlipModelIntegrationTest::test_inference_vqa
# python -m pytest -svv tests/transformers/clap/test_modeling.py::ClapModelIntegrationTest::test_batched_fused
# python -m pytest -svv tests/transformers/clap/test_modeling.py::ClapModelIntegrationTest::test_batched_unfused
# python -m pytest -svv tests/transformers/clap/test_modeling.py::ClapModelIntegrationTest::test_integration_fused
# python -m pytest -svv tests/transformers/clap/test_modeling.py::ClapModelIntegrationTest::test_integration_unfused
# python -m pytest -svv tests/transformers/clipseg/test_modeling.py::CLIPSegModelIntegrationTest::test_inference_image_segmentation
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_0::test_batch_generation
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_1::test_batch_generation
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_2::test_batch_generation
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_2::test_model_from_pretrained
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_3::test_batch_generation
# python -m pytest -svv tests/transformers/codegen/test_modeling.py::CodeGenModelTest_3::test_model_from_pretrained
# python -m pytest -svv tests/transformers/convbert/test_modeling.py::ConvBertModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/ctrl/test_modeling.py::CTRLModelLanguageGenerationTest::test_lm_generate_ctrl
# python -m pytest -svv tests/transformers/ctrl/test_modeling.py::CTRLModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ctrl/test_modeling.py::CTRLModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/distilbert/test_modeling.py::DistilBertModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/distilbert/test_modeling.py::DistilBertModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/distilbert/test_modeling.py::DistilBertModelTest::test_params_compatibility_of_init_method
# python -m pytest -svv tests/transformers/ernie_code/test_modeling.py::ErnieCodeModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_code/test_modeling.py::ErnieCodeModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_code/test_modeling.py::ErnieCodeModelTest_2::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_code/test_modeling.py::ErnieCodeModelTest_3::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_code/test_tokenizer.py::ErnieCodeTokenizationTest::test_pickle_subword_regularization_tokenizer
# python -m pytest -svv tests/transformers/ernie_ctm/test_modeling.py::ErnieCtmModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/ernie_ctm/test_modeling.py::ErnieCtmModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/ernie_ctm/test_modeling.py::ErnieCtmModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/ernie_ctm/test_modeling.py::ErnieCtmModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/ernie_ctm/test_tokenizer.py::ErnieCTMTokenizationTest::test_with_emoji
# python -m pytest -svv tests/transformers/ernie_doc/test_modeling.py::ErnieDocModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_doc/test_tokenizer.py::ErnieTokenizationTest::test_with_emoji
# python -m pytest -svv tests/transformers/ernie_gram/test_modeling.py::ErnieGramModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/ernie_gram/test_modeling.py::ErnieGramModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/ernie_gram/test_modeling.py::ErnieGramModelIntegrationTest::test_inference_with_past_key_value
# python -m pytest -svv tests/transformers/ernie_gram/test_modeling.py::ErnieGramModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/ernie_layout/test_modeling.py::ErnieLayoutModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/ernie_layout/test_modeling.py::ErnieLayoutModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/ernie_layout/test_modeling.py::ErnieLayoutModelIntegrationTest::test_inference_with_past_key_value
# python -m pytest -svv tests/transformers/ernie/test_modeling.py::ErnieModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/ernie/test_modeling.py::ErnieModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/ernie/test_tokenizer.py::ErnieTokenizationTest::test_with_emoji
# python -m pytest -svv tests/transformers/gau_alpha/test_modeling.py::GAUAlphaModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/glm/test_modeling.py::GLMModelTest::test_model_from_pretrained
######################### python -m pytest -svv tests/transformers/gptj/test_modeling.py::GPTJModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelLanguageGenerationTest::test_gpt_sample
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelLanguageGenerationTest::test_gpt_sample_max_time
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelLanguageGenerationTest::test_lm_generate_gpt
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_0::test_batch_generation
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_1::test_batch_generation
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_2::test_batch_generation
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_2::test_model_from_pretrained
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_3::test_batch_generation
# python -m pytest -svv tests/transformers/gpt/test_modeling.py::GPTModelTest_3::test_model_from_pretrained
# python -m pytest -svv tests/transformers/layoutlm/test_modeling.py::LayoutLMModelModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/layoutlmv2/test_modeling.py::LayoutLMv2ModelModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/layoutxml/test_modeling.py::LayoutXLMModelModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/layoutxml/test_modeling.py::LayoutXLMModelModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/layoutxml/test_tokenizer.py::LayoutXLMTokenizationTest::test_sequence_builders
# python -m pytest -svv tests/transformers/llama/test_modeling.py::LlamaModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/llama/test_modeling.py::LlamaModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/llama/test_modeling.py::LlamaModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/llama/test_modeling.py::LlamaModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/luke/test_modeling.py::LukeModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/mbart/test_modeling.py::MBartCC25IntegrationTest::test_fill_mask
# python -m pytest -svv tests/transformers/mbart/test_modeling.py::MBartEnroIntegrationTest_0::test_enro_generate_batch
# python -m pytest -svv tests/transformers/mbart/test_modeling.py::MBartEnroIntegrationTest_0::test_enro_generate_one
# python -m pytest -svv tests/transformers/mbart/test_modeling.py::MBartEnroIntegrationTest_1::test_enro_generate_batch
# python -m pytest -svv tests/transformers/mbart/test_modeling.py::MBartEnroIntegrationTest_1::test_enro_generate_one
# python -m pytest -svv tests/transformers/mbart/test_tokenizer.py::MBartTokenizationTest::test_pickle_subword_regularization_tokenizer
# python -m pytest -svv tests/transformers/megatronbert/test_modeling.py::MegatronBertModelTest::test_model_from_pretrained
# python -m pytest -svv tests/transformers/mobile_bert/test_modeling.py::MobileBertModelIntegrationTest::test_model_from_pretrained_hf_hub
# python -m pytest -svv tests/transformers/mobile_bert/test_modeling.py::MobileBertModelIntegrationTest::test_model_from_pretrained_with_cache_dir
# python -m pytest -svv tests/transformers/mobile_bert/test_modeling.py::MobileBertModelIntegrationTest::test_pretrained_save_and_load
# python -m pytest -svv tests/transformers/mt5/test_modeling.py::MT5CompatibilityTest::test_mt5_for_conditional_generation
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelIntegrationTest::test_inference_no_attention
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelIntegrationTest::test_inference_with_attention
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelTest_0::test_model_from_pretrained
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelTest_1::test_model_from_pretrained
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelTest_2::test_model_from_pretrained
# python -m pytest -svv tests/transformers/opt/test_modeling.py::OPTModelTest_3::test_model_from_pretrained
exit
python -m pytest -svv tests/transformers/ppminilm/test_modeling.py::PPMiniLMModelIntegrationTest::test_model_from_pretrained_with_cache_dir
python -m pytest -svv tests/transformers/ppminilm/test_modeling.py::PPMiniLMModelIntegrationTest::test_pretrained_save_and_load
python -m pytest -svv tests/transformers/prophetnet/test_modeling.py::ProphetNetModelTest::test_model_from_pretrained
python -m pytest -svv tests/transformers/reformer/test_modeling.py::ReformerModelIntegrationTest::test_inference_no_attention
python -m pytest -svv tests/transformers/reformer/test_modeling.py::ReformerModelIntegrationTest::test_inference_with_attention
python -m pytest -svv tests/transformers/reformer/test_modeling.py::ReformerModelIntegrationTest::test_model_from_pretrained_hf_hub
python -m pytest -svv tests/transformers/reformer/test_modeling.py::ReformerModelIntegrationTest::test_model_from_pretrained_with_cache_dir
python -m pytest -svv tests/transformers/reformer/test_modeling.py::ReformerModelIntegrationTest::test_pretrained_save_and_load
python -m pytest -svv tests/transformers/reformer/test_tokenizer.py::ReformerTokenizationTest::test_pickle_subword_regularization_tokenizer
python -m pytest -svv tests/transformers/rembert/test_modeling.py::RemBertModelTest::test_model_from_pretrained
python -m pytest -svv tests/transformers/roberta/test_modeling.py::RobertaModelIntegrationTest::test_inference_masked_lm
python -m pytest -svv tests/transformers/roberta/test_modeling.py::RobertaModelTest_0::test_model_from_pretrained
python -m pytest -svv tests/transformers/roberta/test_modeling.py::RobertaModelTest_1::test_model_from_pretrained
python -m pytest -svv tests/transformers/roberta/test_modeling.py::RobertaModelTest_2::test_model_from_pretrained
python -m pytest -svv tests/transformers/roberta/test_modeling.py::RobertaModelTest_3::test_model_from_pretrained
python -m pytest -svv tests/transformers/roformerv2/test_modeling.py::RoFormerv2ModelTest::test_model_from_pretrained
python -m pytest -svv tests/transformers/roformerv2/test_tokenizer.py::RoFormerv2TokenizationTest::test_sequence_builders
python -m pytest -svv tests/transformers/roformerv2/test_tokenizer.py::RoFormerv2TokenizationTest::test_with_emoji
python -m pytest -svv tests/transformers/speecht5/test_modeling.py::SpeechT5ForSpeechToSpeechIntegrationTests::test_generation_librispeech
python -m pytest -svv tests/transformers/speecht5/test_modeling.py::SpeechT5ForSpeechToTextIntegrationTests::test_generation_librispeech
python -m pytest -svv tests/transformers/speecht5/test_modeling.py::SpeechT5ForSpeechToTextIntegrationTests::test_generation_librispeech_batched
python -m pytest -svv tests/transformers/speecht5/test_modeling.py::SpeechT5ForTextToSpeechIntegrationTests::test_generation
python -m pytest -svv tests/transformers/speecht5/test_tokenizer.py::SpeechT5TokenizerTest::test_tokenizer_integration
python -m pytest -svv tests/transformers/squeezebert/test_modeling.py::SqueezeBertModelIntegrationTest::test_inference_classification_head
python -m pytest -svv tests/transformers/squeezebert/test_modeling.py::SqueezeBertModelTest::test_model_from_pretrained
python -m pytest -svv tests/transformers/squeezebert/test_tokenizer.py::SqueezeBertTokenizationTest::test_sequence_builders
python -m pytest -svv tests/transformers/t5/test_tokenizer.py::T5TokenizationTest::test_pickle_subword_regularization_tokenizer
python -m pytest -svv tests/transformers/test_modeling_utils.py::TestModeling::test_from_pretrained_cache_dir_pretrained_init
python -m pytest -svv tests/transformers/test_modeling_utils.py::TestModeling::test_model_from_pretrained_with_multiprocessing
python -m pytest -svv tests/transformers/test_modeling_utils.py::TestModeling::test_multiprocess_downloading
python -m pytest -svv tests/transformers/test_utils.py::TestUtils::test_find_transformer_model_type
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_0::test_inference_no_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_0::test_inference_with_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_0::test_inference_with_past_key_value
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_1::test_inference_no_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_1::test_inference_with_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_1::test_inference_with_past_key_value
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_2::test_inference_no_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_2::test_inference_with_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_2::test_inference_with_past_key_value
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_3::test_inference_no_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_3::test_inference_with_attention
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelIntegrationTest_3::test_inference_with_past_key_value
python -m pytest -svv tests/transformers/tinybert/test_modeling.py::TinyBertModelTest::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlm/test_modeling.py::XLMModelTest_0::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlm/test_modeling.py::XLMModelTest_1::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlm/test_modeling.py::XLMModelTest_2::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlm/test_modeling.py::XLMModelTest_3::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlm/test_tokenizer.py::XLMTokenizationTest::test_sequence_builders
python -m pytest -svv tests/transformers/xlnet/test_modeling.py::XLNetModelLanguageGenerationTest::test_lm_generate_xlnet_base_cased
python -m pytest -svv tests/transformers/xlnet/test_modeling.py::XLNetModelTest_0::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlnet/test_modeling.py::XLNetModelTest_1::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlnet/test_modeling.py::XLNetModelTest_2::test_model_from_pretrained
python -m pytest -svv tests/transformers/xlnet/test_modeling.py::XLNetModelTest_3::test_model_from_pretrained
python -m pytest -svv tests/utils/test_import_utils.py::ImportUntilsTest::test_install_specific_package

@paddle-bot
Copy link

paddle-bot bot commented Apr 15, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Apr 15, 2025

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Apr 16, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 49.01%. Comparing base (b98d8f8) to head (2568d0a).
⚠️ Report is 262 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/transformers/speecht5/modeling.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10411      +/-   ##
===========================================
- Coverage    49.08%   49.01%   -0.08%     
===========================================
  Files          763      765       +2     
  Lines       125684   125879     +195     
===========================================
+ Hits         61698    61701       +3     
- Misses       63986    64178     +192     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ZHUI ZHUI merged commit 5d8b593 into PaddlePaddle:develop Apr 18, 2025
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants