Fine-Tuning Basics · Course lab · about 180 minutes · 6 tasks · marked out of 100, pass at 60
Decide honestly whether a business needs fine-tuning, and prove it
The situation
An online clothing store in Lahore wants a model that writes product descriptions in its own style: short, warm, mixing a few Urdu words, always mentioning fabric and care. A vendor has quoted them for fine-tuning. The owner wants to know first whether a good prompt could do the same job for nothing.
Try the cheap way properly, prepare data as if you would fine-tune, and decide on evidence. If you have access to a fine-tuning tool, run it; if not, complete every step up to training and the evaluation plan.
What you'll be able to show
- Rule out fine-tuning first by improving the prompt with examples
- Prepare consistent training data and hold back a test set
- Compare models fairly on the same test set and the same prompt
- Make a cost-and-maintenance decision the owner can follow
What you need
- Any AI assistant for the prompt baseline
- A spreadsheet for the dataset
- Optional: a fine-tuning service (for example OpenAI fine-tuning or a hosted open model) if you have access
Tasks
-
1Write the target style down
Write ten product descriptions by hand in the store's style (invented products are fine). Then write the style as five rules a stranger could follow.A correct result: Ten descriptions and a five-rule style guide. -
2Try the prompt first
Build a prompt with the five rules and three of your examples. Generate descriptions for ten new products. Score each against the five rules (1 point per rule met).A correct result: Ten generated descriptions with scores and an average out of 5. -
3Prepare the dataset
Write or collect at least 50 input-output pairs (product facts in, description out). Check twenty at random for consistency with the style guide and fix any that break it.A correct result: A dataset of at least 50 pairs and a note of the inconsistencies you fixed. -
4Hold back a test set
Set aside 20 percent of the pairs as a test set before any training. Never use these in the prompt or in training.A correct result: Two files, training and test, with the counts. -
5Compare fairly
Run the test set through the prompt-only approach and, if available, the fine-tuned model, using the same instructions. Score both with the same five-rule rubric.A correct result: A comparison table of average scores. If no fine-tuning access, the prompt score and a written evaluation plan instead. -
6Decide
Write a half-page recommendation for the owner: which approach, the cost of each (training fees, per-use cost, time), how often it would need redoing as base models improve, and the date to re-check.A correct result: A clear recommendation with costs and a re-check date.
What to hand in
The style guide, the prompt baseline with scores, the dataset split into training and test, the comparison (or evaluation plan), and the recommendation.
How it is marked
| Criterion | Points |
|---|---|
| Style written as rules a stranger can apply | 15 |
| Prompt baseline tried properly and scored | 20 |
| Dataset consistent with inconsistencies fixed | 20 |
| Test set held back and comparison done fairly | 25 |
| Recommendation weighs cost, maintenance and a re-check date | 20 |
| Total · pass at 60 | 100 |
صورتحال
لاہور کا ایک آن لائن کپڑوں کا اسٹور ایسا ماڈل چاہتا ہے جو اس کے اپنے انداز میں پروڈکٹ کی تفصیلات لکھے: مختصر، گرم جوش، چند اردو الفاظ ملا کر، ہمیشہ کپڑے اور دیکھ بھال کا ذکر۔ ایک وینڈر نے فائن ٹیوننگ کی قیمت بتائی ہے۔ مالک پہلے جاننا چاہتا ہے کہ کیا ایک اچھا پرامپٹ یہی کام مفت کر سکتا ہے۔
سستا طریقہ ٹھیک سے آزمائیں، ڈیٹا ایسے تیار کریں جیسے فائن ٹیون کریں گے، اور ثبوت پر فیصلہ کریں۔ اگر آپ کے پاس فائن ٹیوننگ ٹول ہے تو اسے چلائیں؛ اگر نہیں تو تربیت اور جانچ کے منصوبے تک ہر قدم مکمل کریں۔
آپ کیا دکھا سکیں گے
- پہلے مثالوں کے ساتھ پرامپٹ بہتر کر کے فائن ٹیوننگ کو رد کرنا
- یکساں تربیتی ڈیٹا تیار کرنا اور ٹیسٹ سیٹ الگ رکھنا
- ایک ہی ٹیسٹ سیٹ اور ایک ہی پرامپٹ پر ماڈلز کا منصفانہ موازنہ کرنا
- لاگت اور دیکھ بھال کا ایسا فیصلہ کرنا جس پر مالک عمل کر سکے
آپ کو کیا چاہیے
- پرامپٹ کی بنیاد کے لیے کوئی بھی AI معاون
- ڈیٹاسیٹ کے لیے اسپریڈشیٹ
- اختیاری: اگر رسائی ہو تو فائن ٹیوننگ سروس (مثلاً OpenAI فائن ٹیوننگ یا ہوسٹڈ اوپن ماڈل)
کام
-
1مطلوبہ انداز لکھیں
اسٹور کے انداز میں ہاتھ سے دس پروڈکٹ تفصیلات لکھیں (فرضی پروڈکٹس ٹھیک ہیں)۔ پھر انداز کو پانچ ایسے اصولوں میں لکھیں جن پر اجنبی عمل کر سکے۔درست نتیجہ: دس تفصیلات اور پانچ اصولوں کی انداز کی رہنمائی۔ -
2پہلے پرامپٹ آزمائیں
پانچ اصولوں اور اپنی تین مثالوں کے ساتھ پرامپٹ بنائیں۔ دس نئی پروڈکٹس کی تفصیلات بنائیں۔ ہر ایک کو پانچ اصولوں کے مقابلے میں نمبر دیں (ہر پورے اصول کا 1 نمبر)۔درست نتیجہ: دس بنائی گئی تفصیلات نمبروں کے ساتھ اور 5 میں سے اوسط۔ -
3ڈیٹاسیٹ تیار کریں
کم از کم 50 ان پٹ آؤٹ پٹ جوڑے لکھیں یا جمع کریں (پروڈکٹ کے حقائق اندر، تفصیل باہر)۔ بیس بے ترتیب جوڑے انداز کی رہنمائی سے یکسانیت کے لیے جانچیں اور جو توڑیں انہیں ٹھیک کریں۔درست نتیجہ: کم از کم 50 جوڑوں کا ڈیٹاسیٹ اور ٹھیک کی گئی بے ترتیبیوں کا نوٹ۔ -
4ٹیسٹ سیٹ الگ رکھیں
کسی بھی تربیت سے پہلے 20 فیصد جوڑے ٹیسٹ سیٹ کے طور پر الگ کریں۔ انہیں کبھی پرامپٹ یا تربیت میں استعمال نہ کریں۔درست نتیجہ: دو فائلیں، تربیت اور ٹیسٹ، گنتی کے ساتھ۔ -
5منصفانہ موازنہ
ٹیسٹ سیٹ کو صرف پرامپٹ والے طریقے سے اور، اگر دستیاب ہو تو، فائن ٹیونڈ ماڈل سے چلائیں، ایک ہی ہدایات کے ساتھ۔ دونوں کو ایک ہی پانچ اصولوں کی rubric سے نمبر دیں۔درست نتیجہ: اوسط نمبروں کی موازنہ جدول۔ اگر فائن ٹیوننگ تک رسائی نہیں تو پرامپٹ کے نمبر اور اس کے بجائے لکھا ہوا جانچ کا منصوبہ۔ -
6فیصلہ کریں
مالک کے لیے آدھے صفحے کی سفارش لکھیں: کون سا طریقہ، ہر ایک کی لاگت (تربیت کی فیس، فی استعمال لاگت، وقت)، بنیادی ماڈلز بہتر ہونے کے ساتھ اسے کتنی بار دوبارہ کرنا پڑے گا، اور دوبارہ جانچ کی تاریخ۔درست نتیجہ: لاگت اور دوبارہ جانچ کی تاریخ کے ساتھ واضح سفارش۔
کیا جمع کروانا ہے
انداز کی رہنمائی، نمبروں کے ساتھ پرامپٹ کی بنیاد، تربیت اور ٹیسٹ میں بٹا ڈیٹاسیٹ، موازنہ (یا جانچ کا منصوبہ)، اور سفارش۔
نمبر کیسے ملیں گے
| معیار | نمبر |
|---|---|
| انداز ایسے اصولوں میں لکھا گیا جو اجنبی لاگو کر سکے | 15 |
| پرامپٹ کی بنیاد ٹھیک سے آزمائی گئی اور نمبر دیے گئے | 20 |
| ڈیٹاسیٹ یکساں ہے اور بے ترتیبیاں ٹھیک ہوئیں | 20 |
| ٹیسٹ سیٹ الگ رکھا گیا اور موازنہ منصفانہ ہوا | 25 |
| سفارش لاگت، دیکھ بھال اور دوبارہ جانچ کی تاریخ کو تولتی ہے | 20 |
| کل · پاس 60 | 100 |
Hand in your lab
Create a free BvLogic ID to hand in your lab, get it marked, and have it on your certificate.
Create your BvLogic IDAlready have one? Sign in and this course will be added to it.