上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 404 下一页
摘要: Transformers 源码解析(二十九) .\models\convbert\modeling_tf_convbert.py # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # L 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二十二) .\models\bloom\modeling_flax_bloom.py # 导入所需的模块和库 import math from functools import partial from typing import Optional, Tuple 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二十八) .\models\conditional_detr\feature_extraction_conditional_detr.py # 设置编码格式为 UTF-8 # 版权声明和许可条款,指明此代码的版权归 HuggingFace Inc. 团队所有,遵循 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二十) .\models\blenderbot_small\tokenization_blenderbot_small.py # coding=utf-8 # 版权 2021 年 Facebook Inc. 和 HuggingFace Inc. 团队保留所有权利。 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二) .\commands\convert.py # 导入必要的模块和类 from argparse import ArgumentParser, Namespace # 导入参数解析相关模块 from ..utils import logging # 导入日志工 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十一) .\models\mvp\tokenization_mvp.py # coding=utf-8 # Copyright 2022 The Facebook AI Research Team Authors and The HuggingFace Inc. 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十五) .\models\owlv2\image_processing_owlv2.py # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. All rights reserved. # # Li 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十四) .\models\openai\modeling_tf_openai.py # 定义 TFAttention 类,继承自 keras.layers.Layer,用于实现注意力机制 class TFAttention(keras.layers.Layer) 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十三) .\models\oneformer\image_processing_oneformer.py # coding=utf-8 # Copyright 2022 SHI Labs and The HuggingFace Inc. team. All ri 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十七) .\models\pegasus\modeling_pegasus.py # 设置文件编码格式为 UTF-8 # 版权声明,指出版权归 Google 和 HuggingFace Inc. 团队所有 # # 根据 Apache 许可证 2.0 版本,除非符 阅读全文
posted @ 2024-06-29 15:48 绝不原创的飞龙 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 404 下一页