V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
x77
V2EX  ›  程序员

OpenAI Chat API 一些参数怎么翻译?

  •  
  •   x77 · 2023-07-18 21:05:37 +08:00 · 1217 次点击
    这是一个创建于 522 天前的主题,其中的信息可能已经有所发展或是发生改变。

    下图是设置 API 参数值的界面,左边是暂时翻译,中间是值,右边调整。参数的官方原文在这里,求更容易理解的说法

    model / 模型和最大代币数:
    这个参数就是 OpenAI 的模型,不过中间数值是该模型的最大 Token 。

    temperature / 创造性:
    What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

    top-p / 准确性:
    An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

    max-tokens-completion / 单次回复可以消耗的最大代币数:
    The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. Example Python code for counting tokens.

    presence-penalty / 话题分散性:
    Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

    frequency-penalty / 强调观点:
    Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

    5 条回复    2023-07-19 16:03:43 +08:00
    airyland
        1
    airyland  
       2023-07-18 21:06:53 +08:00   ❤️ 1
    一般会把 temperature 译为思维发散性。
    shinyzhu
        2
    shinyzhu  
       2023-07-19 08:03:11 +08:00
    能调 API 的都直接给原文。
    lovestudykid
        3
    lovestudykid  
       2023-07-19 11:33:34 +08:00
    直译最好
    fakeJas0n
        4
    fakeJas0n  
       2023-07-19 13:39:10 +08:00
    x77
        5
    x77  
    OP
       2023-07-19 16:03:43 +08:00
    @fakeJas0n

    微软云的文档没见简短描述啊,只看到那个较长的参数含义说明
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2581 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:04 · PVG 19:04 · LAX 03:04 · JFK 06:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.