Demystifying ChatGPT: A Technical Deep Dive into Its Inner Workings
Hari Galla
Techno-Functional Manager | Process Mining Consultant | Intelligent Automation | Generative AI & ML | FINTECH & Emerging Trends | Digital Transformation| Trainer & Mentor | Tech Talk | Partnering for Client Success |
Process Flow
1.??? Stage I: Input Data
i)???? Source of Data: Internet, books, articles, etc.
ii)??? Volume: 45 TB (1GB = 1 million words)
iii)?? Preprocessing: Data cleaning, tokenization, etc.
2.??? Stage I: Training on Deep Learning Algorithms
i)???? Transformer Architecture with 96 layers and 175 billion parameters
ii)??? Learns statistical patterns and relationships in the data
3.??? Stage I OUTPUT: Base GPT Model
i)???? Generative Pre-Trained Transformer Model
ii)??? Capable of sentence completion, text summarization, text generation, sentiment analysis, translation, etc.
4.??? Stage II: Instruct GPT Method
iii)?? Request and Response concept is applied
5.??? Stage II: Train Data Corpus
iv)?? Create crafted conversation data corpus using expert policy (hand-crafted rules)
v)??? Use stochastic gradient descent or other optimization algorithm
6.??? Stage II OUTPUT:
vi)?? Supervised Fine-Tuned Model
领英推荐
7.??? Stage III: Input
vii)? Generate alternative responses for a given request
8.??? Stage III: Ranking Method
viii)??????? Rank responses from top to bottom based on their quality
9.??? Stage III: Reward Model
ix)?? Trained using reinforcement learning
x)??? Assigns higher scores to more informative, relevant, and engaging responses by using Proximal Policy Optimization
xi)?? Uses Kullback-Leibler divergence to measure similarity to human-generated responses
10. Stage III OUTPUT:
11. ChatGPT Model
?
Conclusion:
It is a three-part process to train it: first, it learns how to generate text on its own, then it gets some guidance from humans, and finally, it gets feedback from real humans to get even better.
?
As AI becomes more sophisticated, the line between human and machine blurs. Is ChatGPT a glimpse into our future, where robots are not just tools but companions? Or is it a cautionary tale of a world overrun by intelligent machines?
?
Thanks for your time. Feel free to ask any queries and request to share this article to your contacts.
Director at Cognizant
1 年Hari Galla, excellent article. Keep sharing more of these knowledge nuggents.
Senior Managing Director
1 年Hari Galla Very informative. Thanks for sharing.