最佳化 AI 的速度、成本與品質

AI-Assisted Coding for Developers

Francesca Donadoni

AI Curriculum Manager, DataCamp

衡量指標

124.png

  • Latency(回應時間):模型產生回應所需時間
AI-Assisted Coding for Developers

衡量指標

135.png

  • Latency(回應時間):模型產生回應所需時間

$$

  • Token cost(每 1M tokens):使用 AI 模型的金額成本
AI-Assisted Coding for Developers

衡量指標

126.png

  • Latency(回應時間):模型產生回應所需時間

$$

  • Token cost(每 1M tokens):使用 AI 模型的金額成本

$$

  • Quality(測試通過率/涵蓋率):產生的程式碼符合預期的頻率
AI-Assisted Coding for Developers

模型基準測試

$$

110.png

1 https://github.com/openai/human-eval
AI-Assisted Coding for Developers

模型基準測試

$$

111.png

1 https://github.com/bigcode-project/bigcodebench
AI-Assisted Coding for Developers

模型基準測試

$$

112.png

1 https://github.com/SWE-bench/SWE-bench
AI-Assisted Coding for Developers

模型基準測試

$$

113.png

1 https://github.com/JohnnyPeng18/Coffe
AI-Assisted Coding for Developers

提示版本控管

115.png

AI-Assisted Coding for Developers

提示版本控管

118.png

AI-Assisted Coding for Developers

提示版本控管

119.png

AI-Assisted Coding for Developers

提示快取

  • 快取會儲存:
    • 提示
    • 輸入
    • 模型
    • 溫度

prompt_caching.png

AI-Assisted Coding for Developers

一起來練習吧!

AI-Assisted Coding for Developers

Preparing Video For Download...