{"id":19156330,"url":"https://github.com/kyegomez/mlxtransformer","last_synced_at":"2025-10-04T08:21:47.700Z","repository":{"id":211048842,"uuid":"728066227","full_name":"kyegomez/MLXTransformer","owner":"kyegomez","description":"Simple Implementation of a Transformer in the new framework MLX by Apple","archived":false,"fork":false,"pushed_at":"2024-11-18T02:14:59.000Z","size":2287,"stargazers_count":20,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T20:17:01.847Z","etag":null,"topics":["artificial-intelligence","gpt4","machine-learning","multi-modal","multi-modality"],"latest_commit_sha":null,"homepage":"https://discord.gg/GYbXvDGevY","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/kyegomez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["kyegomez"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-12-06T06:43:50.000Z","updated_at":"2025-02-18T16:44:22.000Z","dependencies_parsed_at":"2025-04-19T18:54:57.309Z","dependency_job_id":null,"html_url":"https://github.com/kyegomez/MLXTransformer","commit_stats":null,"previous_names":["kyegomez/mlxtransformer"],"tags_count":0,"template":false,"template_full_name":"kyegomez/Python-Package-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMLXTransformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMLXTransformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMLXTransformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyegomez%2FMLXTransformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyegomez","download_url":"https://codeload.github.com/kyegomez/MLXTransformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252836251,"owners_count":21811682,"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":["artificial-intelligence","gpt4","machine-learning","multi-modal","multi-modality"],"created_at":"2024-11-09T08:34:07.305Z","updated_at":"2025-10-04T08:21:42.680Z","avatar_url":"https://github.com/kyegomez.png","language":"Python","readme":"[![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)\n\n# MLX Transformer\nImplementation of high performance transformer modules in MLX by apple\n\n# Install\n`pip3 install --upgrade mlx-transformer`\n\n\n## Usage\n```python\nfrom mlx_transformer.main import Transformer\nfrom mlx.core.random.randint import randint\n\n\nmodel = Transformer(\n    vocab_size=10000,\n    depth=12,\n    dim = 512,\n    heads = 8,\n)\n\n# Define the lower and upper bounds of the interval\nlow = 0\nhigh = 10\n\n# Generate a single random integer within the interval [low, high)\nrand_int = randint(low, high)\n\nprint(rand_int)  # Output: a random integer between 0 and 9\n\n# Generate a random array of integers within the interval [low, high)\nshape = [1, 10000, 512]  # Shape of the output array\nq = randint(low, high, shape)\nk = randint(low, high, shape)\nv = randint(low, high, shape)\n\n# Use the random array to perform a forward pass through the model\noutput = model(q, k, v)\n\nprint(output.shape)\n\n```\n\n# License\nMIT\n\n\n\n","funding_links":["https://github.com/sponsors/kyegomez"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fmlxtransformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyegomez%2Fmlxtransformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyegomez%2Fmlxtransformer/lists"}