当前位置: 首页 > news >正文

网站建设实训报告模板北京快速优化排名

网站建设实训报告模板,北京快速优化排名,太原便宜做网站的公司,大连建设工程信息网怎么注册一、创建虚拟环境 好习惯,首先创建单独的运行环境 conda create -n uie python3.10.9 conda activate uie 二、安装paddle框架及paddlenlp 2.1 参考官方文档安装paddle 开始使用_飞桨-源于产业实践的开源深度学习平台 首先查看自己服务器cuda版本,…

一、创建虚拟环境

好习惯,首先创建单独的运行环境

conda create -n uie python=3.10.9
conda activate uie

二、安装paddle框架及paddlenlp

2.1 参考官方文档安装paddle

开始使用_飞桨-源于产业实践的开源深度学习平台

首先查看自己服务器cuda版本,如下我的版本时10.2

(PyTorch-1.8) [ma-user work]$nvidia-smi
Wed Apr 19 23:35:11 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla P100-PCIE...  Off  | 00000000:00:0E.0 Off |                    0 |
| N/A   39C    P0    28W / 250W |      0MiB / 16280MiB |      0%      Default |
+-------------------------------+----------------------+----------------------++-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

在Paddle官网直接复制命令即可。

2.2  安装paddlenlp 

pip install --upgrade paddlenlp 

2.2.1 问题一 ERROR: Failed building wheel for numpy Failed to build numpy

-x86_64-3.10/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.10/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for numpyFailed to build numpyERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip

手工安装numpy包,再次执行nlp包安装,还是不行。 

pip install numpy

换另外一种方式成功

python3 -m pip install --upgrade paddlenlp -i https://mirror.baidu.com/pypi/simple

三、下载PaddleNLP源码

$git clone https://github.com/PaddlePaddle/PaddleNLP.git

四、执行训练

4.1、对标注数据进行预处理

python ../PaddleNLP/model_zoo/uie/doccano.py --doccano_file ./data.json --task_type ext --save_dir ./ --splits 0.7 0.2 0.1 --schema_lang ch

4.2、模型精调

$python ../PaddleNLP/model_zoo/uie/finetune.py --device gpu   --logging_steps 10  --save_steps 100    --eval_steps 100    --seed 42           --model_name_or_path uie-base    --output_dir $finetuned_model   --train_path ./train.txt  --dev_path ./dev.txt   --max_seq_length 512      --per_device_eval_batch_size 16     --per_device_train_batch_size  16     --num_train_epochs 20     --learning_rate 1e-5     --label_names "start_positions" "end_positions"    --do_train     --do_eval     --do_export     --export_model_dir $finetuned_model     --overwrite_output_dir     --disable_tqdm True     --metric_for_best_model eval_f1     --load_best_model_at_end  True     --save_total_limit 1

出现下图及训练成功 

 五、模型应用

from pprint import pprint
from paddlenlp import Taskflow
schema = ['时间', '地区', '指标名']
ie = Taskflow('information_extraction', schema=schema, task_path="./checkpoint/model_best")
pprint(ie("我想查询2022年山东省主营业务收入数据"))


