{"id":42618050,"url":"https://github.com/lucidrains/x-mlps-pytorch","last_synced_at":"2026-01-29T04:03:52.598Z","repository":{"id":294656973,"uuid":"980198126","full_name":"lucidrains/x-mlps-pytorch","owner":"lucidrains","description":"Just a repository that will house some MLPs and their variants, so to avoid having to reimplement them again and again for different projects (especially RL)","archived":false,"fork":false,"pushed_at":"2026-01-27T14:07:24.000Z","size":84,"stargazers_count":44,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T01:03:03.764Z","etag":null,"topics":["artificial-intelligence","deep-learning","mlp"],"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/lucidrains.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-08T18:18:28.000Z","updated_at":"2026-01-27T14:07:43.000Z","dependencies_parsed_at":"2025-05-21T13:33:11.672Z","dependency_job_id":"7609fd7f-e18a-4345-b474-ef373ddbcae3","html_url":"https://github.com/lucidrains/x-mlps-pytorch","commit_stats":null,"previous_names":["lucidrains/x-mlps"],"tags_count":65,"template":false,"template_full_name":null,"purl":"pkg:github/lucidrains/x-mlps-pytorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidrains%2Fx-mlps-pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidrains%2Fx-mlps-pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidrains%2Fx-mlps-pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidrains%2Fx-mlps-pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucidrains","download_url":"https://codeload.github.com/lucidrains/x-mlps-pytorch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidrains%2Fx-mlps-pytorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28862139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","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":["artificial-intelligence","deep-learning","mlp"],"created_at":"2026-01-29T04:03:47.037Z","updated_at":"2026-01-29T04:03:52.592Z","avatar_url":"https://github.com/lucidrains.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## x-mlps-pytorch\n\nJust a repository that will house MLPs for Pytorch, from garden variety to the exotic, so as to avoid having to reimplement them again and again for different projects (especially RL)\n\n## Install\n\n```bash\n$ pip install x-mlps-pytorch\n```\n\n## Usage\n\n```python\nimport torch\nfrom x_mlps_pytorch import MLP\n\nactor = MLP(10, 16, 5)\n\ncritic = MLP(10, 32, 16, 1)\n\nstate = torch.randn(10)\n\naction_logits = actor(state) # (5,)\n\nvalues = critic(state) # (1,)\n```\n\n## Citations\n\n```bibtex\n@article{So2021PrimerSF,\n    title   = {Primer: Searching for Efficient Transformers for Language Modeling},\n    author  = {David R. So and Wojciech Ma'nke and Hanxiao Liu and Zihang Dai and Noam M. Shazeer and Quoc V. Le},\n    journal = {ArXiv},\n    year    = {2021},\n    volume  = {abs/2109.08668},\n    url     = {https://api.semanticscholar.org/CorpusID:237563187}\n}\n```\n\n```bibtex\n@article{Zhang2024ReLU2WD,\n    title   = {ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMs},\n    author  = {Zhengyan Zhang and Yixin Song and Guanghui Yu and Xu Han and Yankai Lin and Chaojun Xiao and Chenyang Song and Zhiyuan Liu and Zeyu Mi and Maosong Sun},\n    journal = {ArXiv},\n    year    = {2024},\n    volume  = {abs/2402.03804},\n    url     = {https://api.semanticscholar.org/CorpusID:267499856}\n}\n```\n\n```bibtex\n@inproceedings{Horuz2025TheRO,\n    title   = {The Resurrection of the ReLU},\n    author  = {Cocsku Can Horuz and Geoffrey Kasenbacher and Saya Higuchi and Sebastian Kairat and Jendrik Stoltz and Moritz Pesl and Bernhard A. Moser and Christoph Linse and Thomas Martinetz and Sebastian Otte},\n    year    = {2025},\n    url     = {https://api.semanticscholar.org/CorpusID:278959515}\n}\n```\n\n```bibtex\n@article{Loshchilov2024nGPTNT,\n    title   = {nGPT: Normalized Transformer with Representation Learning on the Hypersphere},\n    author  = {Ilya Loshchilov and Cheng-Ping Hsieh and Simeng Sun and Boris Ginsburg},\n    journal = {ArXiv},\n    year    = {2024},\n    volume  = {abs/2410.01131},\n    url     = {https://api.semanticscholar.org/CorpusID:273026160}\n}\n```\n\n```bibtex\n@article{Lee2025HypersphericalNF,\n    title   = {Hyperspherical Normalization for Scalable Deep Reinforcement Learning},\n    author  = {Hojoon Lee and Youngdo Lee and Takuma Seno and Donghu Kim and Peter Stone and Jaegul Choo},\n    journal = {ArXiv},\n    year    = {2025},\n    volume  = {abs/2502.15280},\n    url     = {https://api.semanticscholar.org/CorpusID:276558261}\n}\n```\n\n```bibtex\n@inproceedings{wang2025,\n    title   = {1000 Layer Networks for Self-Supervised {RL}: Scaling Depth Can Enable New Goal-Reaching Capabilities},\n    author  = {Kevin Wang and Ishaan Javali and Micha{\\l} Bortkiewicz and Tomasz Trzcinski and Benjamin Eysenbach},\n    booktitle = {The Thirty-ninth Annual Conference on Neural Information Processing Systems},\n    year    = {2025},\n    url     = {https://openreview.net/forum?id=s0JVsx3bx1}\n}\n```\n\n```bibtex\n@misc{chen2026postlayernormbackstableexpressive,\n    title   = {Post-LayerNorm Is Back: Stable, ExpressivE, and Deep}, \n    author  = {Chen Chen and Lai Wei},\n    year    = {2026},\n    eprint  = {2601.19895},\n    archivePrefix = {arXiv},\n    primaryClass = {cs.LG},\n    url     = {https://arxiv.org/abs/2601.19895}, \n}\n```\n\n```bibtex\n@inproceedings{dorovatas2025autocompressing,\n    title  = {Auto-Compressing Networks},\n    author = {Vaggelis Dorovatas and Georgios Paraskevopoulos and Alexandros Potamianos},\n    booktitle = {The Thirty-ninth Annual Conference on Neural Information Processing Systems},\n    year    = {2025},\n    url     = {https://openreview.net/forum?id=eIDa6pd9iQ}\n}\n```\n\n```bibtex\n@inproceedings{Lin2025ContinualLV,\n    title    = {Continual Learning via Sparse Memory Finetuning},\n    author   = {Jessy Lin and Luke S. Zettlemoyer and Gargi Ghosh and Wen-tau Yih and Aram H. Markosyan and Vincent-Pierre Berges and Barlas Ouguz},\n    year     = {2025},\n    url      = {https://api.semanticscholar.org/CorpusID:282203348},\n    blog_url = {https://jessylin.com/2025/10/20/continual-learning/}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidrains%2Fx-mlps-pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucidrains%2Fx-mlps-pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidrains%2Fx-mlps-pytorch/lists"}