10

GPT中的temperature参数不是用在对话的而是用在调用OPEN API过程中的

 1 year ago
source link: https://blog.csdn.net/lifetragedy/article/details/131266591
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

GPT中的temperature参数不是用在对话的而是用在调用OPEN API过程中的

original.png
置顶 TGITCIC newUpTime2.png 已于 2023-06-18 00:55:14 修改 articleReadEyes2.png 211

自从吴恩达OPENAI《ChatGPT 提示工程》放出后,各个层面反响热列。很多人看到了temperature这个参数,都以为在对话中或者说对话的末尾放上一个temperature=0-2的值就可以达到让GPT极大的发挥出自我创造能力、甚至写文章天马行空。

笔者这边觉得有义务指出这种用法是完全没有理解吴恩达的的教程。不信?让我们来试试看在GPT对话过程中加入了temperature到底有没有用呢?

下面我们做一个对比实验

我们使用不加temperature参数的提示词

 5.1假期在上海到底怎么玩,请写一篇不要超过500字的上海游玩指南。

我们来看GPT的输出。

c4105f53fbb646ffb79a0da5721655ff.png

 我们使用加temperature参数的提示词

按照网上最红火的几篇文章说的:当你加了这个temperature参数后,GPT甚至会写出去火星游玩的天马行空的“行文”。

真的是这样么?我们一起来看:

5.1假期在上海到底怎么玩,请写一篇不要超过500字的上海游玩指南。temperature=5.0
a1fdb167c1f647f2895ca8d4a8ea5967.png

 看,丝毫没有任何本质的变化,只是比刚才多了迪斯尼和上海科技馆。

temperature参数

文章知识点与官方知识档案匹配,可进一步学习相关知识

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK