<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Large Language Models on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/large-language-models/</link><description>Recent content in Large Language Models on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arshadhs.github.io/tags/large-language-models/index.xml" rel="self" type="application/rss+xml"/><item><title>LLM and Prompt Engineering</title><link>https://arshadhs.github.io/docs/ai/050-nlp/050-llm-and-prompt-engineering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/050-nlp/050-llm-and-prompt-engineering/</guid><description>&lt;h1 id="llms-and-prompt-engineering">
 LLMs and Prompt Engineering
 
 &lt;a class="anchor" href="#llms-and-prompt-engineering">#&lt;/a>
 
&lt;/h1>
&lt;p>A Large Language Model extends neural language modelling through much larger datasets, many more parameters, broad pretraining and adaptation to many downstream tasks. Its central operation remains next-token prediction.&lt;/p>
&lt;h2 id="learning-objectives">
 Learning Objectives
 
 &lt;a class="anchor" href="#learning-objectives">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Explain how neural language modelling develops into an LLM.&lt;/li>
&lt;li>Describe the meaning of large, general-purpose and pretrained.&lt;/li>
&lt;li>Explain how a prompt guides generation.&lt;/li>
&lt;li>Distinguish zero-shot and few-shot prompting.&lt;/li>
&lt;li>Compare prompting with model adaptation.&lt;/li>
&lt;/ul>
&lt;h2 id="big-picture">
 Big Picture
 
 &lt;a class="anchor" href="#big-picture">#&lt;/a>
 
&lt;/h2>


&lt;pre class="mermaid">
flowchart TD
 A[&amp;#34;Broad Text Data&amp;#34;] --&amp;gt; B[&amp;#34;Large-scale Pretraining&amp;#34;]
 B --&amp;gt; C[&amp;#34;General Language Model&amp;#34;]
 C --&amp;gt; D[&amp;#34;Prompt or Adaptation&amp;#34;]
 D --&amp;gt; E[&amp;#34;Task Output&amp;#34;]

 style A fill:#E1F5FE
 style B fill:#C8E6C9
 style C fill:#FFF9C4
 style D fill:#EDE7F6
 style E fill:#E1F5FE
&lt;/pre>

&lt;h2 id="1-from-neural-language-models-to-llms-">
 1. From Neural Language Models to LLMs ☆
 
 &lt;a class="anchor" href="#1-from-neural-language-models-to-llms-">#&lt;/a>
 
&lt;/h2>
&lt;p>A neural language model learns a conditional probability for the next token:&lt;/p></description></item></channel></rss>