上一页 1 ··· 494 495 496 497 498 499 500 501 502 ··· 851 下一页
摘要: Transformers 源码解析(二十五) .\models\clap\processing_clap.py """ Audio/Text processor class for CLAP """ from ...processing_utils import ProcessorMixin # 导 阅读全文
posted @ 2024-06-29 16:55 绝不原创的飞龙 阅读(280) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十四) .\models\canine\tokenization_canine.py # coding=utf-8 # Copyright Google AI and The HuggingFace Inc. team. All rights reserved. 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(157) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十三) .\models\bros\processing_bros.py # 设置编码格式为 UTF-8,确保支持中文等多种字符 # 版权声明,指明此代码版权归 HuggingFace Inc. 团队所有,遵循 Apache License 2.0 # 详细许可 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(156) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十七) .\models\clvp\number_normalizer.py # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. # # Licensed under the Apache Lic 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(168) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十六) .\models\clip\processing_clip.py # coding=utf-8 # 版权所有 2021 年 HuggingFace Inc. 团队 # # 根据 Apache 许可证 2.0 版本进行许可;除非符合许可证,否则不得使用此文 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(300) 评论(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 绝不原创的飞龙 阅读(97) 评论(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 绝不原创的飞龙 阅读(110) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十八) .\models\conditional_detr\feature_extraction_conditional_detr.py # 设置编码格式为 UTF-8 # 版权声明和许可条款,指明此代码的版权归 HuggingFace Inc. 团队所有,遵循 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(131) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十) .\models\blenderbot_small\tokenization_blenderbot_small.py # coding=utf-8 # 版权 2021 年 Facebook Inc. 和 HuggingFace Inc. 团队保留所有权利。 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(103) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二) .\commands\convert.py # 导入必要的模块和类 from argparse import ArgumentParser, Namespace # 导入参数解析相关模块 from ..utils import logging # 导入日志工 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 494 495 496 497 498 499 500 501 502 ··· 851 下一页