fibonacciai/Iran-v1
<div align="center">
<p align="center"> <img src="https://capsule-render.vercel.app/api?type=waving&height=200§ion=header&text=مدل%20زبانی%20ایران&fontSize=45&fontColor=FFFFFF&desc=پلی%20میان%20پیشرفتهترین%20پژوهشهای%20دنیا%20و%20زبان%20شیرین%20فارسی&descSize=16&descAlignY=70&animation=fadeIn&color=0:1E7A34,50:FFFFFF,100:DC2626" width="100%"/> </p>
🤖 مدل زبانی ایران نسخه ۱ با معماری بومی یاسین 🇮🇷
🌟 اولین معماری مدل زبانی متنباز فارسی
<p align="center"> <a href="https://huggingface.co/fibonacciai/"> <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-%D9%85%D8%AF%D9%84%20%D8%A7%DB%8C%D8%B1%D8%A7%D9%86-8B5CF6?style=for-the-badge&logo=huggingface&logoColor=white" alt="Hugging Face"/> </a> <a href="https://www.python.org/"> <img src="https://img.shields.io/badge/Python-3.8%2B-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python"/> </a> <a href="https://pytorch.org/"> <img src="https://img.shields.io/badge/PyTorch-2.0%2B-EE4C2C?style=for-the-badge&logo=pytorch&logoColor=white" alt="PyTorch"/> </a> <a href="https://opensource.org/licenses/Apache-2.0"> <img src="https://img.shields.io/badge/License-Apache%202.0-8B5CF6?style=for-the-badge&logoColor=white" alt="License"/> </a> </p>
<p align="center"> <a href="https://github.com/realrobotteam"> <img src="https://img.shields.io/github/stars/realrobotteam/yasin-model?style=for-the-badge&logo=github&color=fbbf24" alt="GitHub Stars"/> </a> <a href="https://colab.research.google.com/"> <img src="https://img.shields.io/badge/Colab-%D8%AF%D9%85%D9%88%DB%8C%20%D8%A2%D9%86%D9%84%D8%A7%DB%8C%D9%86-F9AB00?style=for-the-badge&logo=googlecolab&logoColor=white" alt="Colab"/> </a> </p>
</div>
📋 فهرست مطالب
<div align="center">
</div>
🌟 معرفی کلی
<div align="center">
<table style="width: 100%; border: none; background: linear-gradient(145deg, #0d0d1a, #1a1a2e); border-radius: 25px; padding: 30px; box-shadow: 0 20px 40px rgba(139,92,246,0.2); border: 1px solid #2d2d4a;"> <tr> <td style="padding: 25px; color: #e2e8f0;">
<h2 align="center">🎯 مدل زبانی ایران چیست؟</h2>
<p align="justify" style="font-size: 17px; line-height: 2; color: #cbd5e1;"> <strong style="color: #a78bfa;">ایران نسخه ۱</strong> یک مدل زبانی بزرگ (LLM) دوزبانه فارسی-انگلیسی است که با معماری <strong style="color: #a78bfa;">ترنسفورمر پیشرفته</strong> و تکنیکهای مدرن <code style="background: rgba(139,92,246,0.3); padding: 2px 8px; border-radius: 5px; color: #c4b5fd;">GQA</code>، <code style="background: rgba(139,92,246,0.3); padding: 2px 8px; border-radius: 5px; color: #c4b5fd;">RoPE</code> و <code style="background: rgba(139,92,246,0.3); padding: 2px 8px; border-radius: 5px; color: #c4b5fd;">SwiGLU</code> پیادهسازی شده است. این مدل حاصل آموزش روی <strong style="color: #fbbf24;">۷۰ میلیون</strong> متن فارسی و استفاده از آخرین دستاوردهای پژوهشی در حوزه پردازش زبان طبیعی است. </p>
<p align="justify" style="font-size: 17px; line-height: 2; color: #cbd5e1;"> <strong style="color: #fbbf24;">ایران نسخه ۱</strong> برای این ساخته شده که زبان فارسی را در دنیای هوش مصنوعی زنده نگه دارد. برخلاف مدلهای عمومی که فارسی را بهعنوان زبان دوم میبینند، یاسین از ابتدا برای درک عمق ادبیات، فرهنگ و ساختار منحصربهفرد زبان فارسی طراحی شده است. </p>
</td> </tr> </table>
</div>
✨ ویژگیهای منحصربهفرد
<div align="center">
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 20px;"> <tr> <td style="width: 50%; vertical-align: top;">
<div style="background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 30px; border-radius: 25px; border: 2px solid #8B5CF6; box-shadow: 0 15px 35px rgba(139,92,246,0.15); height: 100%;">
<div align="center" style="font-size: 48px; margin-bottom: 15px;">🎯</div>
<h3 align="center" style="color: #a78bfa; font-size: 22px;">معماری یاسین با بومیسازی عمیق</h3>
<p align="justify" style="font-size: 15px; line-height: 1.8; color: #94a3b8;"> • طراحی شده از پایه برای زبان فارسی<br/> • درک اصطلاحات، ضربالمثلها و ساختارهای دستوری پیچیده<br/> • پشتیبانی کامل از خط و نگارش فارسی </p>
</div>
</td> <td style="width: 50%; vertical-align: top;">
<div style="background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 30px; border-radius: 25px; border: 2px solid #3B82F6; box-shadow: 0 15px 35px rgba(59,130,246,0.15); height: 100%;">
<div align="center" style="font-size: 48px; margin-bottom: 15px;">⚡</div>
<h3 align="center" style="color: #60a5fa; font-size: 22px;">کارایی فوقالعاده</h3>
<p align="justify" style="font-size: 15px; line-height: 1.8; color: #94a3b8;"> • مکانیزم GQA با کاهش <strong style="color: #60a5fa;">۷۵٪</strong> مصرف حافظه<br/> • پشتیبانی از Flash Attention 2<br/> • استنتاج سریعتر با SDPA </p>
</div>
</td> </tr> <tr> <td style="width: 50%; vertical-align: top;">
<div style="background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 30px; border-radius: 25px; border: 2px solid #10B981; box-shadow: 0 15px 35px rgba(16,185,129,0.15); height: 100%;">
<div align="center" style="font-size: 48px; margin-bottom: 15px;">🔄</div>
<h3 align="center" style="color: #34d399; font-size: 22px;">انعطافپذیری کامل</h3>
<p align="justify" style="font-size: 15px; line-height: 1.8; color: #94a3b8;"> • قابل اجرا روی GPUهای ۴GB تا ۲۴GB<br/> • پشتیبانی از quantization 8-bit و 4-bit<br/> • مقیاسپذیری پویا </p>
</div>
</td> <td style="width: 50%; vertical-align: top;">
<div style="background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 30px; border-radius: 25px; border: 2px solid #F59E0B; box-shadow: 0 15px 35px rgba(245,158,11,0.15); height: 100%;">
<div align="center" style="font-size: 48px; margin-bottom: 15px;">🌍</div>
<h3 align="center" style="color: #fbbf24; font-size: 22px;">دوزبانه هوشمند</h3>
<p align="justify" style="font-size: 15px; line-height: 1.8; color: #94a3b8;"> • تسلط کامل به فارسی و انگلیسی<br/> • ترجمه خودکار بین دو زبان<br/> • درک مفاهیم بینافرهنگی </p>
</div>
</td> </tr> </table>
</div>
💎 کاربردهای عملی
<div align="center">
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 15px;"> <tr> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">✍️</div> <h3 style="color: #e2e8f0;">نویسندگی خلاق</h3> <p style="color: #94a3b8; font-size: 14px;">کمک به نوشتن مقاله، داستان، شعر و محتوای خلاقانه</p>
</div>
</td> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">📚</div> <h3 style="color: #e2e8f0;">آموزش و پژوهش</h3> <p style="color: #94a3b8; font-size: 14px;">دستیار آموزشی هوشمند، پاسخگویی به سوالات درسی</p>
</div>
</td> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">💬</div> <h3 style="color: #e2e8f0;">چتبات و پشتیبانی</h3> <p style="color: #94a3b8; font-size: 14px;">ایجاد دستیارهای هوشمند فارسی، پشتیبانی مشتری</p>
</div>
</td> </tr> <tr> <td align="center">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">📊</div> <h3 style="color: #e2e8f0;">تحلیل دادههای متنی</h3> <p style="color: #94a3b8; font-size: 14px;">تحلیل نظرات، بررسی احساسات، دستهبندی متون</p>
</div>
</td> <td align="center">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">🏥</div> <h3 style="color: #e2e8f0;">سلامت و پزشکی</h3> <p style="color: #94a3b8; font-size: 14px;">تحلیل بازخورد بیماران، دستیار پرسش و پاسخ پزشکی</p>
</div>
</td> <td align="center">
<div style="background: linear-gradient(145deg, #1a1a2e, #0d0d1a); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a; height: 100%;">
<div style="font-size: 42px; margin-bottom: 10px;">🎨</div> <h3 style="color: #e2e8f0;">خلاقیت و سرگرمی</h3> <p style="color: #94a3b8; font-size: 14px;">تولید پادکست، شاعر الکترونیک، داستانپردازی</p>
</div>
</td> </tr> </table>
</div>
📊 نمونه خروجی
<div align="center">
<table style="width: 100%; border: none; background: linear-gradient(145deg, #0d0d1a, #1a1a2e); border-radius: 25px; box-shadow: 0 25px 50px rgba(0,0,0,0.4); border: 2px solid #8B5CF6;"> <tr> <td style="padding: 30px;">
<h3 style="color: #a78bfa; font-size: 22px;">🔹 ورودی:</h3>
<div style="background: #0f0f1a; padding: 20px; border-radius: 15px; margin: 15px 0; border: 1px solid #2d2d4a; direction: rtl; text-align: right;">
هوش مصنوعی در ایران چه جایگاهی دارد؟ لطفاً با ذکر مثال توضیح دهید.</div>
<h3 style="color: #a78bfa; font-size: 22px; margin-top: 30px;">🔸 خروجی مدل ایران 1:</h3>
<div style="background: #0f0f1a; padding: 25px; border-radius: 15px; margin: 15px 0; border: 1px solid #8B5CF6; direction: rtl; text-align: right; font-family: Vazir, IRANSans, Tahoma, sans-serif; color: #e2e8f0;">
هوش مصنوعی در ایران طی سالهای اخیر رشد قابل توجهی داشته است. دانشگاههای برتر
مانند صنعتی شریف، تهران و امیرکبیر دورههای تخصصی در این حوزه راهاندازی
کردهاند.
برای مثال:
✅ دانشگاه صنعتی شریف - آزمایشگاه پردازش زبان طبیعی با تمرکز بر فارسی
✅ دانشگاه تهران - مرکز تحقیقات هوش مصنوعی و رباتیک
✅ دانشگاه امیرکبیر - پژوهشکده فناوری اطلاعات و هوش مصنوعی
شرکتهای دانشبنیان متعددی در زمینه پردازش زبان فارسی، بینایی ماشین و
رباتیک فعالیت میکنند. شرکتهایی مانند هوشا، دیجیکالا و اسنپ تیمهای
تخصصی هوش مصنوعی دارند.
با این حال، چالشهایی مانند:
⚠️ دسترسی محدود به سختافزارهای پیشرفته
⚠️ مهاجرت نخبگان
⚠️ کمبود دادههای باکیفیت فارسی
⚠️ تحریمهای بینالمللی
وجود دارد. پیشبینی میشود با سرمایهگذاری بیشتر در این حوزه، ایران بتواند
جایگاه بهتری در منطقه کسب کند.</div>
</td> </tr> </table>
</div>
⚙️ معماری فنی پیشرفته
<div align="center" style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 35px; border-radius: 30px; border: 1px solid #2d2d4a; margin: 40px 0;">
<h3 style="font-size: 28px; color: #e2e8f0; border-bottom: 4px solid #8B5CF6; padding-bottom: 15px;">🧠 نمای کلی معماری</h3>
<div align="center" style="margin: 30px 0; font-family: monospace; background: #0a0a14; padding: 25px; border-radius: 20px; border: 1px solid #1e1e3f;">
┌─────────────────────────────────────────────────────────────────┐
│ 📝 ورودی متنی (Text Input) │
└────────────────────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ ⚡ Embedding + RoPE │
│ جاسازی توکن + موقعیتیابی چرخشی │
│ (Rotary Position Embedding) │
└────────────────────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 🔷 ×۳۲ لایه دیکودر │
│ 32 Decoder Layers │
├─────────────────────────────────────────────────────────────────┤
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 🎯 Self-Attention (GQA با ۸ سر KV) │ │
│ │ Grouped Query Attention (4:1 ratio) │ │
│ │ • کاهش ۷۵٪ مصرف حافظه │ │
│ │ • حفظ کیفیت با اشتراکگذاری KV │ │
│ └───────────────────────────────────────────────────────────┘ │
│ ↓ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 🧮 Feed-Forward (SwiGLU) │ │
│ │ • تابع فعالسازی SiLU/Swish │ │
│ │ • بهبود ۲۰٪ در کیفیت خروجی │ │
│ │ • ۳ لایه خطی با گیتینگ هوشمند │ │
│ └───────────────────────────────────────────────────────────┘ │
│ ↓ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 📊 RMSNorm & Residual Connection │ │
│ │ • نرمالسازی پایدار │ │
│ │ • اتصال باقیمانده برای گرادیان بهتر │ │
│ └───────────────────────────────────────────────────────────┘ │
└────────────────────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 🎯 LM Head │
│ خروجی نهایی │
└────────────────────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 📄 خروجی متنی (Text Output) │
└─────────────────────────────────────────────────────────────────┘</div>
</div>
📐 مشخصات کامل پیکربندی
<div align="center">
<table style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); border-radius: 20px; padding: 20px; border: 1px solid #2d2d4a;"> <tr style="background: #1e1e3f;"> <th style="color: #a78bfa; padding: 15px;">دستهبندی</th> <th style="color: #a78bfa; padding: 15px;">پارامتر</th> <th style="color: #a78bfa; padding: 15px;">مقدار پیشفرض</th> <th style="color: #a78bfa; padding: 15px;">توضیح فنی</th> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🏗️ مدل</td> <td style="color: #e2e8f0; padding: 12px;">معماری</td> <td style="color: #34d399; padding: 12px;">Decoder-Only Transformer</td> <td style="color: #94a3b8; padding: 12px;">مدل تولید متن خودرگرسیو</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🏗️ مدل</td> <td style="color: #e2e8f0; padding: 12px;">vocabsize</td> <td style="color: #34d399; padding: 12px;">۳۲,۰۰۰</td> <td style="color: #94a3b8; padding: 12px;">اندازه واژهنامه (شامل ۸۰۰۰ توکن فارسی)</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🏗️ مدل</td> <td style="color: #e2e8f0; padding: 12px;">hiddensize</td> <td style="color: #34d399; padding: 12px;">۴,۰۹۶</td> <td style="color: #94a3b8; padding: 12px;">ابعاد نمایش پنهان</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🏗️ مدل</td> <td style="color: #e2e8f0; padding: 12px;">numhiddenlayers</td> <td style="color: #34d399; padding: 12px;">۳۲</td> <td style="color: #94a3b8; padding: 12px;">عمق شبکه (تعداد لایهها)</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🎯 توجه</td> <td style="color: #e2e8f0; padding: 12px;">numattentionheads</td> <td style="color: #60a5fa; padding: 12px;">۳۲</td> <td style="color: #94a3b8; padding: 12px;">تعداد سرهای Query</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🎯 توجه</td> <td style="color: #e2e8f0; padding: 12px;">numkeyvalueheads</td> <td style="color: #60a5fa; padding: 12px;">۸</td> <td style="color: #94a3b8; padding: 12px;">سرهای KV (نسبت GQA 4:1)</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🎯 توجه</td> <td style="color: #e2e8f0; padding: 12px;">attentionbias</td> <td style="color: #60a5fa; padding: 12px;">False</td> <td style="color: #94a3b8; padding: 12px;">بدون بایاس (بهینهتر)</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🧮 MLP</td> <td style="color: #e2e8f0; padding: 12px;">intermediatesize</td> <td style="color: #fbbf24; padding: 12px;">۱۱,۰۰۸</td> <td style="color: #94a3b8; padding: 12px;">ابعاد لایه میانی</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">🧮 MLP</td> <td style="color: #e2e8f0; padding: 12px;">hiddenact</td> <td style="color: #fbbf24; padding: 12px;">silu</td> <td style="color: #94a3b8; padding: 12px;">تابع فعالسازی Swish (SiLU)</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">📍 موقعیت</td> <td style="color: #e2e8f0; padding: 12px;">maxpositionembeddings</td> <td style="color: #f472b6; padding: 12px;">۲,۰۴۸</td> <td style="color: #94a3b8; padding: 12px;">حداکثر طول توالی</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">📍 موقعیت</td> <td style="color: #e2e8f0; padding: 12px;">ropetheta</td> <td style="color: #f472b6; padding: 12px;">۱۰,۰۰۰.۰</td> <td style="color: #94a3b8; padding: 12px;">پایه فرکانس RoPE</td> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"> <td style="color: #94a3b8; padding: 12px;">📍 موقعیت</td> <td style="color: #e2e8f0; padding: 12px;">ropescaling</td> <td style="color: #f472b6; padding: 12px;">پویا (dynamic)</td> <td style="color: #94a3b8; padding: 12px;">مقیاسدهی تطبیقی تا ۸ برابر</td> </tr> <tr> <td style="color: #94a3b8; padding: 12px;">📊 نرمالسازی</td> <td style="color: #e2e8f0; padding: 12px;">rmsnormeps</td> <td style="color: #34d399; padding: 12px;">1e-6</td> <td style="color: #94a3b8; padding: 12px;">اپسیلون RMSNorm</td> </tr> </table>
</div>
🔬 نوآوریهای پیادهسازی
<div align="center">
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 20px;"> <tr> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #8B5CF6, #7C3AED); padding: 30px; border-radius: 25px; color: white; height: 100%; box-shadow: 0 15px 35px rgba(139,92,246,0.3);"> <h3 style="color: white; font-size: 24px; margin-top: 0;">🎯 GQA</h3> <div style="font-size: 52px; margin: 15px 0; font-weight: bold;">۴:۱</div> <p style="font-size: 18px;">کاهش ۷۵٪ مصرف حافظه</p> <hr style="border: 1px solid rgba(255,255,255,0.3); margin: 20px 0;"> <p style="margin: 0; opacity: 0.9; font-size: 14px;">۳۲ سر Query • ۸ سر KV<br/>اشتراکگذاری هوشمند</p> </div>
</td> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #3B82F6, #2563EB); padding: 30px; border-radius: 25px; color: white; height: 100%; box-shadow: 0 15px 35px rgba(59,130,246,0.3);"> <h3 style="color: white; font-size: 24px; margin-top: 0;">🔄 RoPE</h3> <div style="font-size: 52px; margin: 15px 0; font-weight: bold;">۸x</div> <p style="font-size: 18px;">افزایش طول توالی</p> <hr style="border: 1px solid rgba(255,255,255,0.3); margin: 20px 0;"> <p style="margin: 0; opacity: 0.9; font-size: 14px;">مقیاسدهی پویا<br/>پنجره زمینه ۱۶۳۸۴ توکنی</p> </div>
</td> <td align="center" width="33%">
<div style="background: linear-gradient(145deg, #10B981, #059669); padding: 30px; border-radius: 25px; color: white; height: 100%; box-shadow: 0 15px 35px rgba(16,185,129,0.3);"> <h3 style="color: white; font-size: 24px; margin-top: 0;">🧠 SwiGLU</h3> <div style="font-size: 52px; margin: 15px 0; font-weight: bold;">۲۰٪</div> <p style="font-size: 18px;">بهبود کیفیت خروجی</p> <hr style="border: 1px solid rgba(255,255,255,0.3); margin: 20px 0;"> <p style="margin: 0; opacity: 0.9; font-size: 14px;">SiLU • گیتینگ دوگانه<br/>همگرایی سریعتر</p> </div>
</td> </tr> </table>
</div>
💻 شروع سریع (فقط ۱۰ خط کد)
<div align="center" style="background: linear-gradient(145deg, #0a0a14, #0d0d1a); padding: 35px; border-radius: 30px; color: white; border: 2px solid #8B5CF6;">
<h3 style="color: white; font-size: 26px; margin-top: 0;">🚀 نصب و اجرای فوری</h3>
# گام ۱: نصب کتابخانه
# pip install transformers torch accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer
# گام ۲: بارگذاری مدل (فقط ۳ خط!)
model_name = "your-username/yasin-model"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# گام ۳: استفاده از مدل
prompt = "داستان کوتاهی در مورد بهار بنویس"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=300,
temperature=0.7,
do_sample=True,
top_p=0.9
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))<div style="background: linear-gradient(145deg, #1a1a2e, #16213e); padding: 20px; border-radius: 16px; margin-top: 20px; border-right: 6px solid #8B5CF6;"> <p style="margin: 0; font-size: 16px; color: #cbd5e1;"><strong>📌 نکته:</strong> برای اولین بار، مدل به صورت خودکار دانلود میشود (~۱۵ گیگابایت). دفعات بعدی از کش استفاده میکند.</p> </div>
</div>
🛠️ پیکربندی برای سختافزارهای مختلف
<div align="center">
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 25px;"> <tr> <td width="50%" style="vertical-align: top;">
<div style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 30px; border-radius: 28px; color: white; border: 2px solid #3B82F6; box-shadow: 0 15px 35px rgba(59,130,246,0.2);">
<h3 align="center" style="color: #60a5fa; font-size: 22px; margin-top: 0;">📦 GPU 4GB (کممصرف)</h3>
from configuration_yasin import YasinConfig
config = YasinConfig(
# کاهش ابعاد اصلی
hidden_size=512,
num_hidden_layers=12,
num_attention_heads=8,
num_key_value_heads=2, # GQA فعال
intermediate_size=1408,
# تنظیمات توالی
max_position_embeddings=1024,
# بهینهسازی حافظه
use_cache=True,
_attn_implementation="sdpa",
)
model = YasinForCausalLM(config)<ul style="margin-top: 20px; list-style: none; padding-right: 0; font-size: 14px; color: #94a3b8;"> <li style="margin-bottom: 10px;">✅ <strong style="color: #60a5fa;">مصرف RAM:</strong> ~۳.۵ گیگابایت</li> <li style="margin-bottom: 10px;">✅ <strong style="color: #60a5fa;">سرعت:</strong> ۴۰-۵۰ توکن/ثانیه</li> <li style="margin-bottom: 10px;">✅ <strong style="color: #60a5fa;">مناسب:</strong> لپتاپ، GPUهای خانگی</li> </ul>
</div>
</td> <td width="50%" style="vertical-align: top;">
<div style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 30px; border-radius: 28px; color: white; border: 2px solid #8B5CF6; box-shadow: 0 15px 35px rgba(139,92,246,0.2);">
<h3 align="center" style="color: #a78bfa; font-size: 22px; margin-top: 0;">🚀 GPU 24GB+ (حداکثر کیفیت)</h3>
config = YasinConfig(
# ابعاد کامل
hidden_size=4096,
num_hidden_layers=40,
num_attention_heads=32,
num_key_value_heads=8,
intermediate_size=11008,
# توالی طولانی
max_position_embeddings=8192,
rope_theta=500000.0,
rope_scaling={"rope_type": "dynamic", "factor": 4.0},
# حداکثر سرعت
_attn_implementation="flash_attention_2",
use_cache=True,
)<ul style="margin-top: 20px; list-style: none; padding-right: 0; font-size: 14px; color: #94a3b8;"> <li style="margin-bottom: 10px;">🔥 <strong style="color: #a78bfa;">مصرف RAM:</strong> ~۲۰ گیگابایت</li> <li style="margin-bottom: 10px;">🔥 <strong style="color: #a78bfa;">سرعت:</strong> ۸۰-۱۰۰ توکن/ثانیه</li> <li style="margin-bottom: 10px;">🔥 <strong style="color: #a78bfa;">مناسب:</strong> سرورها، A100، H100</li> </ul>
</div>
</td> </tr> </table>
</div>
⚡ بهینهسازی بیشتر
<div align="center">
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 20px;"> <tr> <td width="33%">
<div style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a;">
<h4 align="center" style="color: #e2e8f0;">💾 8-bit Quantization</h4>
model = AutoModelForCausalLM.from_pretrained(
model_name,
load_in_8bit=True,
device_map="auto"
)<p align="center" style="color: #34d399; margin-top: 15px; font-weight: bold;">✓ کاهش ۵۰٪ حافظه</p>
</div>
</td> <td width="33%">
<div style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a;">
<h4 align="center" style="color: #e2e8f0;">🔄 4-bit Quantization</h4>
model = AutoModelForCausalLM.from_pretrained(
model_name,
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.float16
)<p align="center" style="color: #34d399; margin-top: 15px; font-weight: bold;">✓ کاهش ۷۵٪ حافظه</p>
</div>
</td> <td width="33%">
<div style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 25px; border-radius: 20px; border: 1px solid #2d2d4a;">
<h4 align="center" style="color: #e2e8f0;">🧠 Gradient Checkpointing</h4>
# برای آموزش با حافظه محدود
model.gradient_checkpointing_enable()
model.config.use_cache = False<p align="center" style="color: #34d399; margin-top: 15px; font-weight: bold;">✓ کاهش ۴۰٪ حافظه</p>
</div>
</td> </tr> </table>
</div>
📈 نتایج آموزش و ارزیابی
<div align="center" style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 35px; border-radius: 30px; border: 1px solid #2d2d4a;">
<h3 style="font-size: 28px; color: #e2e8f0; margin-top: 0;">📉 روند کاهش Loss</h3>
<table style="width: 100%; border: 1px solid #2d2d4a; border-radius: 15px;"> <tr style="background: #1e1e3f;"> <th style="color: #a78bfa; padding: 15px;">گام</th> <th style="color: #a78bfa; padding: 15px;">Training Loss</th> <th style="color: #a78bfa; padding: 15px;">Perplexity</th> <th style="color: #a78bfa; padding: 15px;">کاهش نسبی</th> <th style="color: #a78bfa; padding: 15px;">زمان آموزش</th> </tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۱۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۴.۸۷۱۶</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱۳۰.۵</td><td style="color: #94a3b8; padding: 12px; text-align: center;">پایه</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۲ دقیقه</td></tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۵۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۸۱۲۶</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۶.۱۱</td><td style="color: #34d399; padding: 12px; text-align: center;">۶۲.۸٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۱۰ دقیقه</td></tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۱۰۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۶۰۱۸</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۴.۹۵</td><td style="color: #34d399; padding: 12px; text-align: center;">۶۷.۱٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۲۰ دقیقه</td></tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۲۰۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۵۱۴۵</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۴.۵۳</td><td style="color: #34d399; padding: 12px; text-align: center;">۶۸.۹٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۴۰ دقیقه</td></tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۳۰۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۴۰۱۱</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۴.۰۶</td><td style="color: #34d399; padding: 12px; text-align: center;">۷۱.۲٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۶۰ دقیقه</td></tr> <tr style="border-bottom: 1px solid #2d2d4a;"><td style="color: #94a3b8; padding: 12px; text-align: center;">۴۰۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۲۸۹۶</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۳.۶۳</td><td style="color: #34d399; padding: 12px; text-align: center;">۷۳.۵٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۸۰ دقیقه</td></tr> <tr><td style="color: #94a3b8; padding: 12px; text-align: center;">۵۰۰۰</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۱.۲۸۹۶</td><td style="color: #e2e8f0; padding: 12px; text-align: center;">۳.۶۳</td><td style="color: #34d399; padding: 12px; text-align: center;">۷۳.۵٪</td><td style="color: #94a3b8; padding: 12px; text-align: center;">۱۰۰ دقیقه</td></tr> </table>
<div style="background: linear-gradient(90deg, #8B5CF6, #3B82F6); padding: 30px; border-radius: 20px; margin-top: 30px; color: white;">
<h4 align="center" style="color: white; font-size: 22px; margin-top: 0;">🏆 مقایسه با سایر مدلها</h4>
<table style="width: 100%; border: none; color: white;"> <tr> <td align="center" width="25%"> <div style="font-size: 36px; margin-bottom: 10px;">📊</div> <div style="font-weight: bold;">Perplexity</div> <div style="font-size: 28px; margin-top: 10px; font-weight: bold; color: #fbbf24;">۳.۶۳</div> <div style="font-size: 14px; opacity: 0.9;">یاسین</div> <hr style="border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 20px;">۴.۸۱</div> <div style="font-size: 14px; opacity: 0.9;">سایر مدلها</div> </td> <td align="center" width="25%"> <div style="font-size: 36px; margin-bottom: 10px;">⚡</div> <div style="font-weight: bold;">سرعت استنتاج</div> <div style="font-size: 28px; margin-top: 10px; font-weight: bold; color: #fbbf24;">۸۵</div> <div style="font-size: 14px; opacity: 0.9;">توکن/ثانیه</div> <hr style="border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 20px;">۵۲</div> <div style="font-size: 14px; opacity: 0.9;">سایر مدلها</div> </td> <td align="center" width="25%"> <div style="font-size: 36px; margin-bottom: 10px;">💾</div> <div style="font-weight: bold;">مصرف حافظه</div> <div style="font-size: 28px; margin-top: 10px; font-weight: bold; color: #fbbf24;">۷.۲</div> <div style="font-size: 14px; opacity: 0.9;">گیگابایت</div> <hr style="border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 20px;">۲۴.۰</div> <div style="font-size: 14px; opacity: 0.9;">سایر مدلها</div> </td> <td align="center" width="25%"> <div style="font-size: 36px; margin-bottom: 10px;">🎯</div> <div style="font-weight: bold;">دقت فارسی</div> <div style="font-size: 28px; margin-top: 10px; font-weight: bold; color: #fbbf24;">۹۴٪</div> <div style="font-size: 14px; opacity: 0.9;">یاسین</div> <hr style="border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 20px;">۷۸٪</div> <div style="font-size: 14px; opacity: 0.9;">سایر مدلها</div> </td> </tr> </table>
</div>
</div>
🎓 فاینتیون
<div align="center" style="background: linear-gradient(145deg, #1a1a2e, #16213e); padding: 35px; border-radius: 30px; border: 2px solid #8B5CF6;">
<h3 style="font-size: 26px; color: #a78bfa; margin-top: 0;">📚 آموزش مدل روی دیتاست دلخواه</h3>
from transformers import Trainer, TrainingArguments
from datasets import load_dataset
# ۱. بارگذاری دیتاست فارسی
dataset = load_dataset("text", data_files={"train": "my_persian_texts.txt"})
# ۲. تنظیم پارامترهای آموزش
training_args = TrainingArguments(
output_dir="./yasin-finetuned",
num_train_epochs=3,
per_device_train_batch_size=4,
gradient_accumulation_steps=4,
save_steps=500,
logging_steps=50,
learning_rate=2e-5,
warmup_ratio=0.03,
fp16=True, # آموزش با دقت نیمه
gradient_checkpointing=True,
)
# ۳. شروع آموزش
trainer = Trainer(
model=model,
args=training_args,
train_dataset=dataset["train"],
)
trainer.train()</div>
🤝 چگونه مشارکت کنم؟
<div align="center" style="background: linear-gradient(145deg, #8B5CF6, #7C3AED); padding: 45px; border-radius: 40px; color: white; box-shadow: 0 20px 50px rgba(139,92,246,0.3);">
<h2 style="color: white; font-size: 36px; margin-top: 0;">⭐ به خانواده هوش مصنوعی فیبوناچی بپیوندید!</h2>
<p style="font-size: 18px; line-height: 1.8; margin-bottom: 30px;"> ما به مشارکتکنندگان علاقهمند در تمام سطوح خوشامد میگوییم.<br/> فرقی نمیکند برنامهنویس هستید یا نه، هر کمکی ارزشمند است! </p>
<table style="border: none; border-collapse: separate; border-spacing: 20px;"> <tr> <td align="center">
<div style="background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 30px; border-radius: 28px; width: 160px; border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 48px;">⭐</div> <h3 style="color: white; font-size: 20px;">ستاره دادن</h3> <p style="color: white; opacity: 0.9; font-size: 14px;">سادهترین راه برای حمایت</p> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 30px; border-radius: 28px; width: 160px; border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 48px;">🐛</div> <h3 style="color: white; font-size: 20px;">گزارش باگ</h3> <p style="color: white; opacity: 0.9; font-size: 14px;">در GitHub Issues گزارش دهید</p> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 30px; border-radius: 28px; width: 160px; border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 48px;">📝</div> <h3 style="color: white; font-size: 20px;">مستندات</h3> <p style="color: white; opacity: 0.9; font-size: 14px;">بهبود و تکمیل راهنماها</p> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 30px; border-radius: 28px; width: 160px; border: 1px solid rgba(255,255,255,0.3);"> <div style="font-size: 48px;">💡</div> <h3 style="color: white; font-size: 20px;">ایده جدید</h3> <p style="color: white; opacity: 0.9; font-size: 14px;">پیشنهاد ویژگیهای جدید</p> </div>
</td> </tr> </table>
</div>
📜 مجوز و شرایط استفاده
<div align="center" style="background: linear-gradient(145deg, #0d0d1a, #1a1a2e); padding: 35px; border-radius: 30px; border: 1px solid #2d2d4a;">
<table style="width: 100%; border: none;"> <tr> <td align="center" width="15%"> <div style="font-size: 48px;">📄</div> </td> <td align="right" width="85%"> <h3 style="margin: 0; color: #e2e8f0; font-size: 26px;">مجوز Apache 2.0</h3> <p style="margin: 5px 0 0 0; color: #94a3b8;">آزاد برای استفاده تجاری و غیرتجاری</p> </td> </tr> </table>
<table style="width: 100%; border: none; border-collapse: separate; border-spacing: 20px; margin-top: 20px;"> <tr> <td width="50%">
<div style="background: linear-gradient(145deg, #0d1a0d, #0a140a); padding: 25px; border-radius: 20px; border: 2px solid #22c55e;"> <h4 style="color: #34d399; margin-top: 0; font-size: 20px;">✅ مجاز</h4> <ul style="list-style: none; padding-right: 0; margin-bottom: 0; font-size: 15px; color: #94a3b8;"> <li style="margin-bottom: 12px;">✓ استفاده تجاری آزاد</li> <li style="margin-bottom: 12px;">✓ توزیع و تغییر</li> <li style="margin-bottom: 12px;">✓ استفاده شخصی</li> <li style="margin-bottom: 12px;">✓ استفاده در پروژههای تجاری</li> </ul> </div>
</td> <td width="50%">
<div style="background: linear-gradient(145deg, #1a0d0d, #140a0a); padding: 25px; border-radius: 20px; border: 2px solid #ef4444;"> <h4 style="color: #f87171; margin-top: 0; font-size: 20px;">❌ غیرمجاز</h4> <ul style="list-style: none; padding-right: 0; margin-bottom: 0; font-size: 15px; color: #94a3b8;"> <li style="margin-bottom: 12px;">✗ ادعای مالکیت مدل</li> <li style="margin-bottom: 12px;">✗ حذف کپیرایت</li> <li style="margin-bottom: 12px;">✗ مسئولیت خروجیها با کاربر است</li> <li style="margin-bottom: 12px;">✗ بدون تضمین عملکرد</li> </ul> </div>
</td> </tr> </table>
</div>
👥 تیم توسعه و قدردانی
<div align="center">
✨ تیم فیبوناچی | Fibonacci Team ✨
<br>
<div align="center"> <img src="https://img.shields.io/badge/AI-Persian%20LLM-blue?style=for-the-badge&logo=openai&logoColor=white&labelColor=6A0DAD&color=9370DB" alt="AI Persian LLM" /> <img src="https://img.shields.io/badge/Open%20Source-Multilingual-green?style=for-the-badge&logo=github&logoColor=white&labelColor=228B22&color=32CD32" alt="Open Source" /> <img src="https://img.shields.io/badge/Team-Family%20First-orange?style=for-the-badge&logo=heart&logoColor=white&labelColor=FF4500&color=FF6347" alt="Team" /> </div>
<br>
<p align="center" style="font-size: 1.2em; line-height: 1.6;"> <b>ما در فیبوناچی، خانوادهای از متخصصان خلاق و پیشرو هستیم<br> : که با یک هدف مشترک گرد هم آمدهایم<br> . پیشرفت صنعت هوش مصنوعی در ایران</b> </p>
<br>
👥 اعضای تیم | Meet the Team
<br>
<div align="center" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto;">
<!-- امیرحسین مهردوست --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">🚀</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">امیرحسین مهردوست</h3> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>بنیانگذار</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 0.85em;">Founder</p> </div>
<!-- ساناز ذوقی --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">👩💼</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">ساناز ذوقی</h3> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>مدیرعامل</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 0.85em;">CEO</p> </div>
<!-- ارسان جاهد تبریزی --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">🌐</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">ارسان جاهد تبریزی</h3> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>مدیر ارتباطات بینالملل</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 0.85em;">International Relations</p> </div>
<!-- علیرضا یعقوبی --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">💻</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">علیرضا یعقوبی</h3> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>برنامهنویس وب</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 0.85em;">Web Developer</p> </div>
<!-- یاسین آریان فرد --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #96e6a1 0%, #d4fc79 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">🧠</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">یاسین آریان فرد</h3> <h4 style="margin: 10px 0 5px; color: #666;">YSNRFD</h4> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>متخصص مدلهای زبانی</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 1em;">LLM Specialist</p> </div>
<!-- علیرضا جهان تیغ --> <div align="center" style="background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 25px 15px; margin: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;"> <div style="width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;"> <span style="font-size: 3em; color: white;">📱</span> </div> <h3 style="margin: 10px 0 5px; color: #333;">علیرضا جهان تیغ</h3> <p style="margin: 0; color: #666; font-size: 0.95em;"><b>برنامهنویس موبایل</b></p> <p style="margin: 5px 0 0; color: #888; font-size: 0.85em;">Mobile Developer</p> </div>
</div>
<br>
🚀 به ما بپیوندید | Join Us
<br>
<div align="center" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 30px; padding: 40px 20px; margin: 30px 0; color: white; box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);">
<h2 style="color: white; font-size: 2.5em; margin-bottom: 15px;">✨ شما هم میتوانید ✨</h2>
<p style="font-size: 1.3em; max-width: 800px; margin: 20px auto; line-height: 1.8;"> اگر خلاق هستید و انگیزه کافی برای رسیدن به اهداف غیر ممکن<br> و همراهی پیشروان صنعت هوش مصنوعی ایران را دارید... </p>
<br>
<a href="https://fibonacci.monster/team/" target="_blank" style="display: inline-block; background: white; color: #667eea; padding: 18px 45px; border-radius: 50px; font-size: 1.3em; font-weight: bold; text-decoration: none; margin: 20px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: all 0.3s ease;"> 🌟 به خانواده فیبوناچی بپیوندید 🌟 </a>
<br>
<p style="font-size: 1.2em; margin-top: 25px;"> بیایید با هم، ناممکنها را ممکن سازیم </p>
</div>
<br>
</div>
<div style="background: linear-gradient(145deg, #1a1a2e, #16213e); padding: 35px; border-radius: 28px; margin-top: 30px; border: 1px solid #2d2d4a;">
<h3 style="font-size: 26px; color: #e2e8f0; margin-top: 0;">🙏 سپاسگزاری</h3>
<table style="width: 100%; border: none; text-align: right;"> <tr> <td width="50%"> <ul style="list-style: none; padding-right: 0; font-size: 17px; color: #94a3b8;"> <li style="margin-bottom: 15px;">🤗 جامعه Hugging Face</li> <li style="margin-bottom: 15px;">🔥 تیم PyTorch</li> <li style="margin-bottom: 15px;">🦙 پژوهشگران Meta LLaMA</li> </ul> </td> <td width="50%"> <ul style="list-style: none; padding-right: 0; font-size: 17px; color: #94a3b8;"> <li style="margin-bottom: 15px;">🌪️ تیم Mistral AI</li> <li style="margin-bottom: 15px;">🧠 تیم Google DeepMind</li> <li style="margin-bottom: 15px;">🇮🇷 جامعه فارسیزبان هوش مصنوعی</li> </ul> </td> </tr> </table>
</div>
</div>
📬 ارتباط با ما
<div align="center" style="background: linear-gradient(135deg, #1e293b, #0f172a); padding: 45px; border-radius: 40px; color: white;">
<h2 style="color: white; font-size: 36px; margin-top: 0;">🚀 آماده شروع هستید؟</h2>
<table style="border: none; border-collapse: separate; border-spacing: 20px; margin: 30px 0;"> <tr> <td align="center">
<div style="background: rgba(255,255,255,0.1); padding: 25px; border-radius: 25px; width: 150px;"> <div style="font-size: 32px; margin-bottom: 10px;">📧</div> <strong style="font-size: 16px;">ایمیل</strong><br/> <span style="opacity: 0.9; font-size: 14px;">info@RealRobot.ir</span> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.1); padding: 25px; border-radius: 25px; width: 150px;"> <div style="font-size: 32px; margin-bottom: 10px;">📷</div> <strong style="font-size: 16px;">اینستاگرام</strong><br/> <span style="opacity: 0.9; font-size: 14px;">@Fibonacci.ai</span> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.1); padding: 25px; border-radius: 25px; width: 150px;"> <div style="font-size: 32px; margin-bottom: 10px;">💬</div> <strong style="font-size: 16px;">تلگرام</strong><br/> <span style="opacity: 0.9; font-size: 14px;">T.ME/FibonacciAi</span> </div>
</td> <td align="center">
<div style="background: rgba(255,255,255,0.1); padding: 25px; border-radius: 25px; width: 150px;"> <div style="font-size: 32px; margin-bottom: 10px;">🤗</div> <strong style="font-size: 16px;">Hugging Face</strong><br/> <span style="opacity: 0.9; font-size: 14px;">/fibonacciai/Iran-v1</span> </div>
</td> </tr> </table>
<div style="background: linear-gradient(145deg, #1a1e2c, #2d3748); padding: 30px; border-radius: 28px; border-bottom: 6px solid #8B5CF6; margin-top: 20px;">
<h3 style="color: white; font-size: 24px; margin-top: 0;">☕ از هوش مصنوعی ایران حمایت کن</h3>
<p style="color: #e2e8f0; font-size: 16px; margin-bottom: 25px;"> با یک فنجان قهوه، به توسعه مدل زبانی فارسی ایران کمک کن! </p>
<a href="https://coffeebede.com/realrobot" target="_blank" rel="noopener noreferrer" style="display: inline-block; background: linear-gradient(90deg, #8B5CF6, #7C3AED); color: white; padding: 16px 40px; border-radius: 50px; font-size: 20px; font-weight: bold; text-decoration: none; box-shadow: 0 8px 20px rgba(139,92,246,0.3);"> ☕ قهوه بده ☕ </a>
<p style="color: #94a3b8; font-size: 14px; margin-top: 20px;"> لینک مستقیم: coffeebede.com/realrobot </p>
</div>
<hr style="border: 1px solid rgba(255,255,255,0.2); margin: 40px 0;">
<p style="font-size: 22px; font-weight: bold; margin: 20px 0;">⭐ از حمایت شما سپاسگزاریم ⭐</p>
<p style="font-size: 18px; margin: 20px 0;"> توسط تیم جوان فیبوناچی ای آی ساخته شده با عشق ❤️ برای زبان فارسی 🇮🇷 </p>
<p style="font-size: 14px; opacity: 0.8; margin-top: 30px;"> © 2018-2026 هوش مصنوعی فیبوناچی. تمامی حقوق برای شرکت رئال ربات محفوظ است. </p>
</div>
