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

北京社交网站建设视频网站后台设计

北京社交网站建设,视频网站后台设计,坦洲网站建设公司,黄江镇做网站一、创建虚拟环境 好习惯#xff0c;首先创建单独的运行环境 conda create -n uie python3.10.9 conda activate uie 二、安装paddle框架及paddlenlp 2.1 参考官方文档安装paddle 开始使用_飞桨-源于产业实践的开源深度学习平台 首先查看自己服务器cuda版本#xff0c;…一、创建虚拟环境 好习惯首先创建单独的运行环境 conda create -n uie python3.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, schemaschema, task_path./checkpoint/model_best) pprint(ie(我想查询2022年山东省主营业务收入数据))
http://www.sczhlp.com/news/229512/

相关文章:

  • 湖南网站快速开发o2o平台有哪些行业
  • 网站后台账号密码忘记了怎么办移动互联网开发课程
  • 做金融服务网站赚钱购物网页设计总结
  • 织梦网站添加视频教程寮步网站仿做
  • 学校网站建设市场分析网站如何认证
  • Day23-C:\Users\Lenovo\Desktop\note\code\JavaSE\Basic\src\com\InOut
  • 102302110高悦作业1
  • 2025.10.23 模拟赛
  • 刷题日记—洛谷循环题单 1.数学思想在算法题中的应用: 2.回文数的判定:
  • 河北商城网站搭建多少钱网站出现的问题吗
  • 中石化石油工程建设公司网站网络营销都有哪些内容
  • 站点推广促销建站系统wordpress下载
  • 公司网站建设全包百度q3财报2022
  • 济宁做网站建设的公司深圳图派做的网站后台加什么
  • 怎么给网站做超链接广州最专业的网站建设
  • 2024小学生时事新闻十条seo谷歌推广
  • 网站分为几级页面wordpress 整合论坛
  • 网站设计思路怎么写广告发布包括哪些
  • 海南旅游网站建设方式在哪个网站注册公司
  • 宁波品牌网站设计价格网站建设浅析
  • 用php做的网站怎么上传中山手机网站开发
  • 江苏省住房城乡建设部网站华为官方网站
  • 请人做网站收费多少钱厦门高端网站案例
  • 网站建设好了怎么做推广最牛html5网站建设
  • 广州专业网站建设网页设计服务阿里企业的网站建设
  • 自己做的网站被举报违反广告法公司做网站,要准备哪些素材
  • 大学生二手书网站开发需求胶州网站设计
  • 百度联盟网站有哪些关键词怎么选择技巧
  • 网站开发用python吗河南艾特 网站建设公司
  • 产品网站免费模板营销型企业网站系统模板下载