如何选择OpenAI的模型

249 阅读3分钟

动机

OpenAI的模型比较多,更新也比较频繁,用户不知道如何选择。

本文系统地整理了模型,可以快速地选择模型。

截止时间

本文章的数据,截止到2024年2月1日。

模型分类

模型名称说明
GPT-4
GPT-3.5
DALL·E文生图
TTS生成语音
Whisper识别语音
Embeddings
Moderation审核内容

模型的选择

分类需求选择的模型名称
GPT-4
gpt-4-turbo-preview
需要有视觉能力gpt-4-vision-preview
GPT-3.54Kgpt-3.5-turbo-1106
16Kgpt-3.5-turbo-16k
Embedding
text-embedding-3-small
希望非英文的场景更精确text-embedding-3-large

GPT 3.5

截止到2024年2月1日,如果想使用GPT-3.5,使用gpt-3.5-turbo-1106就可以;如果超过16K,则使用gpt-3.5-turbo-16k

过几天可能就会更新gpt-3.5-turbo-0125

模型名称说明备注
gpt-3.5-turbo指向 gpt-3.5-turbo-0613不建议使用,没有指向最新模型
gpt-3.5-turbo-16k指向 gpt-3.5-turbo-16k-0613
gpt-3.5-turbo-0125还没发布。
gpt-3.5-turbo-1106最新版本(截止到2024年1月)
gpt-3.5-turbo-0613
gpt-3.5-turbo-16k-0613
gpt-3.5-turbo-0301
gpt-3.5-turbo-instruct

训练数据截止到:2021年9月

tokens限制:默认是4,096 tokens,如果名字中有16K,就是16,385 tokens。

gpt-3.5-turbo-1106更新的内容

具有改进的指令跟随、JSON模式、可重现输出、并行函数调用等功能。了解更多[1]。

In addition to GPT-4 Turbo, we are also releasing a new version of GPT-3.5 Turbo that supports a 16K context window by default. The new 3.5 Turbo supports improved instruction following, JSON mode, and parallel function calling. For instance, our internal evals show a 38% improvement on format following tasks such as generating JSON, XML and YAML. Developers can access this new model by calling gpt-3.5-turbo-1106 in the API. Older models will continue to be accessible by passing gpt-3.5-turbo-0613 in the API until June 13, 2024. Learn more[2].

GPT-4

截止到2024年2月1日,如果想使用GPT-4,使用gpt-4-turbo-preview就可以;如果需要视觉能力就使用gpt-4-vision-preview

| MODEL | DESCRIPTION |
| | --- | --- | --- | | gpt-4-turbo-preview | 当前指向 gpt-4-0125-preview | 最新的模型(截止到2024年1月) | | gpt-4 | 当前指向 gpt-4-0613 | 很老的模型,不是最新的模型。暂时不要用。 | | gpt-4-32k | 当前指向 gpt-4-32k-0613 | 很老的模型,不是最新的模型。暂时不要用。 | | gpt-4-vision-preview |
| 使用视觉能力的话,必须使用这个。 | |
|
|
| | gpt-4-0125-preview | 最新的模型(截止到2024年1月) | 不用使用这个,使用gpt-4-turbo-preview这个别名就可以了。 | | gpt-4-1106-preview |
|
| |
|
|
| | gpt-4-0613 |
|
| | gpt-4-32k-0613 |
|
|

除了老的GPT-4,其它(turbo或preview)模块:

  • • 训练数据截止时间:2023年3月

  • • tokens限制:总共是128K;但,输出只有4K。

Embedding

模型名称描述向量大小价格
text-embedding-3-large适合非英文的任务。3,072比ada稍微多点
text-embedding-3-smalltext-embedding-ada-002的升级版本。1,536是ada的1/5
text-embedding-ada-002
1,536

模型更新说明

  • • 2024年1月[3]

  • • 2023年11月[4]

引用链接

[1] 了解更多: openai.com/blog/new-mo…
[2] Learn more: platform.openai.com/docs/models…
[3] 2024年1月: openai.com/blog/new-em…
[4] 2023年11月: openai.com/blog/new-mo…

本文使用 文章同步助手 同步