รูปแบบการให้บริการ

MLOps Deployment and Life Cycling

Nemanja Radojkovic

Senior Machine Learning Engineer

โมเดลในรูปแบบซอฟต์แวร์

MLOps Deployment and Life Cycling

มุมมองของผู้ใช้

MLOps Deployment and Life Cycling

บริการเหมือนบริการอื่นทั่วไป

MLOps Deployment and Life Cycling

บริการอาหาร

MLOps Deployment and Life Cycling

บริการโมเดล

MLOps Deployment and Life Cycling

Serving และ serving mode

  • การให้บริการการพยากรณ์ == Model serving
  • การนำ serving ประเภทหนึ่งไปใช้งาน == Serving mode

 

เลือกให้รอบคอบ!

MLOps Deployment and Life Cycling

ควรรันบริการเมื่อใด

MLOps Deployment and Life Cycling

กำหนดเวลาไว้แล้ว

MLOps Deployment and Life Cycling

ตามความต้องการ

MLOps Deployment and Life Cycling

การพยากรณ์แบบ batch 1

MLOps Deployment and Life Cycling

การพยากรณ์แบบ batch 2

MLOps Deployment and Life Cycling

นิยามของ batch

MLOps Deployment and Life Cycling

ชื่อเรียกอื่น

MLOps Deployment and Life Cycling

การพยากรณ์แบบ batch: เรียบง่ายไว้ก่อน

  • การพยากรณ์แบบ batch เป็นวิธีที่เรียบง่ายที่สุด
  • หากกรณีการใช้งานรองรับได้ ให้เลือกวิธีนี้
  • เหมาะสำหรับ: การสร้างการพยากรณ์ยอดขายรายเดือน
MLOps Deployment and Life Cycling

การพยากรณ์ตามความต้องการ 1

MLOps Deployment and Life Cycling

ชื่อเรียกอื่นของ on-demand

MLOps Deployment and Life Cycling

ความสำคัญของเวลาใน on-demand

MLOps Deployment and Life Cycling

คำศัพท์เทคนิค

MLOps Deployment and Life Cycling

เวลาของคำขอ

MLOps Deployment and Life Cycling

เวลาของการตอบกลับ

MLOps Deployment and Life Cycling

Latency ที่ยอมรับได้

ระดับที่ยอมรับได้คือเท่าใด?

  • < 1 ชั่วโมง?
  • < 1 นาที?
  • < 1 วินาที?
  • < 1 มิลลิวินาที?
MLOps Deployment and Life Cycling

การพยากรณ์แบบใกล้เรียลไทม์ หรือ Stream processing

Acceptable latency ~= X นาที

หรือที่รู้จักในชื่อ stream processing (คำขอและการตอบกลับก่อตัวเป็น "data streams")

MLOps Deployment and Life Cycling

การพยากรณ์แบบเรียลไทม์

Acceptable latency < 1 วินาที

ตัวอย่าง:

  • การตรวจจับการฉ้อโกงบัตรเครดิต
  • การพยากรณ์ที่ช้าเกินไปถือว่าไม่มีประโยชน์
MLOps Deployment and Life Cycling

เมื่อ latency เป็นสิ่งสำคัญ

  • โมเดลที่เบากว่าแต่เร็วกว่ามีคุณค่ามากกว่าโมเดลที่แม่นยำกว่าแต่ช้ากว่า
  • นำโมเดลไปใช้บนอุปกรณ์ของผู้ใช้เพื่อลด latency => "edge deployment"
    • แอปสมาร์ตโฟนที่ใช้ ML:
      • แอปนำทาง
      • ปลดล็อกด้วยการจดจำใบหน้า
      • ฟิลเตอร์รูปภาพ
MLOps Deployment and Life Cycling

มาฝึกกันเถอะ!

MLOps Deployment and Life Cycling

Preparing Video For Download...