上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 474 下一页
摘要: Transformers 源码解析(二十六) .\models\clip\processing_clip.py # coding=utf-8 # 版权所有 2021 年 HuggingFace Inc. 团队 # # 根据 Apache 许可证 2.0 版本进行许可;除非符合许可证,否则不得使用此文 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 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 绝不原创的飞龙 阅读(7) 评论(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 绝不原创的飞龙 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二十八) .\models\conditional_detr\feature_extraction_conditional_detr.py # 设置编码格式为 UTF-8 # 版权声明和许可条款,指明此代码的版权归 HuggingFace Inc. 团队所有,遵循 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二十) .\models\blenderbot_small\tokenization_blenderbot_small.py # coding=utf-8 # 版权 2021 年 Facebook Inc. 和 HuggingFace Inc. 团队保留所有权利。 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(二) .\commands\convert.py # 导入必要的模块和类 from argparse import ArgumentParser, Namespace # 导入参数解析相关模块 from ..utils import logging # 导入日志工 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(26) 评论(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 绝不原创的飞龙 阅读(28) 评论(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 绝不原创的飞龙 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(八十四) .\models\openai\modeling_tf_openai.py # 定义 TFAttention 类,继承自 keras.layers.Layer,用于实现注意力机制 class TFAttention(keras.layers.Layer) 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(40) 评论(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 绝不原创的飞龙 阅读(26) 评论(0) 推荐(0) 编辑
上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 474 下一页