<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Coleman Hindes on Medium]]></title>
        <description><![CDATA[Stories by Coleman Hindes on Medium]]></description>
        <link>https://medium.com/@colemanhindes?source=rss-f74c6e85d98f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jn_TdeTOjsEwKm47aL9opQ.jpeg</url>
            <title>Stories by Coleman Hindes on Medium</title>
            <link>https://medium.com/@colemanhindes?source=rss-f74c6e85d98f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:34:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@colemanhindes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond Few-Shot Learning: Fine-tuning with GPT-3]]></title>
            <link>https://medium.com/@colemanhindes/beyond-few-shot-learning-fine-tuning-with-gpt-3-845568b9513f?source=rss-f74c6e85d98f------2</link>
            <guid isPermaLink="false">https://medium.com/p/845568b9513f</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Coleman Hindes]]></dc:creator>
            <pubDate>Wed, 14 Jul 2021 17:25:29 GMT</pubDate>
            <atom:updated>2021-07-14T17:25:29.291Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gm_Zu1ELK9o3CCrJwV6AjA.jpeg" /></figure><p>For this article I’m going to assume you have some background knowledge on GPT-3, a large text generation and classification model created by OpenAI. If not, please check out these articles <a href="https://www.technologyreview.com/2020/07/20/1005454/openai-machine-learning-language-generator-gpt-3-nlp/">https://www.technologyreview.com/2020/07/20/1005454/openai-machine-learning-language-generator-gpt-3-nlp/</a></p><p><a href="https://medium.com/@colemanhindes/how-to-finesse-openais-gpt-3-api-a-tutorial-c43dc4f59c7c">https://medium.com/@colemanhindes/how-to-finesse-openais-gpt-3-api-a-tutorial-c43dc4f59c7c</a></p><p>Much of the hype around GPT-3 comes from its ability to generalize from limited input <a href="https://arxiv.org/abs/2005.14165">https://arxiv.org/abs/2005.14165</a>. After its initial training (on a giant dataset scraped from the internet), GPT-3 is able to generate realistic answers to many questions, create compelling copy from short statements, summarize articles and more. And this is without the time and data intensive task-specific training that these types of problems usually involve. Instead of spending months scraping data, cleaning, training, and tweaking models, an engineer can get impressive results to many language generation and classification problems by writing a carefully phrased input string (known as a prompt) to the API.</p><p>However, while the results are certainly impressive given the circumstances (high performance on tasks it was not trained for), the flip side of this is that the primary API does not support any task specific training, meaning that it can’t improve its performance no matter how many times it completes the same task. The only optimization that can be done is to tweak the input string — which is limited to roughly 1500 words). This is now known as prompt engineering, and many tips and tricks have been devised for how to get the best results using this method, including stuffing a few examples into the prompt as mini-training data.</p><p>Understandably this has it’s flaws, particularly in a production environment. Most use-cases are specialized, and GPT-3 can say random, unrelated, and potentially inappropriate things. It can misunderstand the context of the question, change tone abruptly, or deviate from the expected format of the response. This means you likely have to do extensive post-processing to clean up the output for your users.</p><p>Fine-tuning, which was released as part of the Beta yesterday (July 13, 2021), should help with this. Fine tuning means that you can upload custom, task specific training data, while still leveraging the powerful model behind GPT-3. This means</p><ol><li>Higher quality results than prompt design</li><li>Ability to train on more examples than can fit in a prompt</li><li>Token savings due to shorter prompts</li></ol><blockquote>Lower latency requests</blockquote><p>And lastly, an important quote from the release</p><blockquote>“Performance tends to linearly increase with every doubling of the number of examples.”</blockquote><p>I predict that this will lead to dramatic improvement in existing GPT-3 applications, and unlock a whole new class of problems that can be solved using this new fine tuning functionality.</p><p>If you have a problem (natural language generation, natural language understanding, classification, extraction) that you think could be solved with fine-tuning, or you have any questions or comments about the article, feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=845568b9513f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unofficial GPT-3 Developer FAQ]]></title>
            <link>https://medium.com/@colemanhindes/unofficial-gpt-3-developer-faq-fcb770710f42?source=rss-f74c6e85d98f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcb770710f42</guid>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[gpt-3]]></category>
            <dc:creator><![CDATA[Coleman Hindes]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 20:13:45 GMT</pubDate>
            <atom:updated>2021-03-22T20:13:45.674Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve compiled some frequently asked questions about OpenAI’s GPT-3. Please let me know if you have more questions or if you see any inaccuracies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*Ru5bkbgDTdy6Z4Fm.gif" /></figure><p><strong>I see different results when using the GPT-3 playground vs. when I use the python API, is there a difference between the playground and the API?</strong></p><p>No, the playground is a wrapper around the API. However, if you are getting drastically different results you may want to print out your prompt to ensure it is being sent to the API correctly.</p><p><strong>What’s the difference between the different GPT-3 engines?</strong></p><p>You can learn more about the different engines here: <a href="https://beta.openai.com/docs/engines">https://beta.openai.com/docs/engines</a></p><p><strong>How many concurrent requests can I make to the API?:</strong></p><p>Only 2 concurrent requests can be made per API key at a time.</p><p><strong>What data was used for training GPT-3?</strong></p><p>The <a href="https://arxiv.org/abs/2005.14165">research paper</a> explains that a filtered version of CommonCrawl was used, with measures to prevent document redundancy</p><p><strong>Does GPT-3 remember previous prompts?</strong></p><p>No, each prompt is independent.</p><p><strong>Where are the servers located? (for latency-related concerns)</strong></p><p>(As of March 13) All requests currently go through regions in the middle of the US (Azure SouthCentralUS and CentralUS) but this is subject to change without notice.</p><p><strong>What is the language breakdown of the dataset that was used to train GPT-3?</strong></p><p>See link below:</p><p><a href="https://github.com/openai/gpt-3/blob/master/dataset_statistics/languages_by_word_count.csv">openai/gpt-3</a></p><p><strong>Are businesses required to mention that their products are using GPT-3?</strong></p><p>The <a href="https://beta.openai.com/docs/safety-best-practices">safety best practices</a> recommend that you:</p><p>Indicate clearly what is performed by an AI vs. handled by a human within your application, particularly in initial user interactions. However, there is no branding requirement.</p><p><strong>Is </strong><strong>curie-instruct-beta the same price as </strong><strong>curie?</strong></p><p>(As of March 21) Yes</p><p><strong>Does GPT-3 have native support for images as input or output?</strong></p><p>No, GPT-3 is currently text only. DALL-E and CLIP which have not been released offer support for images.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcb770710f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Could AI Generated Text Help Your Business?]]></title>
            <link>https://medium.com/@colemanhindes/could-ai-generated-text-help-your-business-47d7fd848701?source=rss-f74c6e85d98f------2</link>
            <guid isPermaLink="false">https://medium.com/p/47d7fd848701</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt-3]]></category>
            <dc:creator><![CDATA[Coleman Hindes]]></dc:creator>
            <pubDate>Mon, 01 Feb 2021 17:02:08 GMT</pubDate>
            <atom:updated>2021-02-01T17:02:08.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*xrhGpRQTR9JkBOu5zo5n7A.gif" /><figcaption>Image by Nikita Iziev</figcaption></figure><p>Much has been written about OpenAI’s latest model, GPT-3 — a state-of-the-art AI capable of generating realistic-sounding writing. It seems inevitable that the field — often referred to as Natural Language Generation (NLG), will continue to grow, and early adopters have already started to leverage it.</p><p>So how can you use GPT-3 to solve problems for your business? As a consultant who has been engaged by several companies to create solutions using GPT-3, I highly recommend it for:</p><p><strong>First drafts</strong> — One of the hardest parts of writing a first draft is getting those first words on the page. GPT-3 can save time and help you get started with your <a href="http://gwern.net/GPT-3">stories, articles, scripts, or blog posts</a>. You can generate multiple drafts, pick one and iterate on it in minutes</p><p><strong>Inspiration / Brainstorming</strong> — If you’re having trouble naming something, or need help brainstorming, you can use GPT-3 to come up with new ideas, names, or <a href="https://ideasai.net/">business models</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivzPu8UVXKEySGpZprj4zw.png" /><figcaption>Business models (Input is highlighted, the rest is generated by GPT-3)</figcaption></figure><p><strong>Prototypes</strong> — There are a lot of use-cases for which it’s unclear if an NLG solution is feasible. While other solutions require carefully curated data and months — or even years — of development time, GPT-3 allows for relatively quick prototype creation</p><p>Some examples include:</p><ul><li>automatic suggestions for email or outreach</li><li>services to summarize news or emails</li><li><a href="https://play.aidungeon.io/main/landing">text-based games</a></li><li><a href="https://seekwell.io/blog-gpt3">SQL query generation</a></li><li>chatbots</li></ul><p>That said, there are a few constraints to keep in mind. First, GPT-3 cannot be trained on custom documents (at least not yet). You communicate with the model by providing both the context for the text you want it to generate, and some parameters. <a href="https://medium.com/@colemanhindes/how-to-finesse-openais-gpt-3-api-a-tutorial-c43dc4f59c7c">It’s important to tune these correctly to get consistent results</a></p><p>Second, because GPT-3 is still in beta, junk and potentially offensive content can come up (it was trained on the WHOLE internet). There’s a GPT-3-powered content filter that can remove most of this unsavory content. However, OpenAI’s use-case guidelines forbid directly sending responses to users, and with good reason, all output should be reviewed before it goes out to clients.</p><p>The guidelines also forbid posting to social media and generating content on sensitive topics, among other things.</p><p>As long as you keep these constraints in mind, it’s likely GPT-3 can add value to your business, and these are far from all the possible use-cases. If you have any questions or are wondering if your business could benefit from NLG feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47d7fd848701" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to finesse OpenAI’s GPT-3 API: A Tutorial]]></title>
            <link>https://medium.com/@colemanhindes/how-to-finesse-openais-gpt-3-api-a-tutorial-c43dc4f59c7c?source=rss-f74c6e85d98f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c43dc4f59c7c</guid>
            <category><![CDATA[openaai]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[gpt-3]]></category>
            <dc:creator><![CDATA[Coleman Hindes]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 16:04:02 GMT</pubDate>
            <atom:updated>2020-08-17T16:58:05.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRNG9l1wtSq-7dUtcmfwMQ.png" /><figcaption>GPT-3 Playground</figcaption></figure><p>I was lucky enough to get early access to the OpenAI GPT-3 beta, and I‘ve been tinkering with it for some time now, so I wanted to share some tips and tricks.</p><p>I’m going to assume you have a general idea of what GPT-3 is. For more background and technical details, this is a good starting point:</p><p><a href="https://www.technologyreview.com/2020/07/20/1005454/openai-machine-learning-language-generator-gpt-3-nlp/">https://www.technologyreview.com/2020/07/20/1005454/openai-machine-learning-language-generator-gpt-3-nlp/</a></p><p>This post is going to deal with how to get GPT-3 to generate your desired output. If you’ve mostly read overviews and seen product demos, you may not have seen the interface yet. Unlike many other ML/Deep Learning algorithms that require extensive training data, GPT-3 has already been trained extensively on text from the internet. The model has 175 billion parameters (the values that a neural network tries to optimize during training), compared with GPT-2’s 1.5 billion. This means it can leverage a simple “prompt” input format. You provide text input (up to 2048 tokens, or ~1500 words), and GPT-3 infers what should come next.</p><p>prompt -&gt; output</p><h3>What GPT-3 Can Do</h3><p>So far I‘ve seen GPT-3 write cover letters, review books, write code, come up with startups, tell a story, write clever tweets, and encourage people to follow their dreams. I have no doubt there are many more use-cases that will be uncovered soon.</p><h3>Tempering Expectations, What GPT-3 Can’t Do (yet)</h3><p>Much has been written about the conceptual limitations, but I want to talk about the practical limitations.</p><p>Perhaps the oddest is that GPT-3 doesn’t seem able to rhyme very well. So lyrics and rhyming couplets are out. It is speculated that this is due to its reliance on BPE’s (Byte Pair Encodings).</p><p>It also has a bit of an overconfidence problem (it can be a little “creative” with the truth) and it will sometimes plagiarize, and while sometimes this will lead to the correct answer, other times this is not desired behavior (though if you up the “temperature” this becomes less common). It will sometimes generate inappropriate text — OpenAI is hard at work on a content filter. It will also sometimes generate complete gibberish, or degenerate into repeating itself. Finally, GPT-3 was last trained in October 2019, so it is missing knowledge on some key current events.</p><p>For these reasons I recommend tasking it with jobs that are either low stakes, or where a human will be in the loop reviewing the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Yw-UxMH7espWd1ht.jpg" /><figcaption><strong>“Software 3.0”? (</strong><a href="https://twitter.com/karpathy/status/1273788774422441984"><strong>Andrej Karpathy</strong></a><strong>)</strong></figcaption></figure><h3>Prompt Design</h3><p>The simplest prompts are those with a clear structure. For example, if you clearly format your text as a question, GPT-3 picks up on the pattern pretty quick.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fEYjtMR718taIbxbCzn1LA.png" /><figcaption>Prompt in bold</figcaption></figure><p>This works great for simple questions and answers.</p><p>If you want to move beyond simple questions and have GPT-3 talk like a human, you need to provide it with some context. Think how you would direct an actor or improv comedian. Different prompts will have dramatically different outcomes</p><p>You can provide a scenario</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Au7RDlobyHI9UY347O5bgg.png" /></figure><p>And a personality</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZV6ILq0p32_rl5pvPVugA.png" /></figure><p>Using these prompts you can create simple chatbots that operate within the given context. To do so, you need to set the “stop sequence”. The stop sequence should include the names of both participants and a newline (“\n”).</p><p>You can ask for book recommendations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HYfNGNMcK3Yw4Puaw1AVw.png" /></figure><p>There’s a lot you can do by simply messing with the bit of context at the top of the prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsaHQiVr1rdh07IxNo2S7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRpMaRHXQZfnMkQQIVdAjQ.png" /></figure><p>Once you’ve created these prompts, you can reuse them as part of a larger application. You can also substitute words or names using templating. This will be covered in a future post.</p><h3>Freestyle</h3><p>What if you want GPT-3 to come up with something new? To do so you need give some inspiration to the autocomplete. For example, if you want to create a new nursery rhyme melody, you can supply Mary Had a Little Lamb in abc notation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLnM9Sqpq2N1IJcMpR7e5w.png" /><figcaption>Extended nursery rhyme</figcaption></figure><p>This creates an extended version of the song, and you can simply remove the original melody if desired for an all new song.</p><p>To hear the difference between the two, you can copy the text below into this site</p><p><a href="https://www.abcjs.net/abcjs-editor.html">https://www.abcjs.net/abcjs-editor.html</a></p><p><strong>X: 1 T: Mary Had a Little Lamb C: Traditional M: C| L: 1/4 K: G “G”BAGA | BBB2 | “D”AAA2 | “G”Bdd2 | “G”BAGA | BBBB | “D”AABA | “G”G4 || </strong>“G”gfe2 | “D”B2A2 | “G”B2d2 | “D”B2d2 | “G”f2g2 | “D”B2A2 | “G”B2d2 |</p><p>You can do the same with stories or poems. To see this and more about GPT-3 prompt-hacking in depth, check out GWERN’s blog on the subject <a href="https://www.gwern.net/GPT-3#">https://www.gwern.net/GPT-3#</a></p><h3>Troubleshooting</h3><p>Q: What if GPT-3 isn’t giving me the result I want?</p><p>A: Turn it off and on again.</p><p>In all seriousness, sometimes simply rerunning GPT-3 with the same prompt a few times will lead to a much better result</p><p>Q: GPT-3 is giving me BS results, how can I make it be more honest?<br>A: Try turning down the “temperature” parameter — this corresponds to how creative the model will be.</p><p>Q: GPT-3 is plagiarizing, how can I make it be more creative?</p><p>A: Try turning up the “temperature” parameter</p><p>Q: The responses are too short, (or too long)</p><p>A: Try adjusting the “response length” parameter</p><p>Q: The responses are too repetitive</p><p>A: Try increasing the “presence penalty”</p><p>Q: The responses seem to have nothing to do with the prompt?<br>A: Consider restructuring the prompt. Sometimes you need to add additional context, or reword into simpler english. Imagine you were explaining to a child. Check for implicit assumptions of knowledge in your prompt, incomplete sentence fragments can be ambiguous and throw off the pattern recognition.</p><p>If that still doesn’t work try giving several examples of the type of results you want in the prompt itself.</p><p>If that doesn’t work, send me a message, and I’ll see if I can help you out.</p><p>Thanks for reading, and let me know if you have any questions or feedback</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c43dc4f59c7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>