{"id":16840555,"url":"https://github.com/mitmul/tensorflow-metal-sample","last_synced_at":"2025-03-18T04:49:29.948Z","repository":{"id":141385670,"uuid":"439376018","full_name":"mitmul/tensorflow-metal-sample","owner":"mitmul","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-18T05:06:22.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T11:44:11.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitmul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-17T15:24:03.000Z","updated_at":"2022-02-27T01:59:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b53b81e5-850e-41bc-b502-9fc028122208","html_url":"https://github.com/mitmul/tensorflow-metal-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Ftensorflow-metal-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Ftensorflow-metal-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Ftensorflow-metal-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Ftensorflow-metal-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitmul","download_url":"https://codeload.github.com/mitmul/tensorflow-metal-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244159989,"owners_count":20408019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:37:06.328Z","updated_at":"2025-03-18T04:49:29.928Z","avatar_url":"https://github.com/mitmul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tensorflow-metal-sample\n\nTry to use M1 Max GPU for deep learning in Tensorflow-Metal.\n\n## Environment setup\n\n```bash\ncurl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh\nchmod +x Miniforge3-MacOSX-arm64.sh \nsh Miniforge3-MacOSX-arm64.sh -b -p $(pwd)/miniforge3\nsource miniforge3/bin/actibate\n\nconda create --name tensorflow_m1 python==3.9\nconda activate tensorflow_m1\n\nconda install -c apple tensorflow-deps\npython -m pip install tensorflow-macos\npython -m pip install tensorflow-metal\nconda install -c conda-forge jupyter jupyterlab\n```\n\n## Run a sample script\n\n```bash\n$ time python train.py\n313/313 - 1s - loss: 0.0746 - accuracy: 0.9785 - 1s/epoch - 3ms/step\npython train.py  69.52s user 58.73s system 142% cpu 1:29.73 total\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Ftensorflow-metal-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitmul%2Ftensorflow-metal-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Ftensorflow-metal-sample/lists"}