Peter Yang Profile picture
Jun 3 11 tweets 6 min read Twitter logo Read on Twitter
Andrej Karpathy is a legendary AI researcher who helped start OpenAI.

He recently gave a talk on how to craft great GPT prompts that almost everyone missed.

I watched the 40 min talk - here's @karpathy's top 5 tips to make AI work better for you: Image
1/ Let's start by comparing humans to LLMs.

To arrive at the output "California's population is 53x that of Alaska", a human would:

1. Look up the populations on Wikipedia
2. Use a calculator to divide the numbers
3. Do a sanity check and craft a sentence Image
2/ A LLM, in comparison, thinks only about producing the next token or word.

They don't:
- Have an inner monologue
- Do any sanity checks

They do:
- Have a vast knowledge base
- Have a great working memory

Now that you know this, here are some ways to improve AI's outputs: Image
3/ Help the LLM succeed

An LLM has no notion of success. You have to make it want to succeed with prompts like:

• "You're an expert in X"
• "Think through this step by step"
• "Make sure you have the right answer"

Here's how the above helps with accuracy: Image
4/ Be specific and give examples

Imagine that you had to get someone to complete a task well with a single email.

You would:
- Give them context
- Make the goal clear
- Share examples of success

LLMs are the same - you need to give detailed, specific prompts with examples: Image
5/ Load relevant context into its memory

Providing detailed prompts is tedious.

So save your detailed prompts and load it into the LLM's memory each time you want it to perform a particular task. Image
6/ Continuing my previous example:

I have a ready made list of tweets that I load into ChatGPT's memory when I want it to help me improve my writing hooks. Image
7/ Encourage it to ask for more info

Even if you write a detailed prompt, it's hard to guess what the LLM needs.

So include this in your prompt:

"Ask me questions if you need more info."

This will get the LLM to ask you to share relevant context to improve its output. Image
8/ Use LLMs with other tools

LLMs have flaws. They may:

- Be biased
- Hallucinate false info
- Have knowledge cutoffs

Try different tools like:

- Bing for browsing
- Code interpreter for data

My thread on the latter made it into Andrej's deck: Image
9/ Here's @karpathy's full talk where he also discusses the state of GPT overall:



Sign up for my newsletter, I'll be sharing the top AI prompts that I return to after 100s of hours with ChatGPT and other LLMs:
creatoreconomy.so
10/ To recap:

1. Help the LLM succeed (e.g., "you're an expert", "step by step")
2. Be specific and give examples
3. Load relevant context into its memory
4. Encourage it to ask for more info
5. Use LLMs with other tools

Follow me @petergyang and RT below if you enjoyed this:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Peter Yang

Peter Yang Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @petergyang

May 29
My life changed for the better when I learned about the 3 forms of leverage from @naval.

It made me set new goals and redesign my life with intention.

Maybe it'll change your life too: Image
1/ The 3 forms of leverage are:

1. Labor: More people.
2. Capital: More money.
3. Product: More content or code.

Let's break down each one...
2/ Labor

The oldest form of leverage.

Leading a 200 person org will impress your parents.

But it might not make you happy - coordinating people is messy so you likely won't have full control of your time.
Read 9 tweets
May 28
Nvidia almost died 3 times in its 30 year history.

CEO Jensen Huang shared these near-death stories at a commencement speech last night.

Here's what he said:
1/ LESSON #1: Have the humility to confront failure and ask for help

Nvidia's first big 3D chip contract was for Sega's new game console.

From Jensen:

"After one year of development, we realized our architecture was the wrong strategy..."
2/ "I contacted the CEO of Sega and suggested that they should find another partner.

But I also needed Sega to pay us in full or Nivida would be out of business.

I was embarrassed to ask. The CEO of Sega, to his credit and to my amazement, agreed."
Read 11 tweets
May 27
Nvidia ($960B) is now worth more than:

- Facebook ($665B)
- Tesla ($618B)
- Netflix ($168B)

This is a company that started 30 years ago at Denny's and was for decades only a video game chip maker.

Here's why Nvidia is surging: Image
1/ Nvidia invented the graphics processing unit (GPU) back in 1999.

Its GeForce series was a perfect fit for PC and console games that demanded high fidelity graphics. Image
2/ But GPUs are just one part of the story.

Nvidia launched the CUDA computing platform in 2007 to make it easier for people to program GPUs.

This made it much easier for AI players to adopt Nvidia's chips vs. competitors.

From Nvidia: Image
Read 7 tweets
May 11
Google Workspace has 3 billion users.

Gen AI will be the biggest change to Workspace in years.

Here are the best gen AI features that Google announced today to improve productivity: Image
1/ Generate images from text in Google Slides
2/ Generate custom project management plans from text in Google Sheets
Read 5 tweets
May 10
Trung Phan's viral threads consistently reach 20K+ likes and 5M+ views.

I asked him to explain his end to end process.

Here's how he does it in 4 steps: Image
1/ @TrungTPhan uses the barbell strategy of smart threads and dumb memes:

- Dumb memes are low effort and help him stay top of mind.

- Smart threads are high effort and bring in great opportunities and relationships.

So how does Trung craft smart threads? Image
2/ First, Trung consumes alot of content. He gets ideas from:

- Podcasts and newsletters
- Reddit top posts
- Twitter Blue top articles

He wakes up every morning to read.
Read 7 tweets
May 6
7 habits that I swear by in my late 30s to feel better than ever:
1/ Have a bedtime routline

As a parent, I know it's hard to do anything well without good sleep.

Here's a routine that works for me:

- No food or water after 8 pm
- No phone in the bedroom
- Bed by 10 pm

If I have trouble falling asleep, I read my Kindle until I get tired.
2/ Workout every morning

Breaking a sweat for 20-30 min clears my mind and helps me start the day with a win.

My @tonal makes my workouts very convenient but traditional weights or a quick jog outside works great too.
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(