算法工程师-机器学习-数据科学家面试准备3-系统设计

该文详细梳理了机器学习面试的各个方面,从外企和国外公司的面试流程到LeetCode算法题,再到系统设计和ML系统设计,包括数据收集、特征工程、模型开发、推理服务、监控和更新等关键环节。此外,还讨论了分布式系统、监控、自动更新模型以及特定场景如推荐系统的设计挑战。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://github.com/LongxingTan/Machine-learning-interview

框架

  1. 理解和理清需求requirements和问题
    1. 系统的目标、主要功能
    2. 用户及场景use cases
    3. 清晰的边界
    4. 抽象问题转化为机器学习问题
  2. 定义评价指标(离线与在线)
  3. 系统架构
    1. 非ML部分
    2. ML部分
  4. 数据收集与准备
  5. 特征工程
  6. 模型开发与离线评测
  7. 推理服务
    1. 推理模式:batch, online, hybrid
    2. 模型压缩:量化、剪枝、蒸馏
  8. 在线测试与部署
    1. AB测试
  9. 扩展、监控、更新
    1. 扩展
      1. 软件系统:分布式,负载均衡
      2. 机器学习部分:分布式训练,分布式数据收集
  10. 监控
    1. 监控日志
    2. 监控指标
  11. 更新:持续训练
    1. 自动更新模型
    2. Human in the loop

场景

  • Youtube recommendation/doordash search box/auto suggestion
  • design youtube violent content detection system

可能聚焦的方向

  • improve engagement on a feed
  • improve customer churn
  • return items from search engine query

follow-up问题

  • solution
  • how to scale
    • Scaling general SW system (distributed servers, load balancer, sharding, replication, caching, etc)
    • Train data / KB partitioning
    • Distributed ML
    • Data parallelism (for training)
    • Model parallelism (for training, inference)
    • Asynchronous SGD
    • Synchronous SGD
    • Distributed training
    • Data parallel DT, RPC based DT
    • Scaling data collection
    • MT for 1000 languages
      • NLLB
  • Monitoring, failure tolerance, updating (below)
  • Auto ML (soft: HP tuning, hard: arch search (NAS))
  • 线上线下不一致

在这里插入图片描述

参考

  • https://github.com/khangich/machine-learning-interview

  • Machine Learning Engineering by Andriy Burkov

  • https://github.com/shibuiwilliam/ml-system-in-actions

  • https://github.com/mercari/ml-system-design-pattern

  • https://github.com/chiphuyen/machine-learning-systems-design

  • https://github.com/ibragim-bad/machine-learning-design-primer

  • https://www.1point3acres.com/bbs/thread-901192-1-1.html

  • Grokking the Machine Learning Interview

  • https://about.instagram.com/blog/engineering/designing-a-constrained-exploration-system

  • https://www.youtube.com/c/BitTiger

  • ML system 入坑指南 - Fazzie的文章 - 知乎

  • 模型生产环境中的反馈与数据回流 - 想飞的石头的文章 - 知乎

design doc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

YueTann

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值