{"id":30811,"date":"2020-11-25T16:58:04","date_gmt":"2020-11-25T21:58:04","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=30811"},"modified":"2020-11-25T16:58:04","modified_gmt":"2020-11-25T21:58:04","slug":"ml-compute-on-m1-macs","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/11\/25\/ml-compute-on-m1-macs\/","title":{"rendered":"ML Compute on M1 Macs"},"content":{"rendered":"<p><a href=\"https:\/\/machinelearning.apple.com\/updates\/ml-compute-training-on-mac\">Apple<\/a>:<\/p>\n<blockquote cite=\"https:\/\/machinelearning.apple.com\/updates\/ml-compute-training-on-mac\">\n<p>Until now, TensorFlow has only utilized the CPU for training on Mac. The new tensorflow_macos fork of TensorFlow 2.4 leverages ML Compute to enable machine learning libraries to take full advantage of not only the CPU, but also the GPU in both M1- and Intel-powered Macs for dramatically faster training performance.<\/p>\n<p>[&#8230;]<\/p>\n<p>Performance benchmarks for Mac-optimized TensorFlow training show significant speedups for common models across M1- and Intel-powered Macs when leveraging the GPU for training. For example, TensorFlow users can now get up to 7x faster training on the new 13-inch MacBook Pro with M1[&#8230;]<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/11\/12\/apple-m1-benchmarks\/\">Apple M1 Benchmarks<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Apple: Until now, TensorFlow has only utilized the CPU for training on Mac. The new tensorflow_macos fork of TensorFlow 2.4 leverages ML Compute to enable machine learning libraries to take full advantage of not only the CPU, but also the GPU in both M1- and Intel-powered Macs for dramatically faster training performance. [&#8230;] Performance benchmarks [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-11-25T21:58:07Z","apple_news_api_id":"56153330-5e27-4a0e-b6db-98200ed6e54e","apple_news_api_modified_at":"2020-11-25T21:58:07Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AVhUzMF4nSg6225ggDtblTg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[2014,1351,30,1891,71,1643],"class_list":["post-30811","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-apple-m1","tag-artificial-intelligence","tag-mac","tag-macos-11-0","tag-programming","tag-tensorflow"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=30811"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30811\/revisions"}],"predecessor-version":[{"id":30812,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/30811\/revisions\/30812"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=30811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=30811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=30811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}