{"id":19815971,"url":"https://github.com/replicate/cog-mamba","last_synced_at":"2026-06-13T15:31:56.250Z","repository":{"id":221035709,"uuid":"753237561","full_name":"replicate/cog-mamba","owner":"replicate","description":"Cog wrapper for Mamba language models","archived":false,"fork":false,"pushed_at":"2024-02-05T19:06:40.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-17T18:38:28.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replicate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-02-05T18:24:05.000Z","updated_at":"2024-02-25T14:58:44.000Z","dependencies_parsed_at":"2024-02-05T21:28:54.521Z","dependency_job_id":"27acce3d-01a5-4731-92a5-5655f62b2341","html_url":"https://github.com/replicate/cog-mamba","commit_stats":null,"previous_names":["replicate/cog-mamba"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/replicate/cog-mamba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fcog-mamba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fcog-mamba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fcog-mamba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fcog-mamba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replicate","download_url":"https://codeload.github.com/replicate/cog-mamba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fcog-mamba/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34290342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-12T10:07:55.018Z","updated_at":"2026-06-13T15:31:56.232Z","avatar_url":"https://github.com/replicate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cog wrapper for Mamba LLMs\nThis is a cog wrapper for Mamba LLM models. See the original [repo](https://github.com/state-spaces/mamba), [paper](https://arxiv.org/abs/2312.00752) and Replicate [demo](https://replicate.com/adirik/mamba-130m) for details.\n\n\n## Basic Usage\nYou will need to have [Cog](https://github.com/replicate/cog/blob/main/docs/getting-started-own-model.md) and Docker installed to serve your model as an API. Follow the [model pushing guide](https://replicate.com/docs/guides/push-a-model) to push your own fork of the model to [Replicate](https://replicate.com) with Cog. To run a prediction:\n\n```bash\ncog predict -i prompt=\"How are you doing today?\"\n```\n\nTo start your server and serve the model as an API:\n```bash\ncog run -p 5000 python -m cog.server.http\n```\n\nThe API input arguments are as follows:\n\n- **prompt:** The text prompt for Mamba.  \n- **max_length:** Maximum number of tokens to generate. A word is generally 2-3 tokens.  \n- **temperature:** Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.  \n- **top_p:** Samples from the top p percentage of most likely tokens during text decoding, lower to ignore less likely tokens.  \n- **top_k:** Samples from the top k most likely tokens during text decoding, lower to ignore less likely tokens.  \n- **repetition_penalty:** Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.   \n- **seed:** The seed parameter for deterministic text generation. A specific seed can be used to reproduce results or left blank for random generation.  \n\n\n## References\n```\n@article{mamba,\n  title={Mamba: Linear-Time Sequence Modeling with Selective State Spaces},\n  author={Gu, Albert and Dao, Tri},\n  journal={arXiv preprint arXiv:2312.00752},\n  year={2023}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fcog-mamba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplicate%2Fcog-mamba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fcog-mamba/lists"}