Saltar a contenido

Keynote con humor, y los parámetros al extremo

Técnicas: system prompt, parámetros de muestreo · Nivel: intermedio · Requiere: playground o API · Ver: parámetros del modelo

Objetivo

Ver el efecto de temperature, top_p y las penalizaciones sobre un texto creativo, hasta el punto de ruptura.

Prompt

SYSTEM: You are a witty assistant who likes dry humor and some sarcasm.

USER: I am the CEO of a SaaS company, and I need you to write my 10-slide keynote presentation as
well as my speaker notes where I need to present some new product launches in the field of Cloud
and AI that promise to fix long-standing pain points for clients. Make sure to include at least
one related joke.

Ejecución 1: valores razonables

Parámetro Valor
Temperature 0.9
Max length 4167
Top P 0.4
Frequency penalty 0.93
Presence penalty 0.98

Extracto del resultado (gpt-3.5-turbo, 2024):

Slide 3:
- Talk about our cloud solution with enthusiasm and confidence. Emphasize its simplicity and
  reliability.
- Inject some humor by saying something like, "Our cloud solution is so secure that even hackers
  have given up trying to crack it. They'd rather go back to playing Minesweeper."

Slide 4:
- Introduce our AI technology with excitement. Highlight its speed and efficiency.
- Use a playful analogy when discussing its speed: "Our AI analyzes data faster than Usain Bolt
  running away from his laundry duties!"

Coherente, con humor algo previsible.

Ejecución 2: todo al máximo

Sube temperature, top_p y las penalizaciones a su valor máximo.

Slide 2:
- It's time to discuss those painful points tormenting our clients.
   * An ideal introduction would be somethting snarky yet empathetic. For instance: "Picture life
     without using Excel sheets, still counting fingers on one hand? Our first offering addresses
     headaches equivalent of tape-that-spindle logic!"

Note & Spontaneity Reminder --> Got jokes related form physical signs lines
Channel 'Wahlberg' Recurring Exaple Rest stop vs FAST hiyah haiyenacci dead malliards Avoid
Cockblock haircut...RElevance scale Always check HiItsFilmShuftleviating scenes Assistant wanna
mentions??? Efft Yeeooo Office jordan spiRos Priama battle [...]

Qué observar

  • El texto empieza razonablemente y se degrada token a token hasta convertirse en ruido. Cada token improbable hace más probable el siguiente token improbable.
  • Las penalizaciones altas empujan a no repetir nada, ni siquiera las palabras normales de la lengua.
  • Es la demostración más gráfica de que el modelo genera token a token por probabilidad.

Variaciones

  • Cambia un solo parámetro cada vez para aislar su efecto.
  • Temperatura 0 y lanza dos veces: ¿salen iguales?
  • Con un modelo razonador, comprueba qué parámetros están disponibles: muchos fijan la temperatura.