{"id":24703397,"url":"https://github.com/Jafagervik/zybel","last_synced_at":"2025-10-09T09:30:38.411Z","repository":{"id":274058950,"uuid":"921779527","full_name":"Jafagervik/zybel","owner":"Jafagervik","description":"AI/ML library in the making, all written in zig","archived":false,"fork":false,"pushed_at":"2025-01-28T01:08:10.000Z","size":41,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T07:44:31.279Z","etag":null,"topics":["ai","dl","dnn","ml","zig-library","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Jafagervik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2025-01-24T15:49:19.000Z","updated_at":"2025-01-31T03:39:50.000Z","dependencies_parsed_at":"2025-01-27T18:30:34.977Z","dependency_job_id":null,"html_url":"https://github.com/Jafagervik/zybel","commit_stats":null,"previous_names":["jafagervik/zinyn","jafagervik/zybel"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Jafagervik/zybel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzybel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzybel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzybel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzybel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jafagervik","download_url":"https://codeload.github.com/Jafagervik/zybel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzybel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"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-10-09T02:00:07.460Z","response_time":59,"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":["ai","dl","dnn","ml","zig-library","zig-package"],"created_at":"2025-01-27T05:55:09.342Z","updated_at":"2025-10-09T09:30:38.406Z","avatar_url":"https://github.com/Jafagervik.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e **zybel** is still WIP. **Breaking changes** may occur\n\n# Zinyn - ML and AI made possible for fun\n\n## Goal\n\nCreate a framework for training DNNs in Zig (using hardware accelerators)\nand compare results\n\n## Why?\n\nTo quote a wise man: \"For the joy of programming!\"\n\n## Features\n\n- [x] Generic tensor using comptime\n- [x] Binops such as add, sub, mul, div\n- [x] General tensor ops (clamp, reshape, sum, min, max...)\n- [x] SGD optimizer\n- [x] Common loss functions such as mse and mae + 3 more\n- [ ] Activation functions\n- [ ] Simple layers\n- [ ] Autograd\n- [ ] Computational graph\n- [ ] Hardware acceleration support\n\n## Install (Per 0.14 beta)\n\nRun this command in the parent directory of your project\n\n```sh\nzig fetch --save git+https://github.com/Jafagervik/zybel.git\n```\n\nThen add these lines to build.zig before b.installArtifact(exe)\n\n```zig\nconst zybel = b.dependency(\"zybel\", .{});\n\nexe.root_module.addImport(\"zybel\", zybel.module(\"zybel\"));\n\n```\n\n## Example\n\n```zig\nconst std = @import(\"std\");\n\nconst zb = @import(\"zybel\");\nconst Tensor = zb.Tensor;\nconst TF32 = Tensor(f32);\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    const allocator = gpa.allocator();\n    defer _ = gpa.deinit();\n\n    // Creates a F32 Tensor of shape (1, 3, 3)\n    var t: TF32 = try TF32.ones(allocator, \u0026[_]u32{ 1, 3, 3 });\n    defer t.deinit();\n\n    std.debug.print(\"First value is {d:.2}\\n\", .{t.getFirst()});\n\n    bon.setVal(0, 2.0);\n\n    std.debug.print(\"First value is now {d:.2}\\n\", .{t.getFirst()});\n\n    // Prints input about the tensor\n    t.print();\n\n    std.debug.print(\"Sum is {d:.2}\\n\", .{t.sum()});\n}\n```\n\n### Contribute\n\nHell yea! Feel free to add suggestions/corrections. I am a mere mortal, not a god\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJafagervik%2Fzybel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJafagervik%2Fzybel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJafagervik%2Fzybel/lists"}