中文简介
openai-community/gpt2 是 openai-community 在 Hugging Face 发布的模型仓库,当前卡片主要关联文本生成与推理。本站固定记录上游版本 607a30d783df,同步到 26 个文件,文件元数据合计 11.15 GB;访问状态为“公开”,许可证字段为“mit”。
上游模型卡 / 数据集卡
【README 卡片中文译介】
以下内容依据上游仓库 openai-community/gpt2 的固定版本 README、卡片字段和文件元数据进行中文结构化整理。它保留便于选型的关键信息,完整技术细节、代码示例和许可文本请同时查看上游原文。
【资源概览】
openai-community/gpt2 是 openai-community 在 Hugging Face 发布的模型仓库,当前卡片主要关联文本生成与推理。本站固定记录上游版本 607a30d783df,同步到 26 个文件,文件元数据合计 11.15 GB;访问状态为“公开”,许可证字段为“mit”。
【适用方向】
适合在真实样本上评估文本生成与推理能力,并比较质量、时延和资源消耗。 建议先用小规模样本验证推理框架、输入输出格式和任务指标,再决定是否进入完整权重获取、量化或部署评估。
【版本与规格】
固定版本:607a30d783df。 任务标签:文本生成与推理。 语言字段:en。 架构:GPT2LMHeadModel。 上游 Safetensors 元数据显示参数量约 137.02 M。 库标记:transformers。 模型类型字段:gpt2。 上游页面记录的最近更新时间:2024-02-19。
【文件信息】
上游 API 返回 26 个文件,文件元数据合计 11.15 GB。 已保存文件清单中的主要扩展名:.json 11 个、.onnx 3 个、.tflite 3 个、.txt 2 个、.bin 1 个、.h5 1 个。 当前较大的文件包括:rust_model.ot(669.97 MB);onnx/decoder_model_merged.onnx(624.84 MB);onnx/decoder_with_past_model.onnx(623.39 MB)。
【运行或处理环境】
仓库文件元数据合计 11.15 GB。 按每参数 2 字节只计算 BF16 权重,理论下限约 261.35 MB;这不包含 KV Cache、激活值、框架开销或并发余量。 实际显存与内存由精度、量化方式、上下文长度、批量、并发、MoE 专家加载方式和推理框架共同决定,不能只凭参数名或仓库大小作部署承诺;应在目标格式和目标硬件上实测。
【使用边界】
许可证显示为“mit”,具体用途限制、附加政策和归属要求仍以上游原文为准。 模型输出、工具调用和生成内容可能出现错误、偏见或安全风险,面向业务前应建立任务级评测、权限隔离和人工确认。
GPT-2 Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in this paper and first released at this page. Disclaimer: The team releasing GPT-2 also wrote a model card for their model. Content from this model card has been written by the Hugging Face team to complete the information they provided and give specific examples of bias. Model description GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences. More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens. This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a prompt. This is the **smallest** version of GPT-2, with 124M parameters. Related Models:** GPT-Large, GPT-Medium and GPT-XL Intended uses & limitations You can use the raw model for text generation or fine-tune it to a downstream task. See the model hub to look for fine-tuned versions on a task that interests you. How to use You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility: Here is how to use this model to get the features of a give
适用场景
适合在真实样本上评估文本生成与推理能力,并比较质量、时延和资源消耗。 建议先用小规模样本验证推理框架、输入输出格式和任务指标,再决定是否进入完整权重获取、量化或部署评估。
模型参数
固定版本:607a30d783df。 任务标签:文本生成与推理。 语言字段:en。 架构:GPT2LMHeadModel。 上游 Safetensors 元数据显示参数量约 137.02 M。 库标记:transformers。 模型类型字段:gpt2。 上游页面记录的最近更新时间:2024-02-19。
文件说明
上游 API 返回 26 个文件,文件元数据合计 11.15 GB。 已保存文件清单中的主要扩展名:.json 11 个、.onnx 3 个、.tflite 3 个、.txt 2 个、.bin 1 个、.h5 1 个。 当前较大的文件包括:rust_model.ot(669.97 MB);onnx/decoder_model_merged.onnx(624.84 MB);onnx/decoder_with_past_model.onnx(623.39 MB)。
上游文件元数据
.gitattributes445 B64-8bits.tflite119.36 MB64-fp16.tflite236.77 MB64.tflite472.82 MBconfig.json665 Bflax_model.msgpack474.70 MBgeneration_config.json124 Bmerges.txt445.62 KBmodel.safetensors522.71 MBonnx/config.json879 Bonnx/decoder_model.onnx623.38 MBonnx/decoder_model_merged.onnx624.84 MB
硬件建议
仓库文件元数据合计 11.15 GB。 按每参数 2 字节只计算 BF16 权重,理论下限约 261.35 MB;这不包含 KV Cache、激活值、框架开销或并发余量。 实际显存与内存由精度、量化方式、上下文长度、批量、并发、MoE 专家加载方式和推理框架共同决定,不能只凭参数名或仓库大小作部署承诺;应在目标格式和目标硬件上实测。
注意事项
许可证显示为“mit”,具体用途限制、附加政策和归属要求仍以上游原文为准。 模型输出、工具调用和生成内容可能出现错误、偏见或安全风险,面向业务前应建立任务级评测、权限隔离和人工确认。
获取、校验与交付
咨询此资源时只需发送本页链接或资源准确全称。橙子AI科技会继续核对版本、文件与类型、README资料卡、许可证和访问条件,并在合法访问权限、许可证及平台规则允许的前提下,协助海内外下载、完整性校验及网盘或硬盘交付;本官网本身不托管或下载资源文件。
- 大模型获取与国内转存服务
- 大模型怎么下载:Hugging Face 官方方式与国内交付完整指南
- 国内下载 Hugging Face 模型很慢或经常中断怎么办
- DeepSeek、ChatGPT、豆包、Kimi 能否下载到本地
本页面为橙子AI科技基于固定版本上游卡片整理的中文信息与服务说明,不代表资源作者或平台官方页面。实际许可、访问和使用条件以上游原文为准。