Faster NumPy on Mac GPU with MLX

preview_player
Показать описание
Accelerate your Numpy Scientific Workflows on Apple Silicon with MLX

In this video, I compare the execution speed of numpy and numba with MLX, a python library that executes code on Mac GPUs and provides a numpy-compatible API. For my tests, I simulate a large number time series that follow an AR(3)-GARCH(1,1) process and compute the t-stat for the H0 that mean returns are 0 for each sample path. Find out how MLX performs in comparison to numpy and numba!

Note: MLX requires Apple Silicon (M1/M2/M3).

👍 Please like if you found this video helpful, and subscribe to stay updated with my latest tutorials. 🔔

🔖 Chapters:
00:00 Intro
00:37 What is MLX?
04:00 Sample numpy workflow
06:18 MLX code
08:32 Numba code
10:52 Benchmarking
13:57 Benchmark results
17:19 Outro

Video links:

🐍 More Vincent Codes Finance:

#numba #mlx #numba #pandas #python #bigdata #research #researchtips #jupyternotebook #vscode #professor #pandas #finance #datascience #dataanalytics #dataanalysis
Рекомендации по теме
Комментарии
Автор

Thank you so much for sharing this. I’ll give it a go and compare it’s performance

anutuyi