{"id":16833727,"url":"https://github.com/alecokas/ml-framework-comparison","last_synced_at":"2026-05-06T20:32:11.201Z","repository":{"id":37676425,"uuid":"279697828","full_name":"alecokas/ml-framework-comparison","owner":"alecokas","description":"A super simple demonstration of how Flux.jl compares with Tensorflow 2 and Pytorch","archived":false,"fork":false,"pushed_at":"2023-03-24T23:37:22.000Z","size":31,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T10:14:43.376Z","etag":null,"topics":["blog","flux","framework","julia","machine-learning","mnist","pytorch","tensorflow","tf2"],"latest_commit_sha":null,"homepage":"https://alecokas.github.io/julia/flux/2020/07/20/flux-flexible-ml-for-julia.html","language":"Julia","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/alecokas.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}},"created_at":"2020-07-14T21:35:27.000Z","updated_at":"2020-08-28T18:15:38.000Z","dependencies_parsed_at":"2022-09-15T08:20:48.877Z","dependency_job_id":null,"html_url":"https://github.com/alecokas/ml-framework-comparison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alecokas/ml-framework-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecokas%2Fml-framework-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecokas%2Fml-framework-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecokas%2Fml-framework-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecokas%2Fml-framework-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecokas","download_url":"https://codeload.github.com/alecokas/ml-framework-comparison/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecokas%2Fml-framework-comparison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32711053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blog","flux","framework","julia","machine-learning","mnist","pytorch","tensorflow","tf2"],"created_at":"2024-10-13T11:55:05.716Z","updated_at":"2026-05-06T20:32:11.159Z","avatar_url":"https://github.com/alecokas.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Machine Learning Framework Comparison\n\nThis repository is the companion code to my blog post [**Flux: The Flexible Machine Learning Framework for Julia**](https://alecokas.github.io/julia/flux/2020/07/20/flux-flexible-ml-for-julia.html), where I discuss using Flux as a framework for machine learning in Julia. This takes the form of presenting side-by-side comparisons between the Keras Functional API, PyTorch, and two Flux implementations. See the `src` directory for the full scripts.\n\n## Training\nThe four scripts can be run as follows:\n#### Functional Flux\nAdd all packages in the `julia-env/Project.toml` file.\n```\njulia --project=julia-env src/flux_functional_mnist.jl \n```\n#### Modular Flux\nAdd all packages in the `julia-env/Project.toml` file.\n```\njulia --project=julia-env src/flux_modular_mnist.jl \n```\n#### Tensorflow 2\n```\n$ python3 -m venv ../tf2env\n$ source activate ../tf2env/bin/activate\n$ pip install -r tf2-requirements.txt\n$ python src/tf2_mnist.py\n```\n#### PyTorch\n```\n$ python3 -m venv ../ptenv\n$ source activate ../ptenv/bin/activate\n$ pip install -r pt-requirements.txt\n$ python src/pt_mnist.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecokas%2Fml-framework-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecokas%2Fml-framework-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecokas%2Fml-framework-comparison/lists"}