上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 404 下一页
摘要: Transformers 源码解析(四十五) .\models\encodec\feature_extraction_encodec.py # 指定代码文件的编码格式为UTF-8 # 版权声明,声明此代码版权归HuggingFace Inc.团队所有,保留所有权利 # 根据Apache Licens 阅读全文
posted @ 2024-06-30 15:37 绝不原创的飞龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十四) .\models\electra\modeling_flax_electra.py # 引入必要的库和模块 from typing import Callable, Optional, Tuple # 导入类型提示相关的模块 import flax # 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十三) .\models\efficientformer\image_processing_efficientformer.py # 导入所需模块和类,包括类型提示和必要的功能函数 from typing import Dict, List, Optional, 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十七) .\models\esm\openfold_utils\chunk_utils.py # 导入日志和数学库 import logging import math # 导入偏函数模块 from functools import partial # 导入类型 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十六) .\models\ernie_m\tokenization_ernie_m.py # coding=utf-8 # 上面的注释声明了文件的编码格式为 UTF-8,并非代码实际操作,仅为信息说明 # 版权声明,指出该文件的版权归属于 Xuan Ouyang 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十九) .\models\flaubert\__init__.py # 导入必要的模块和函数 from typing import TYPE_CHECKING # 引入自定义的异常类和模块加载函数 from ...utils import OptionalDep 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十二) .\models\dpr\tokenization_dpr.py # coding=utf-8 # Copyright 2018 The HuggingFace Inc. team, The Hugging Face Team. # # Licensed 阅读全文
posted @ 2024-06-30 15:36 绝不原创的飞龙 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十八) .\models\falcon\__init__.py # 设置编码格式为 UTF-8 # 版权声明,标明 Falcon 作者和 HuggingFace Inc. 团队的版权 # 根据 Apache License, Version 2.0 许可证,使用 阅读全文
posted @ 2024-06-30 15:35 绝不原创的飞龙 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四十) .\models\dinat\__init__.py # 版权声明和许可证声明,指明版权所有者及许可协议 # Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed un 阅读全文
posted @ 2024-06-30 15:35 绝不原创的飞龙 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Transformers 源码解析(四) .\deepspeed.py # 引入警告模块,用于向用户显示有关未来变更或不推荐使用的信息 import warnings # 发出警告,提示用户 transformers.deepspeed 模块已被弃用,并且将在未来的版本中移除 warnings.wa 阅读全文
posted @ 2024-06-30 15:35 绝不原创的飞龙 阅读(101) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 404 下一页