लार्ज लैंग्वेज मॉडल्स (LLMs) का परिचय

Python में LLMs का परिचय

Jasmin Ludolf

Senior Data Science Content Developer, DataCamp

पूर्व ज्ञान

  • Hugging Face Hub में नेविगेट करना
  • डीप लर्निंग मॉडल्स

किताब पढ़ते कार्टून दिमाग

Python में LLMs का परिचय

LLMs का परिचय

 

समझ दर्शाने के लिए बल्ब और दिमाग का आइकन

Python में LLMs का परिचय

LLMs का परिचय

 

उपयोग दर्शाने के लिए लैपटॉप का चित्र

Python में LLMs का परिचय

लार्ज लैंग्वेज मॉडल का अमूर्त चित्रण

Python में LLMs का परिचय

सारांश बबल के साथ लार्ज लैंग्वेज मॉडल का अमूर्त चित्रण

Python में LLMs का परिचय

सारांश और जनरेट बबल के साथ लार्ज लैंग्वेज मॉडल का अमूर्त चित्रण

Python में LLMs का परिचय

सारांश, जनरेट, और ट्रांसलेट बबल के साथ लार्ज लैंग्वेज मॉडल का अमूर्त चित्रण

Python में LLMs का परिचय

सारांश, जनरेट, ट्रांसलेट, Q&A बबल के साथ लार्ज लैंग्वेज मॉडल का अमूर्त चित्रण

LLM लोगो

Python में LLMs का परिचय

LLMs

 

  • डीप लर्निंग आर्किटेक्चर पर आधारित

 

  • सबसे आम ट्रांसफॉर्मर्स

 

  • बहुत बड़े न्यूरल नेटवर्क्स जिनमें भारी पैरामीटर्स और टेक्स्ट डेटा होता है

Hugging Face लोगो

Python में LLMs का परिचय

Hugging Face मॉडल्स का उपयोग

from transformers import pipeline


summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
text = "Walking amid Gion's Machiya wooden houses is a mesmerizing experience. The beautifully preserved structures exuded an old-world charm that transports visitors back in time, making them feel like they had stepped into a living museum. The glow of lanterns lining the narrow streets add to the enchanting ambiance, making each stroll a memorable journey through Japan's rich cultural history." summary = summarizer(text, max_length=50)
  • clean_up_tokenization_spaces=True: अनावश्यक स्पेस हटाएँ
Python में LLMs का परिचय

मॉडल आउटपुट्स

print(summary)
[{'summary_text': "Gion's Machiya
  wooden houses exuded an old-world 
  charm that transports visitors back 
  in time. The glow of lanterns lining 
  the narrow streets add to the 
  enchanting ambiance, making each 
  stroll a memorable journey through 
  Japan's"}]
print(summary[0]["summary_text"])
Gion's Machiya wooden houses exuded an 
old-world charm that transports 
visitors back in time. The glow of 
lanterns lining the narrow streets add 
to the enchanting ambiance, making each 
stroll a memorable journey through 
Japan's
Python में LLMs का परिचय

आगे क्या

 

  • मौजूदा LLM समझ पर आगे बढ़ें
  • नए टास्क करें
  • देखें LLMs कैसे बनते हैं
  • LLMs को फाइन-ट्यून करें
  • LLM परफॉर्मेंस का मूल्यांकन करें

लर्निंग पाथ

Python में LLMs का परिचय

अभ्यास करते हैं!

Python में LLMs का परिचय

Preparing Video For Download...