I want to make an AI text classifier using OpenAI API, based on GPT2 but i cannot find the API documentation for the GPT2

huangapple go评论60阅读模式
英文:

I want to make an AI text classifier using OpenAI API, based on GPT2 but i cannot find the API documentation for the GPT2

问题

我想为我的大学创建一个AI文本分类器项目,我想使用GPT2 API,因为它更可靠地捕捉GPT 3.5生成的内容,那么我如何使用GPT2文档?还有关于此的任何有用资源都受欢迎。

我尝试浏览文档的模型部分,但找不到GPT2的信息,只有关于GPT 3.5 的内容。

英文:

I wanted to create an AI text classifier project for my college, I wanted to use GPT2 API for the same as it is more reliable to catch the content generated by GPT 3.5, so how can I use GPT2 documentation? also any useful resources for the same are welcome

I tried going through model section of the documentation but couldn't find for GPT2, there's only for GPT 3.5

答案1

得分: 1

GPT-2 不可通过 OpenAI API 使用,目前只支持 GPT-3 及更高版本。我建议通过 Huggingface Transformers 库访问该模型,虽然他们有一些文档,但内容相对较少。你可以搜索一些教程,但它们可能有点过时,因为该模型发布已有数年。另外,你说的“我想使用 GPT-2 API,因为它更可靠,可以捕捉 GPT-3.5 生成的内容”,这是什么意思?按照一般说法,GPT-3 在文本分类方面应该比 GPT-2 更好,而且通过在 OpenAI 注册免费试用,你可以免费使用他们的 API(提供的积分仅可用三个月)。如果你想要训练 GPT-2 XL 模型,可能会比 GPT-3 的 Ada 模型获得更好的结果,但这会涉及到计算资源的问题。

英文:

GPT-2 is not available through the OpenAI api, only GPT-3 and above so far. I would recommend accessing the model through the Huggingface Transformers library, and they have some documentation out there but it is sparse. There are some tutorials you can google and find, but they are a bit old, which is to be expected since the model came out years ago now. Also, what do you mean by, "I wanted to use GPT2 API for the same as it is more reliable to catch the content generated by GPT 3.5"? By all accounts, GPT-3 should be much better than GPT-2 at text classification, and by signing up for a free trial with OpenAI you can use their API for free (with provided credits for only three months). If you want to train the GPT-2 XL model, you will probably get better results than GPT-3's Ada, but then you have Compute resources you have to worry about.

huangapple
  • 本文由 发表于 2023年3月7日 23:33:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/75664012.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定