{"id":21191196,"url":"https://github.com/hasanisaeed/c-transformer","last_synced_at":"2025-03-14T20:45:05.814Z","repository":{"id":253549067,"uuid":"842629051","full_name":"hasanisaeed/C-Transformer","owner":"hasanisaeed","description":"Implementation of the core Transformer architecture in pure C","archived":false,"fork":false,"pushed_at":"2024-09-08T18:54:08.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T13:35:26.151Z","etag":null,"topics":["c","c-transformers","generative-ai","llm","transformers"],"latest_commit_sha":null,"homepage":"","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/hasanisaeed.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-08-14T18:31:04.000Z","updated_at":"2024-12-12T23:20:42.000Z","dependencies_parsed_at":"2024-09-08T20:21:06.282Z","dependency_job_id":null,"html_url":"https://github.com/hasanisaeed/C-Transformer","commit_stats":null,"previous_names":["hasanisaeed/c-transformer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasanisaeed%2FC-Transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasanisaeed%2FC-Transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasanisaeed%2FC-Transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasanisaeed%2FC-Transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasanisaeed","download_url":"https://codeload.github.com/hasanisaeed/C-Transformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646545,"owners_count":20324583,"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":["c","c-transformers","generative-ai","llm","transformers"],"created_at":"2024-11-20T19:01:37.792Z","updated_at":"2025-03-14T20:45:05.792Z","avatar_url":"https://github.com/hasanisaeed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## C-Transformer\n\nI created this repo to test my C programming skills and see how well I could handle it. I decided to implement a Transformer based on the famous [Attention is All You Need](https://arxiv.org/abs/1706.03762) paper.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\".assets/architecture.png\" height = \"500px\" /\u003e\u003cbr/\u003e\n    \u003cspan\u003eThe Transformer - model architecture\u003c/span\u003e\n    \n\u003c/p\u003e\n\n## Output\n\n```\n***** Encoding *****\nHumanity         1\nthrives          2\non               3\ncompassion       4\na                5\nfundamental      6\ntrait            7\n...\n\n***** Positional Embedding *****\n0.000000, 0.010000, 0.000200, 0.000003,\n1.000000, 0.999950, 1.000000, 1.000000,\n...\n\n***** Single Head Attention *****\n0.589237, 0.589154, 0.603617, 0.518480,\n0.614376, 0.629398, 0.638245, 0.511109,\n...\n\n***** Feed Forward Output *****\n0.260464, 1.185559, 0.141220, 1.783113,\n...\n\n***** Decoder Output *****\n0.872295, -0.787095, -1.186268, 1.101068,\n...\n\n\u003e\u003e Predicted Word: true\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasanisaeed%2Fc-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasanisaeed%2Fc-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasanisaeed%2Fc-transformer/lists"}