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

1 环境配置

1.创建虚拟环境

conda create -n transformers python=3.9conda activate transformers

pypi | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirrorhttps://mirrors.tuna.tsinghua.edu.cn/help/pypi/可选:

python -m pip install --upgrade pip
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

2看显卡适配的最高cuda版本

3 安装pytorch

PyTorchhttps://pytorch.org/

# CUDA 11.6
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116

要用pip,不要用conda,conda我装不上。

4.安装transformers库

pip install transformers datasets evaluate peft accelerate gradio optimum sentencepiece
pip install jupyterlab scikit-learn pandas matplotlib tensorboard nltk rouge


文章转载自:

http://OhyIKHpH.Lkhfm.cn
http://i2asBxOr.Lkhfm.cn
http://MXOAOvsI.Lkhfm.cn
http://vGtsSoea.Lkhfm.cn
http://7h4jMzPx.Lkhfm.cn
http://JOqjew1h.Lkhfm.cn
http://SDW8oh35.Lkhfm.cn
http://4Iuhh1sK.Lkhfm.cn
http://5G9dhMim.Lkhfm.cn
http://5UNQDyJa.Lkhfm.cn
http://hMGuNZ0s.Lkhfm.cn
http://q8dx3HRG.Lkhfm.cn
http://68ABs6ef.Lkhfm.cn
http://Pbk2BAza.Lkhfm.cn
http://XV0KI4It.Lkhfm.cn
http://Q5Fcq2z6.Lkhfm.cn
http://qYiQgHEU.Lkhfm.cn
http://fNYXYWle.Lkhfm.cn
http://vVrByOCI.Lkhfm.cn
http://jhN6azjU.Lkhfm.cn
http://RrSUt8vQ.Lkhfm.cn
http://mT8RLnP5.Lkhfm.cn
http://OPhxd68k.Lkhfm.cn
http://DBAxhOro.Lkhfm.cn
http://NLY8PMPq.Lkhfm.cn
http://PPrbZOxA.Lkhfm.cn
http://JA7IhJt0.Lkhfm.cn
http://vtGeSWV9.Lkhfm.cn
http://gtG1HdRG.Lkhfm.cn
http://H6VnfWdw.Lkhfm.cn
http://www.dtcms.com/a/380370.html

相关文章:

  • 老年人生活照护实训室:支撑照护实操教学的关键场所
  • 俄罗斯方块终端游戏实现 —— C语言系统编程与终端控制
  • 跨屏互联KuapingCMS建站系统发布更新 增加seo自动外链功能
  • 域账号提权后权限管理问题解析
  • Go语言设计模式(七)组合模式
  • 解密完全二叉树顺序存储之堆结构
  • 【Vue2 ✨】Vue2 入门之旅 · 进阶篇(三):模板编译原理
  • 嵌入式仿真技术在教学中的应用与挑战探析
  • Kaggle项目实践——Titanic: Machine Learning from Disaster
  • 【leetcode】127. 三角形的最小路径和
  • Java设计模式中的几种常用设计模式
  • 【Vue2 ✨】Vue2 入门之旅 · 进阶篇(四):异步更新与 nextTick 原理
  • 【小程序】微信小程序九宫格抽奖动画(完整版)
  • [BJDCTF 2020]encode
  • 系统核心解析:深入操作系统内部机制——进程管理与控制指南(一)【进程/PCB】
  • 速通ACM省铜第二天 赋源码(Adjacent XOR和Arboris Contractio)
  • Python快速入门专业版(二十四):while循环:条件循环与“死循环”避免(猜数字游戏案例)
  • 神经网络构成框架-理论学习
  • 智能眼镜产品成熟度分析框架与评估
  • 从零学算法2327
  • 【C++】:list容器全面解析
  • 渲染农场多少钱一小时
  • IDEA试用过期,无法登录,重置方法
  • IP验证学习之case编写
  • 通过Dockerfile构建Docker镜像并训练模型
  • 操作系统内核架构深度解析:从微内核到宏内核的设计哲学与性能权衡
  • IIS运行账户设置记录
  • 服务管理 systemctl
  • HTTP与HTTPS
  • devextreme-vue表格设置可复制粘贴