{"id":22409716,"url":"https://github.com/nanowell/differential-transformer-pytorch","last_synced_at":"2025-07-31T20:31:16.995Z","repository":{"id":259773927,"uuid":"869556248","full_name":"nanowell/Differential-Transformer-PyTorch","owner":"nanowell","description":"PyTorch implementation of the Differential-Transformer architecture for sequence modeling, specifically tailored as a decoder-only model similar to large language models (LLMs). The architecture incorporates a novel Differential Attention mechanism, Multi-Head structure, RMSNorm, and SwiGLU.","archived":false,"fork":false,"pushed_at":"2024-10-27T19:43:03.000Z","size":21,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-28T00:07:08.825Z","etag":null,"topics":["differential-transformer","large-language-models","machine-learning","pytorch"],"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/nanowell.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-10-08T13:48:40.000Z","updated_at":"2024-10-27T19:43:06.000Z","dependencies_parsed_at":"2024-10-28T00:07:10.948Z","dependency_job_id":"c922b5c1-de80-49e4-abac-9c3cd380cb02","html_url":"https://github.com/nanowell/Differential-Transformer-PyTorch","commit_stats":null,"previous_names":["nanowell/differential-transformer-pytorch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanowell%2FDifferential-Transformer-PyTorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanowell%2FDifferential-Transformer-PyTorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanowell%2FDifferential-Transformer-PyTorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanowell%2FDifferential-Transformer-PyTorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanowell","download_url":"https://codeload.github.com/nanowell/Differential-Transformer-PyTorch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228295600,"owners_count":17897596,"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":["differential-transformer","large-language-models","machine-learning","pytorch"],"created_at":"2024-12-05T12:09:30.293Z","updated_at":"2024-12-05T12:09:33.014Z","avatar_url":"https://github.com/nanowell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Differential-Transformer-PyTorch\nUnofficial PyTorch implementation of the Differential-Transformer architecture for sequence modeling, specifically tailored as a decoder-only model similar to large language models (LLMs). The architecture incorporates a novel Differential Attention mechanism, Multi-Head structure, RMSNorm, and SwiGLU.\n![image](https://github.com/user-attachments/assets/b3ebaf46-9db7-464b-8ef0-3095c4bdfc19)\n\n![arch](https://github.com/user-attachments/assets/7ca6f267-2df0-4298-9974-1edc9bc19c64)\n\n\n```bibtex\n@misc{ye2024differentialtransformer,\n      title={Differential Transformer}, \n      author={Tianzhu Ye and Li Dong and Yuqing Xia and Yutao Sun and Yi Zhu and Gao Huang and Furu Wei},\n      year={2024},\n      eprint={2410.05258},\n      archivePrefix={arXiv},\n      primaryClass={cs.CL},\n      url={https://arxiv.org/abs/2410.05258}, \n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanowell%2Fdifferential-transformer-pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanowell%2Fdifferential-transformer-pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanowell%2Fdifferential-transformer-pytorch/lists"}