พื้นฐานของปัญญาประดิษฐ์เชิงสร้างสรรค์ในภาษา Python
คู่มือที่ครอบคลุมเกี่ยวกับการเข้าใจและประยุกต์ใช้ปัญญาประดิษฐ์เชิงสร้างสรรค์ (Generative AI) และโมเดลภาษาขนาดใหญ่ (LLMs) หลักสูตรนี้ครอบคลุมการเปลี่ยนจากพื้นฐานทางทฤษฎีไปสู่การพัฒนาเชิงปฏิบัติโดยใช้ภาษา Python รวมถึง GANs, โมเดลการกระจาย (diffusion models), โครงข่ายแบบทรานซ์ฟอร์เมอร์ (transformers), การปรับแต่งแบบเฉพาะเจาะจง (fine-tuning) และการนำไปใช้งานจริงในสภาพแวดล้อมผลิต
ภาพรวมคอร์สเรียน
📚 สรุปเนื้อหา
คู่มือที่ครอบคลุมเกี่ยวกับการเข้าใจและนำไปใช้จริงกับปัญญาประดิษฐ์เชิงสร้างสรร (Generative AI) และโมเดลภาษาขนาดใหญ่ (LLMs) หลักสูตรนี้ครอบคลุมการเปลี่ยนผ่านจากพื้นฐานทางทฤษฎีไปสู่การพัฒนาในเชิงปฏิบัติโดยใช้ภาษา Python รวมถึง GANs, โมเดลการกระจายตัว (Diffusion models), โครงสร้างแบบแปลง (Transformers), การปรับแต่งเฉพาะงาน (fine-tuning) และการนำออกใช้งานในสภาพแวดล้อมผลิต
จัดการหลักการสำคัญและแอปพลิเคชันเชิงปฏิบัติของโมเดลภาษาขนาดใหญ่ (LLMs) และเทคนิคการสร้างสรรค์สมัยใหม่ด้วยภาษา Python
ผู้เขียน: คาร์ลอส โรดริเกซ
คำขอบคุณ: ขอขอบคุณเป็นพิเศษแก่ภรรยาของเขา จิลล์ บรรพบุรุษของเขา และนักตรวจสอบทางเทคนิค โมร์แกน บอยซ์ อีริก รุย และซาไมรา ชาฮ์ (ผู้เขียนบทนำ)
🎯 เป้าหมายการเรียนรู้
- แยกแยะ ระหว่างแนวทางการเรียนรู้ของเครื่องแบบดั้งเดิม (แบบจำแนก) กับโมเดลปัญญาประดิษฐ์เชิงสร้างสรร
- ระบุ สถาปัตยกรรมพื้นฐานของปัญญาประดิษฐ์เชิงสร้างสรร ได้แก่ GANs, โมเดลการกระจายตัว (Diffusion models) และ Transformers
- อธิบาย บทบาทและวิวัฒนาการของโมเดลภาษาขนาดใหญ่ (LLMs) ภายในบริบทกว้างของปัญญาประดิษฐ์
- แยกแยะลักษณะเฉพาะและแนวทางสถาปัตยกรรมของ GANs, Diffusers และ Transformers
- วิเคราะห์ข้อได้เปรียบและข้อจำกัดของแต่ละประเภทโมเดล รวมถึงปัญหาเฉพาะ เช่น การเกิด "โหมดหาย" หรือความเร็วในการสุ่มตัวอย่าง
- ดำเนินการจัดระบบการสร้างภาพแบบ Stable Diffusion และประเมินผลลัพธ์ที่ได้ โดยใช้ค่าลอจิตและค่าความน่าจะเป็นจากโมเดล CLIP
- ติดตามเส้นทางวิวัฒนาการของภาษาธรรมชาติ (NLP) จากวิธีการนับจำนวนเบื้องต้นและโมเดล RNN ไปสู่การแทนที่แบบกระจาย (Distributed Representations) และการเรียนรู้แบบถ่ายทอด (Transfer Learning)
- อธิบายกลไกทางเทคนิคของ Multi-head Attention (MHA), Self-attention, Masking และเครือข่ายฟีดฟอร์เวิร์ด (FFN)
- ดำเนินการสร้างโครงสร้างโมเดล Transformer แบบครบวงจร รวมถึงการแบ่งคำ (tokenization), การเข้ารหัสตำแหน่ง (positional encoding) และฟังก์ชันการฝึกและการคาดการณ์
- เปลี่ยนฟีเจอร์การทดลอง (เช่น Google Colab) ไปสู่สภาพแวดล้อมพร้อมสำหรับการผลิต โดยใช้ Docker และ VS Code
บทเรียน 共 7 课时 · 预计 21.0h
บทเรียน
Lesson
This lesson explores the concept of the technological Singularity and the exponential growth of AI, while establishing the fundamental distinction between discriminative models that classify data and generative models that synthesize it. Students will learn to analyze the synergy between compute, data, and algorithmic efficiency, as well as the mathematical foundations of probabilistic modeling in high-dimensional spaces.
This lesson explores the three core pillars of generative AI—GANs, diffusion models, and transformers—by analyzing their unique mathematical strategies and architectural trade-offs. Students will learn to differentiate these models based on their training stability, computational efficiency, and specific applications in multimodal synthesis.
This lesson explores the evolution of Natural Language Processing from sparse, count-based methods like TF-IDF to dense, distributed vector representations and recurrent neural architectures. It examines the limitations of RNNs and LSTMs, such as the vanishing gradient problem and the Seq2Seq bottleneck, while establishing the mathematical foundations of the Transformer architecture and self-attention mechanisms.
AI030: Production Engineering and Responsible AI Deployment (Lesson 4) explores the transition from experimental prototyping in notebooks to robust, scalable production systems. Students will learn to implement CI/CD pipelines, ensure model reliability through automated testing, and integrate fairness monitoring to meet ethical and regulatory standards.
This lesson explores the spectrum of model adaptation, comparing the computational efficiency of In-Context Learning with the specialized performance and stability of Parameter-Efficient Fine-Tuning (PEFT) and full fine-tuning. Students will learn to navigate the trade-offs between hardware constraints and model alignment, with a focus on implementing techniques like LoRA to optimize performance in resource-limited environments.
This lesson explores the necessity of domain adaptation for general-purpose LLMs, focusing on techniques like continued pre-training and fine-tuning to align model knowledge with specialized fields. Students will learn to implement parameter-efficient methods like LoRA and develop evaluation frameworks to ensure linguistic accuracy in high-stakes professional environments.
This lesson explores the paradigm shift from resource-heavy model fine-tuning to efficient prompt-based inference and in-context learning. Students will learn to master advanced prompting techniques, such as persona-based conditioning and Chain-of-Thought, to optimize model performance and maintain factual consistency.