मुख्य सामग्री पर जाएं
प्रशिक्षण मार्गदर्शिका के अध्याय सभी दस्तावेज़

मॉडल ट्रेनिंग ट्यूटोरियल और पूरे उदाहरण

जर्मन, वर्गीकरण, अनुवाद, निजी डेटा, होस्टिंग, Colab, कई GPU और एक्सपोर्ट के लिए SDK उदाहरण।

प्रशिक्षण मार्गदर्शिका के अध्याय

हर भाषा में कमांड और कोड अंग्रेज़ी में ही रहेंगे। बड़े अक्षरों वाले प्लेसहोल्डर को अपने खाते और भुगतान किए गए कार्य के मानों से बदलें; साझा नोटबुक या लॉग में असली कुंजियाँ न डालें।

ट्रेनिंग की पूरी रेसिपी बनाएँ

अच्छे उदाहरण में सिर्फ़ प्रॉम्प्ट नहीं, डेटा, कंप्यूट और स्वीकृति भी शामिल होते हैं।
  1. काम भाषा या कारोबार का लक्ष्य
  2. इनपुट ट्रेनिंग, वैलिडेशन और छिपा टेस्ट
  3. रनटाइम संगत कंप्यूट और स्टोरेज
  4. नतीजे स्वीकृत मानदंड और मान्य आउटपुट

काम: भाषा या कारोबार का लक्ष्य. इनपुट: ट्रेनिंग, वैलिडेशन और छिपा टेस्ट. रनटाइम: संगत कंप्यूट और स्टोरेज. नतीजे: स्वीकृत मानदंड और मान्य आउटपुट

जर्मन के लिए स्वतंत्र मॉडल ट्रेन करें

कॉन्फ़िगरेशन वाले अध्याय का पूरा ऑटोमैटिक कॉन्फ़िगरेशन लेकर शुरू करें। एक प्रोजेक्ट फ़ोल्डर बनाएँ, जिसमें संगत विद्यार्थी मॉडल, जाँची हुई ट्रेनिंग सामग्री, अलग वैलिडेशन और अंतिम टेस्ट डेटा तथा जर्मन रूब्रिक हों। सेवा-प्रदाता की योजना में शामिल संदर्भ मॉडल चुनें। SDK को ज़रूरी शुरुआती ज्ञान और विषय सुझाने, आधार-मूल्य तय करने और स्वीकृत बजट के भीतर मॉडल सुधारने चाहिए।

  • नीचे JSON में डेटा का प्रारूप अंग्रेज़ी में है; असली फ़ाइलों में अपनी जाँची हुई जर्मन सामग्री रखें, हर पंक्ति में एक ऑब्जेक्ट।
  • चलने योग्य प्रोजेक्ट फ़ाइल के लिए पूरा ऑटोमैटिक कॉन्फ़िगरेशन लें, अधूरा उदाहरण नहीं।
  • समझ, लेखन, अनुवाद और तर्क अलग-अलग मापें। छोटे विद्यार्थी मॉडल के हर काम में शिक्षक के बराबर होने की गारंटी नहीं है।
उदाहरण · jsonl
{"text":"Customer: My invoice total is incorrect. Category: billing"}
{"text":"Customer: I cannot sign in. Category: account_access"}
{"text":"Customer: The application closes when I upload a file. Category: technical_issue"}
उदाहरण · bash
# Full Automatic German-language workflow.
# 1. Put a compatible local model in german-project/models/student/.
# 2. Save the complete project configuration as german-project/training.json.
# 3. Add independent train/validation/test files and the reviewed german rubric.
# 4. Replace provider/reference placeholders using your included model catalogue.
fpai-training doctor --config ./german-project/training.json
fpai-training plan --config ./german-project/training.json --dry-run
# The plan must break the objective into prerequisites and measurable topics.
fpai-training run --config ./german-project/training.json
fpai-training evaluate --run ./german-project/runs/german-001 --split test
fpai-training export --run ./german-project/runs/german-001 --format safetensors
# Evaluate comprehension, writing, translation and reasoning separately.
# A passed classifier does not prove all German-language capabilities.

प्रोजेक्ट को व्यावसायिक काम के अनुसार ढालें

नीचे JSON में कॉन्फ़िगरेशन के कुछ हिस्से हैं, पूरी प्रोजेक्ट फ़ाइलें नहीं। पूरा ऑटोमैटिक या एडवांस्ड कॉन्फ़िगरेशन लेकर बताए गए हिस्सों को बदलें। पहचान, मॉडल, शिक्षक, रनटाइम और बजट की सीमाएँ जस की तस रखें, फिर पूरी फ़ाइल जाँचें। वर्गीकरण और अनुवाद के लिए अलग विषय, डेटा और स्वीकृति के मानदंड चाहिए।

  • सहायता अनुरोधों के वर्गीकरण में हर वर्ग की शुद्धता और रिकॉल, macro F1, वर्गों का संतुलन और अस्पष्ट मामलों की रिपोर्ट दें।
  • अनुवाद के लिए अलग द्विभाषी उदाहरणों से अर्थ, शब्दावली, नाम, संख्याएँ और लहजा जाँचें।
  • जब teacher_sharing का मान none हो, तो ग्राहक के रिकॉर्ड स्थानीय रहते हैं। साझा करने की मनाही के कारण लक्ष्य हासिल न हो सके, तो डेटा भेजने के बजाय कारण बताकर रुकें।