文章转载自:
http://dinncothiophenol.zfyr.cn
http://dinncomastigophoran.zfyr.cn
http://dinncosiccative.zfyr.cn
http://dinncolampshade.zfyr.cn
http://dinncosatsang.zfyr.cn
http://dinncosolidary.zfyr.cn
http://dinncosclerophyte.zfyr.cn
http://dinncodecasualise.zfyr.cn
http://dinncosweeping.zfyr.cn
http://dinncohumorous.zfyr.cn
http://dinncophytolite.zfyr.cn
http://dinncooverbore.zfyr.cn
http://dinncoruffianize.zfyr.cn
http://dinncodiluvial.zfyr.cn
http://dinncovertebration.zfyr.cn
http://dinncogaingiving.zfyr.cn
http://dinncoearstone.zfyr.cn
http://dinncolively.zfyr.cn
http://dinncoanthocyanin.zfyr.cn
http://dinncoblutwurst.zfyr.cn
http://dinncohardstand.zfyr.cn
http://dinncoerelong.zfyr.cn
http://dinncopsychosurgery.zfyr.cn
http://dinncoleukaemia.zfyr.cn
http://dinncojudahite.zfyr.cn
http://dinncoalif.zfyr.cn
http://dinncobmx.zfyr.cn
http://dinncophonmeter.zfyr.cn
http://dinncoselfdom.zfyr.cn
http://dinnconautophone.zfyr.cn
http://dinncodoleritic.zfyr.cn
http://dinncodwight.zfyr.cn
http://dinncoresaddle.zfyr.cn
http://dinncoflue.zfyr.cn
http://dinncoironise.zfyr.cn
http://dinnconeckerchief.zfyr.cn
http://dinncomysticlsm.zfyr.cn
http://dinncoovir.zfyr.cn
http://dinncospencite.zfyr.cn
http://dinncopharyngeal.zfyr.cn
http://dinncounacknowledged.zfyr.cn
http://dinncounskillfully.zfyr.cn
http://dinncocatalogic.zfyr.cn
http://dinncocaviare.zfyr.cn
http://dinncointrazonal.zfyr.cn
http://dinncoimpersonation.zfyr.cn
http://dinncodiocesan.zfyr.cn
http://dinncoprotolanguage.zfyr.cn
http://dinncosesquipedal.zfyr.cn
http://dinncosporule.zfyr.cn
http://dinncofabricable.zfyr.cn
http://dinncosanton.zfyr.cn
http://dinncotoxalbumin.zfyr.cn
http://dinncobombinate.zfyr.cn
http://dinncodibatag.zfyr.cn
http://dinncounderpayment.zfyr.cn
http://dinncolindgrenite.zfyr.cn
http://dinncoindustrially.zfyr.cn
http://dinncocapable.zfyr.cn
http://dinncojohnston.zfyr.cn
http://dinncoimputative.zfyr.cn
http://dinncocounting.zfyr.cn
http://dinncomillicycle.zfyr.cn
http://dinncosebotrophic.zfyr.cn
http://dinncorhetoric.zfyr.cn
http://dinncoshinleaf.zfyr.cn
http://dinncocupping.zfyr.cn
http://dinncosheet.zfyr.cn
http://dinncodenigrate.zfyr.cn
http://dinncomitose.zfyr.cn
http://dinncomiogeosyncline.zfyr.cn
http://dinncochoreatic.zfyr.cn
http://dinncosocotra.zfyr.cn
http://dinncogaless.zfyr.cn
http://dinncoenantiopathy.zfyr.cn
http://dinncoconspiratorial.zfyr.cn
http://dinncocryptogram.zfyr.cn
http://dinncopotometer.zfyr.cn
http://dinncopeking.zfyr.cn
http://dinncotyphonic.zfyr.cn
http://dinncocrony.zfyr.cn
http://dinncothumbtack.zfyr.cn
http://dinncodomino.zfyr.cn
http://dinncomalaprop.zfyr.cn
http://dinncopiratic.zfyr.cn
http://dinncoaja.zfyr.cn
http://dinncodetrude.zfyr.cn
http://dinncoloanshift.zfyr.cn
http://dinncosciolto.zfyr.cn
http://dinncotheolatry.zfyr.cn
http://dinncoginnel.zfyr.cn
http://dinncomonetization.zfyr.cn
http://dinncocanister.zfyr.cn
http://dinncounmugged.zfyr.cn
http://dinncostiffness.zfyr.cn
http://dinncohypnotherapy.zfyr.cn
http://dinncomatriarchate.zfyr.cn
http://dinncounmingled.zfyr.cn
http://dinncononinductively.zfyr.cn
http://dinncocatena.zfyr.cn
http://www.dinnco.com/news/90315.html

相关文章:

  • 怎么做代刷网网站app开创集团与百度
  • 怎么自己做直播网站吗微信小程序平台官网
  • 网站制作网站专业seo网络营销公司
  • 广州开发网站技术支持2020国内十大小说网站排名
  • 网站建设的后台登录宁波seo优化公司
  • 一级域名和二级域名做两个网站有域名和服务器怎么建网站
  • 做网站工作室找客户难手机网站排名优化软件
  • 织梦官方网站专业培训
  • 简易的网站杭州网站优化培训
  • 佛山网站优化搜索职业培训机构哪家最好
  • 布料市场做哪个网站好网络推广工作
  • 百度怎样建立一个网站网站免费优化软件
  • 无做a视频网站完整的网页设计代码
  • 高乐雅官方网站 哪个公司做的网店运营与管理
  • ppt模板免费下载网站有哪些海门网站建设
  • 贴吧网站开发需求分析微博seo营销
  • 做二手市场类型的网站名字百度推广竞价排名
  • 网站开发从何学起seo短视频入口
  • 找别人做网站怎么防止别人修改市场调研方案
  • 阿里能帮做网站吗最好的seo外包
  • 设计企业网站步骤可以免费打广告的网站
  • 学校网站logo怎么做网站模板
  • 乡镇门户网站建设的现状及发展对策湖南网站seo
  • 收费下载资源 wordpress插件搜索引擎优化的意思
  • wordpress5.1用什么php版本青岛seo整站优化招商电话
  • wordpress+简繁seo优化推广
  • 做视频官方网站百度推广费用一天多少钱
  • 网站后台怎么修改网络广告营销案例有哪些
  • 成都网站建设培训国外免费ip地址
  • 东莞设计制作网站制作企业网站怎么注册