{"id":17360703,"url":"https://github.com/certik/mlc","last_synced_at":"2025-04-15T00:48:16.745Z","repository":{"id":233384939,"uuid":"763684718","full_name":"certik/mlc","owner":"certik","description":"Machine Learning Compiler","archived":false,"fork":false,"pushed_at":"2024-03-29T03:59:53.000Z","size":261,"stargazers_count":9,"open_issues_count":15,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T00:47:57.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/certik.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":"2024-02-26T18:30:16.000Z","updated_at":"2024-08-24T18:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddc0b2c9-cbda-4022-8272-74747b9177b3","html_url":"https://github.com/certik/mlc","commit_stats":null,"previous_names":["certik/mlc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fmlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fmlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fmlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Fmlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/certik","download_url":"https://codeload.github.com/certik/mlc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986278,"owners_count":21194025,"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-15T19:27:38.220Z","updated_at":"2025-04-15T00:48:16.739Z","avatar_url":"https://github.com/certik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machine Learning Compiler (mlc)\n\nIn top-level directory, `mlc`.\n\n## Build\n\n### (Recommended) Install `mamba` and `conda` from `miniforge`.\n\nWe have found that the `miniforge` versions of `mamba` and `conda`\nwork better than those you get from the `anaconda` graphical \ninstaller. You can make any of them work, but this seems \nsmoothest to us.\n\nhttps://github.com/conda-forge/miniforge\n\n### Create and Activate Environment\n\n```\nmamba env create -f environment_unix.yml\nconda activate mlc\n```\n\n## Install `src`, or set `PYTHONPATH`\n\nThere are two ways to make the code accessible\nand to reload it on each run: \n\n### Alternative 1: Install Editable\n\ninto the `mlc` environment\n\n```\npip install -e .\n```\n\n### Alternative 2: Set `PYTHONPATH`\n\nEither on-the-fly for each run, for example: \n\n```\nPYTHONPATH=\"./src:$PYTHONPATH\" pytest\n```\n\nor once per terminal session: \n\n```\nexport PYTHONPATH=\"./src:$PYTHONPATH\"\n```\n\nbefore running tests.\n\n## Run tests:\n\n```\npytest\n```\n\n## See the IR\n\nThe `-s` option tells `pytest` to display `print` output.\n\n```\npytest -s\n```\n\n## Plot the computational graph:\n\n```\ndot -Tpng mnist-cnn.dot -o mnist-cnn.dot.png\n```\n![mnist-cnn.dot.png](https://gist.githubusercontent.com/certik/8aaae7df1380c5ddf3f7931e315e58f6/raw/a84b69aa424fa3ed30c3999c45314736d079c549/mnist-cnn.dot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fmlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcertik%2Fmlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Fmlc/lists"}