{"id":28172831,"url":"https://github.com/azlinrusnan/transformers_and_generative_ai","last_synced_at":"2026-07-19T07:39:36.136Z","repository":{"id":287294326,"uuid":"964263150","full_name":"AzlinRusnan/Transformers_and_Generative_AI","owner":"AzlinRusnan","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-11T01:22:50.000Z","size":1377,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-19T07:39:22.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AzlinRusnan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-11T00:07:34.000Z","updated_at":"2025-04-11T01:22:53.000Z","dependencies_parsed_at":"2025-10-19T13:37:41.739Z","dependency_job_id":null,"html_url":"https://github.com/AzlinRusnan/Transformers_and_Generative_AI","commit_stats":null,"previous_names":["azlinrusnan/transformers_and_generative_ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AzlinRusnan/Transformers_and_Generative_AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzlinRusnan%2FTransformers_and_Generative_AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzlinRusnan%2FTransformers_and_Generative_AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzlinRusnan%2FTransformers_and_Generative_AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzlinRusnan%2FTransformers_and_Generative_AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzlinRusnan","download_url":"https://codeload.github.com/AzlinRusnan/Transformers_and_Generative_AI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzlinRusnan%2FTransformers_and_Generative_AI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35646061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-15T20:11:11.487Z","updated_at":"2026-07-19T07:39:36.097Z","avatar_url":"https://github.com/AzlinRusnan.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transformers_and_Generative_AI\n\n🤖 Understanding BERT and GPT in the Simplest Way\nBoth BERT and GPT are language models, which means they’re like smart brains trained to understand and work with human language.\n\n## 🧠 BERT – Bidirectional Encoder Representations from Transformers\nThink of BERT as a student who carefully reads a sentence from both directions – left to right AND right to left – to fully understand its meaning.\n\nExample:\n\nSentence: \"Ali ate rice at a delicious restaurant.\"\n\nIf you ask BERT: “What did Ali eat?”\nBERT looks at the entire sentence, not just from the start. It understands context from both sides, so its answers are more accurate.\n\nBERT is great for:\n\n- Understanding sentence meaning\n\n- Question answering\n\n- Extracting key info from text\n\n- Filling in missing words\n\n🟢 BERT = Strong understanding (two-way thinking)\n\n## 🧠 GPT – Generative Pre-trained Transformer\nGPT is like a creative writer. It’s really good at continuing sentences, writing stories, or even drafting emails.\n\nExample:\n\nYou write: \"I love eating nasi lemak because...\"\n\nGPT will continue:\n\n\"...it tastes amazing and reminds me of family breakfasts.\"\n\nGPT reads only from left to right, but it’s very good at predicting and generating natural-sounding text.\n\nGPT is great for:\n\n- Writing content\n\n- Sentence completion\n\n- Chatbots\n\n- Translation\n\n🟠 GPT = Great at writing and generating text (one-way thinking)\n\n🔁 **Summary of the Differences**\n\u003e\n\u003e | Feature         | BERT                        | GPT                         |\n\u003e |-----------------|-----------------------------|-----------------------------|\n\u003e | Reading style   | Both directions             | Left to right only          |\n\u003e | Main purpose    | Understanding text          | Generating text             |\n\u003e | Example tasks   | Question answering, filling blanks | Story writing, text completion |\n\u003e | Analogy         | Focused reader              | Creative writer             |\n\n### To summarise:\n\n- BERT is like someone who reads carefully to understand.\n- GPT is like someone who writes naturally to continue your thoughts.\n\nps: still learning, will continue on LLM and more!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazlinrusnan%2Ftransformers_and_generative_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazlinrusnan%2Ftransformers_and_generative_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazlinrusnan%2Ftransformers_and_generative_ai/lists"}