transformer_replication

transformer_replication
风铃夜行复现transformer
day1 配置环境&下载数据集
1 | conda create --name transformer python=3.8 -y |
1 | pip install datasets |
如果没有安装上
1 | conda install -c conda-forge datasets |
然后配置环境变量修改到国内镜像
1 | pip install -U huggingface_hub |
数据集:https://huggingface.co/datasets/wmt/wmt14
运行代码下载
1 | from datasets import load_dataset |
数据集下载在了
1 | ~/.cache/huggingface/datasets/wmt___wmt14/ |
day2
inference
评论
匿名评论隐私政策







