随笔 - 418  文章 - 0  评论 - 18  阅读 - 132万
04 2024 档案
transformers、torch train demo
摘要:通过 pytorch 训练模型的逻辑: import torch.nn as nn import torch import numpy #from torch.utils.tensorboard import SummaryWriter import time vocabList = ["0","1 阅读全文
posted @ 2024-04-16 18:17 细雨微光 阅读(15) 评论(0) 推荐(0) 编辑
transformers(3) 、sft
摘要:sft之lora: 阅读全文
posted @ 2024-04-16 10:34 细雨微光 阅读(10) 评论(0) 推荐(0) 编辑
transformers(1) 、load模型
摘要:transformers load模型运行机制 阅读全文
posted @ 2024-04-16 10:07 细雨微光 阅读(14) 评论(0) 推荐(0) 编辑
transformers(1) 、bert
摘要:bert 源码分析: class BertSelfAttention 阅读全文
posted @ 2024-04-16 10:06 细雨微光 阅读(9) 评论(0) 推荐(0) 编辑
python (63):dataclasses 简单示例
摘要:dataclasses 简单示例: import transformers from dataclasses import dataclass,field import argparse @dataclass class Person(): age: int = field(default=10) 阅读全文
posted @ 2024-04-15 22:41 细雨微光 阅读(97) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示