Skip to content

Conversation

MayYouBeProsperous
Copy link
Contributor

@MayYouBeProsperous MayYouBeProsperous commented Dec 14, 2023

PR types

Others

PR changes

Others

Description

为 ernie-doc 模型训练接入动转静

训练环境

pip install nltk==3.5 beautifulsoup4
python -c "import nltk; nltk.download('punkt')"
cd  model_zoo/ernie-doc

训练结果

  • 动态图

    运行命令

    python run_classifier.py --batch_size 8 --model_name_or_path ernie-doc-base-en

    ✅运行正常
    image

  • 静态图 SOT模式
    运行命令

    export GRAPH_SIZE=0 COST_MODEL=False ENABLE_FALL_BACK=True
    python run_classifier.py --batch_size 8 --model_name_or_path ernie-doc-base-en --to_static True

    ❌运行报错
    image

  • 静态图 AST模式
    运行命令

    export COST_MODEL=False ENABLE_FALL_BACK=False
    python run_classifier.py --batch_size 8 --model_name_or_path ernie-doc-base-en --to_static True

    ❌运行报错
    image

Copy link

paddle-bot bot commented Dec 14, 2023

Thanks for your contribution!

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.58%. Comparing base (10ff94a) to head (6878e4e).
Report is 498 commits behind head on develop.

Current head 6878e4e differs from pull request most recent head 2c1ba01

Please upload reports for the commit 2c1ba01 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7652      +/-   ##
===========================================
- Coverage    58.23%   57.58%   -0.65%     
===========================================
  Files          579      582       +3     
  Lines        85819    86932    +1113     
===========================================
+ Hits         49973    50064      +91     
- Misses       35846    36868    +1022     

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

@2742195759
Copy link
Contributor

贴一下报错截图哈~

@2742195759
Copy link
Contributor

image CI挂了一个,这个可以check一下将fluid替换为最新的paddle对应的位置。因为paddle现在已经删除了fluid,可以看下替换为base试试。

@MayYouBeProsperous
Copy link
Contributor Author

MayYouBeProsperous commented Dec 19, 2023

fluid 报错已修改。
新的 CI 报错好像是网络问题,nltk模型直接下载会非常慢。
image
image

Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added stale and removed stale labels Apr 27, 2024
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants