pytorch与python版本对应表_albert_zh对应的pytorch版本

该文介绍了PyTorch实现ALBERT模型的详细过程,包括依赖库(pytorch=1.10, cuda=9.0, cudnn=7.5等)、预训练模型下载以及GLUE基准测试的fine-tuning步骤。展示了不同版本ALBERT在GLUE任务上的性能表现。" 136872003,12159857,不含101的数:解题思路与多语言实现,"['算法', '动态规划', '编程语言', '二进制']
摘要由CSDN通过智能技术生成

albert_pytorch

This repository contains a PyTorch implementation of the albert model from the paper

by Zhenzhong Lan. Mingda Chen....

Dependencies

pytorch=1.10

cuda=9.0

cudnn=7.5

scikit-learn

sentencepiece

Download Pre-trained Models of English

Official download links: google albert

Adapt to this version,download pytorch model (google drive):

v1

v2

Fine-tuning

1. Place config.json and 30k-clean.model into the prev_trained_model/albert_base_v2 directory. example:

├── prev_trained_model

| └── albert_base_v2

| | └── pytorch_model.bin

| | └── config.json

| | └── 30k-clean.model

2.convert albert tf checkpoint to pytorch

python convert_albert_tf_checkpoint_to_pytorch.py \

--tf_checkpoint_path=./prev_trained_model/albe

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值