उदाहरण · json
{
  "schema_version": "1.0", "mode": "automatic",
  "objective": "Classify support messages into billing, account_access or technical_issue.",
  "model": {"path": "./models/student", "adapter": "transformers-causal-lm", "revision": null},
  "teacher": {"provider": "openai", "reference_model_id": 123},
  "data": {"sources": ["./data/train.jsonl"], "teacher_sharing": "none", "validation_path": "./data/validation.jsonl", "test_path": "./data/test.jsonl", "deduplicate": true, "seed": 42},
  "runtime": {"target": "customer_datacenter", "devices": "auto", "distributed": {"backend": "none", "nodes": 1}},
  "training": {"method": "auto"},
  "curriculum": {"topics": ["intent", "ambiguous_requests", "class_balance"], "max_improvement_cycles": 3, "stop_on_regression": true},
  "budgets": {"max_training_minutes": 120, "max_teacher_requests": 100, "max_storage_gib": 20},
  "checkpoints": {"every_steps": 100, "keep_last": 3, "resume_validation": "strict"},
  "evaluation": {"rubric": "./rubric.json", "baseline_required": true},
  "output": {"directory": "./runs/support-001", "format": "adapters"}
}
उदाहरण · json
{
  "objective": "Translate English support replies into German while preserving names, numbers and meaning.",
  "curriculum": {"topics": ["terminology", "meaning", "names_and_numbers", "tone"], "max_improvement_cycles": 3, "stop_on_regression": true},
  "evaluation": {"rubric": "./rubrics/translation.json", "baseline_required": true},
  "data": {"sources": ["./data/translation-train.jsonl"], "validation_path": "./data/translation-validation.jsonl", "test_path": "./data/translation-test.jsonl", "teacher_sharing": "approved_only"},
  "output": {"directory": "./runs/translation-001", "format": "safetensors"}
}
उदाहरण · jsonl
{"prompt":"My invoice total is wrong. Which category applies?","target":"billing","criterion":"support_category"}
{"prompt":"I cannot sign in. Which category applies?","target":"account_access","criterion":"support_category"}
उदाहरण · json
{
  "schema_version": "1.0",
  "name": "support-category-evaluation",
  "scale": {"minimum": 0, "maximum": 1},
  "criteria": [
    {"id": "support_category", "description": "Match the expected category.", "metric": "macro_f1", "minimum_score": 0.85}
  ],
  "regression": {"maximum_score_drop": 0.02},
  "final_test": {"path": "./data/test.jsonl", "allow_training_use": false}
}

उचित कंप्यूट चुनें और आउटपुट सुरक्षित रखें

रनटाइम के ये उदाहरण भी पूरी, जाँची हुई कॉन्फ़िगरेशन के हिस्से हैं। FusionPointAI Hosting, ग्राहक का डेटा केंद्र और संगत Colab परिवेश कंप्यूट देते हैं; नाम चुनने से GPU नहीं मिलते, नोटबुक के क्रेडिट नहीं खरीदे जाते और दूसरा परिवेश अपने-आप संगत नहीं बनता। SDK चुने हुए परिवेश में विद्यार्थी मॉडल लोड करके ट्रेन करता है। अस्थायी नोटबुक बंद होने से पहले आउटपुट सहेजें।

  • होस्टिंग का उदाहरण: अनुबंध के अनुसार कंप्यूट परिवेश, स्वीकृत स्टोरेज और खाते की पहुँच इस्तेमाल करें। जहाँ लागू हो, होस्टिंग का शुल्क अलग है।
  • Colab उदाहरण: API key नोटबुक के सीक्रेट में रखें, उपलब्ध GPU और स्टोरेज जाँचें, और नोटबुक बंद होने से पहले मान्य चेकपॉइंट स्वीकृत स्थायी स्टोरेज में कॉपी करें।
  • वितरित उदाहरण: अधिकृत समन्वयक, प्रमाणित नोड-संचार, एक जैसे स्थिर परिवेश और सहमत rendezvous/rank मान इस्तेमाल करें। लॉन्चर को केवल इसी प्रोजेक्ट के वर्कर संभालने चाहिए।
उदाहरण · json
{
  "runtime": {"target": "fusionpointai_hosting", "devices": "auto", "distributed": {"backend": "none", "nodes": 1}},
  "budgets": {"max_training_minutes": 60, "max_teacher_requests": 500, "max_storage_gib": 20},
  "output": {"directory": "./runs/hosted-001", "format": "safetensors"}
}
उदाहरण · json
{
  "runtime": {"target": "colab", "devices": [0], "distributed": {"backend": "none", "nodes": 1}},
  "checkpoints": {"every_steps": 50, "keep_last": 2, "resume_validation": "strict"},
  "budgets": {"max_training_minutes": 30, "max_teacher_requests": 100, "max_storage_gib": 10},
  "output": {"directory": "./runs/colab-001", "format": "adapters"}
}
उदाहरण · json
{
  "runtime": {"target": "customer_datacenter", "devices": [0, 1], "distributed": {"backend": "ddp", "nodes": 2}},
  "checkpoints": {"every_steps": 100, "keep_last": 3, "resume_validation": "strict"},
  "output": {"directory": "./runs/distributed-001", "format": "safetensors"}
}
उदाहरण · bash
# Export a validated adapter or full model, not teacher weights.
fpai-training evaluate --run ./german-project/runs/support-001 --split test
fpai-training export --run ./german-project/runs/support-001 --format adapters
# Inspect artifact-manifest.json, pinned base/tokenizer and evaluation-report.json.
# Reload the package in a fresh compatible runtime before changing live inference.
# Export does not deploy, allocate hosting, or upload to an external model hub.