هوش مصنوعی مولد و تولید متن در مدلهای زبانی بزرگ
هوش مصنوعی برای همه: هوش مصنوعی چطور باهوش شد؟
- Predictive classification versus generating a new sequence or example.
- A large language model as a model trained to assign probabilities to token continuations at substantial scale.
- Autoregressive generation: predict, select, append, and repeat.
- Sampling and temperature through a small next-token probability table.
- How next-token training supports many tasks without making every task equally reliable.
- Novel combinations, memorized fragments, and why generation is neither simple copying nor guaranteed originality.
- Distinguishing a model's text generation from retrieval, calculation, or tool execution performed by a surrounding system.
از برچسب تا دنباله
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><rect class="tm-soft" x="45" y="95" width="290" height="245" rx="16"/><text class="tm-text" x="190" y="130" text-anchor="middle" font-size="20" direction="rtl">دستهبندی تصویر</text><rect class="tm-surface" x="80" y="170" width="220" height="55" rx="10"/><text class="tm-text" x="190" y="204" text-anchor="middle" font-size="18" direction="rtl">تصویر سیب</text><path class="tm-line" d="M190 225 L190 265"/><rect class="tm-accent" x="105" y="270" width="170" height="48" rx="10"/><text class="tm-text" x="190" y="301" text-anchor="middle" font-size="18" direction="rtl">برچسب: سیب</text><rect class="tm-soft" x="465" y="95" width="290" height="245" rx="16"/><text class="tm-text" x="610" y="130" text-anchor="middle" font-size="20" direction="rtl">ساختن متن</text><rect class="tm-surface" x="500" y="170" width="220" height="55" rx="10"/><text class="tm-text" x="610" y="204" text-anchor="middle" font-size="18" direction="rtl">داخل سبد</text><path class="tm-line-accent" d="M610 225 L610 250"/><rect class="tm-accent tm-enter" x="500" y="255" width="220" height="48" rx="10"/><text class="tm-text" x="610" y="286" text-anchor="middle" font-size="17" direction="rtl">میوهها خوشرنگاند</text><text class="tm-muted" x="610" y="325" text-anchor="middle" font-size="14" direction="rtl">دنبالهٔ تازه</text></svg>
```
تولید گامبهگام متن
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="30" y="45" width="210" height="70" rx="12" class="tm-surface"/><text x="135" y="87" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">داخل سبد سیب سبز</text><rect x="295" y="45" width="205" height="70" rx="12" class="tm-soft"/><text x="397" y="87" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">احتمال token</text><rect x="555" y="45" width="210" height="70" rx="12" class="tm-soft"/><text x="660" y="87" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">انتخاب</text><path d="M240 80 H290" class="tm-line" marker-end="url(#arrow)"/><path d="M500 80 H550" class="tm-line" marker-end="url(#arrow)"/><rect x="295" y="145" width="205" height="78" rx="12" class="tm-surface"/><text x="397" y="176" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">بود: احتمال بالاتر</text><text x="397" y="202" class="tm-text2" font-size="16" text-anchor="middle" direction="rtl">افتاد: احتمال پایینتر</text><rect x="555" y="145" width="210" height="78" rx="12" class="tm-accent"/><text x="660" y="190" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">بود</text><path d="M660 115 V140" class="tm-line-accent" marker-end="url(#arrow)"/><rect x="30" y="285" width="735" height="65" rx="12" class="tm-green"/><text x="397" y="325" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">داخل سبد سیب سبز بود</text><path d="M660 223 V280" class="tm-line-accent" marker-end="url(#arrow)"/></svg>
```
sampling و دمای انتخاب
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><text class="tm-text" font-size="20" x="205" y="45" text-anchor="middle">sampling</text><rect class="tm-green" x="85" y="90" width="240" height="62" rx="12"/><text class="tm-text" font-size="17" x="205" y="128" text-anchor="middle" direction="rtl">سبز: احتمال کمتر</text><rect class="tm-gold" x="85" y="165" width="240" height="130" rx="12"/><text class="tm-text" font-size="17" x="205" y="235" text-anchor="middle" direction="rtl">گزینهٔ محتملتر</text><text class="tm-muted" font-size="14" x="205" y="330" text-anchor="middle" direction="rtl">بخش بزرگتر، شانس بیشتر</text><text class="tm-muted" font-size="14" x="205" y="355" text-anchor="middle" direction="rtl">بخش کوچکتر هم شانس دارد</text><text class="tm-text" font-size="20" x="590" y="45" text-anchor="middle">temperature</text><rect class="tm-surface" x="440" y="90" width="300" height="205" rx="16"/><text class="tm-muted" font-size="16" x="590" y="130" text-anchor="middle" direction="rtl">احتمال سیب</text><rect class="tm-accent" x="485" y="145" width="140" height="30" rx="8"/><text class="tm-text" font-size="14" x="555" y="166" text-anchor="middle" direction="rtl">حدود دو سوم</text><text class="tm-muted" font-size="16" x="590" y="210" text-anchor="middle" direction="rtl">احتمال گلابی</text><rect class="tm-green" x="485" y="225" width="70" height="30" rx="8"/><text class="tm-text" font-size="14" x="520" y="246" text-anchor="middle" direction="rtl">یک سوم</text><text class="tm-muted" font-size="14" x="590" y="330" text-anchor="middle" direction="rtl">درجهٔ ۲: گلابی شانس بیشتری دارد</text><rect class="tm-accent tm-pulse" x="85" y="165" width="240" height="130" rx="12"/><text class="tm-text-accent" font-size="15" x="205" y="280" text-anchor="middle" direction="rtl">درستی تضمین نمیشود</text><text class="tm-muted" font-size="14" x="590" y="375" text-anchor="middle" direction="rtl">تنوع بیشتر، نه حقیقت بیشتر</text></svg>
```
یک سازوکار، کارهای گوناگون
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><rect x="30" y="45" width="350" height="165" rx="14" class="tm-soft"/><text x="205" y="78" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">ترکیب تازه</text><text x="205" y="120" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">سبد شیشهای زیر نور آبی</text><text x="205" y="158" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">جملهای ممکن است بیسابقه باشد</text><rect x="420" y="45" width="350" height="165" rx="14" class="tm-soft"/><text x="595" y="78" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">تکهٔ پرتکرار یا حفظشده</text><text x="595" y="120" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">متنهای آموزشی</text><text x="595" y="158" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">بازترکیب یا بازتولید</text><rect x="255" y="290" width="290" height="85" rx="16" class="tm-accent"/><text x="400" y="325" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">سازوکار ساختن</text><text x="400" y="351" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">≠ سابقهٔ تکهها</text><path d="M205 210 L335 290" fill="none" class="tm-line"/><path d="M595 210 L465 290" fill="none" class="tm-line"/></svg>
```
تولید، جستوجو و محاسبه
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="40" y="45" width="220" height="95" rx="14" class="tm-accent"/><text x="150" y="82" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">مدل زبانی</text><text x="150" y="112" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">ساختن جواب</text><rect x="540" y="45" width="220" height="95" rx="14" class="tm-surface"/><text x="650" y="82" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">جملهٔ روان</text><text x="650" y="112" text-anchor="middle" class="tm-muted" font-size="16" direction="rtl">«دفترچه رو بررسی کردم»</text><path d="M260 92 H530" class="tm-line" marker-end="url(#arrow)"/><text x="400" y="70" text-anchor="middle" class="tm-muted" font-size="15" direction="rtl">تولید متن</text><rect x="40" y="205" width="190" height="90" rx="14" class="tm-soft"/><text x="135" y="242" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">دفترچه</text><text x="135" y="270" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">متن سند</text><rect x="305" y="205" width="190" height="90" rx="14" class="tm-gold"/><text x="400" y="242" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">جستوجوی سند</text><text x="400" y="270" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">پیدا کردن عبارت</text><rect x="570" y="205" width="190" height="90" rx="14" class="tm-surface"/><text x="665" y="242" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">عبارت گنجایش</text><text x="665" y="270" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">متن پیداشده</text><path d="M230 250 H295" class="tm-line-accent" marker-end="url(#arrow)"/><path d="M495 250 H560" class="tm-line-accent" marker-end="url(#arrow)"/><rect x="305" y="335" width="190" height="75" rx="14" class="tm-green"/><text x="400" y="365" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">ماشینحساب</text><text x="400" y="392" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">اجرای محاسبه</text><rect x="570" y="335" width="190" height="75" rx="14" class="tm-surface"/><text x="665" y="365" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">۳۹۱</text><text x="665" y="392" text-anchor="middle" class="tm-text2" font-size="16" direction="rtl">نتیجهٔ ابزار</text><text x="135" y="365" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">۱۷ × ۲۳</text><path d="M230 370 H295" class="tm-line-accent" marker-end="url(#arrow)"/><path d="M495 370 H560" class="tm-line-accent" marker-end="url(#arrow)"/></svg>
```
بازگشت به دوره