{"id":28423156,"url":"https://github.com/zenwor/zwgrad","last_synced_at":"2025-09-10T11:39:36.351Z","repository":{"id":292427771,"uuid":"976330873","full_name":"zenwor/zwgrad","owner":"zenwor","description":"🦥 Lazy ML Framework","archived":false,"fork":false,"pushed_at":"2025-05-10T09:33:58.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T01:41:50.677Z","etag":null,"topics":["dl","framework","ml","python"],"latest_commit_sha":null,"homepage":"","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/zenwor.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,"zenodo":null}},"created_at":"2025-05-01T23:16:57.000Z","updated_at":"2025-05-31T11:55:10.000Z","dependencies_parsed_at":"2025-05-09T23:18:51.007Z","dependency_job_id":"6030aace-28b0-4741-b952-afd3d29fdf40","html_url":"https://github.com/zenwor/zwgrad","commit_stats":null,"previous_names":["zenwor/zwgrad"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zenwor/zwgrad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenwor%2Fzwgrad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenwor%2Fzwgrad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenwor%2Fzwgrad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenwor%2Fzwgrad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenwor","download_url":"https://codeload.github.com/zenwor/zwgrad/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenwor%2Fzwgrad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274455945,"owners_count":25288558,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dl","framework","ml","python"],"created_at":"2025-06-05T08:35:27.742Z","updated_at":"2025-09-10T11:39:36.307Z","avatar_url":"https://github.com/zenwor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zwgrad\n\nI decided to implement my own ML framework!\n\nThe goals are simple:\n- Make it train some simple models, such as ResNet\n- CUDA support\n- CUDA codegen, with kernel fusions detected from IR\n- MLIR, in the long run\n\n# Changelog\n\n## (10.05.2025) `zwgrad` supports standard operations and Linear (`zwg.nn.Lin`) layer\n`zwgrad` supports basic set of operations necessary to have a standard Linear layer, with (default) or without a bias:\n\n```py\nimport zwgrad as zwg\nimport zwgrad.nn as nn\n\nfrom loguru import logger\n\nclass Model(nn.Module):\n    def __init__(self):\n        self.lin1 = nn.Lin(4, 8)\n        self.lin2 = nn.Lin(8, 16, bias=False)\n\n    def fwd(self, x):  # Forward pass is defined within `fwd` method\n        x = self.lin1(x)\n        x = self.lin2(x)\n        return x\n\nx = zwg.ten([1.0, 2.0, 3.0, 4.0], req_grad=True) # Create a tensor via `zwg.ten` \u0026 track gradient\nmodel = Model()  # Instantiate the model\ny = model(x)  # Forward pass\n\nlogger.info(f\"Graph: {y}\")  # Get the computation graph\nlogger.info(f\"y = {y.numpy()}\")  # Get the exact forward pass value\n\nz = y.sum()\nz.bwd()  # Backpropagate\nlogger.info(f\"x.grad = {x.grad}\")\nlogger.info(f\"y.grad = {y.grad}\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenwor%2Fzwgrad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenwor%2Fzwgrad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenwor%2Fzwgrad/lists"}