[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MADJ72SQGNPHRVN32JQ8P2":3,"skill-same:01M6MADJ72SQGNPHRVN32JQ8P2":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6MADJ72SQGNPHRVN32JQ8P2","mamba-architecture",null,"Explains how to use Mamba selective state-space models (state-spaces\u002Fmamba package, Mamba-1 with d_state=16 and Mamba-2 with multi-head structure and d_state=128) for linear-time sequence modeling. Covers installation, the Mamba block, building a language model with MambaLMHeadModel, loading pretrained state-spaces checkpoints (130M to 2.8B) from HuggingFace, and benchmarking against Transformers. Use when implementing or loading Mamba models, processing very long sequences without a KV cache, building streaming applications, choosing between Mamba-1 and Mamba-2, or fixing install and CUDA memory problems. Requires Linux and an NVIDIA GPU. Do not use for standard Transformer models, or for RWKV, RetNet, or Hyena architectures.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"architecture","mamba architecture","Mamba","sequence","memory","for","implementing","loading","Model Architecture","Efficient Inference","processing","architectures","how to","modeling","time","structure","do","complexity","use","context","model","how","applications","Transformers","NVIDIA","streaming","state","training","benchmarking","2026-11-10 10:12:30",false,"---\nname: mamba-architecture\ndescription: Explains how to use Mamba selective state-space models (state-spaces\u002Fmamba package, Mamba-1 with d_state=16 and Mamba-2 with multi-head structure and d_state=128) for linear-time sequence modeling. Covers installation, the Mamba block, building a language model with MambaLMHeadModel, loading pretrained state-spaces checkpoints (130M to 2.8B) from HuggingFace, and benchmarking against Transformers. Use when implementing or loading Mamba models, processing very long sequences without a KV cache, building streaming applications, choosing between Mamba-1 and Mamba-2, or fixing install and CUDA memory problems. Requires Linux and an NVIDIA GPU. Do not use for standard Transformer models, or for RWKV, RetNet, or Hyena architectures.\nlicense: MIT\nmetadata:\n  version: 1.0.0\n  category: ml-training\n  maintainer: Kalaris Labs\n  tags: Model Architecture, Mamba, State Space Models, SSM, Linear Complexity, Long Context, Efficient Inference, Hardware-Aware, Alternative To Transformers\n  dependencies: mamba-ssm, torch, transformers, causal-conv1d\n---\n\n# Mamba - Selective State Space Models\n\n## Quick start\n\nMamba is a state-space model architecture achieving O(n) linear complexity for sequence modeling.\n\n**Installation**:\n```bash\n# Install causal-conv1d (optional, for efficiency)\npip install causal-conv1d>=1.4.0\n\n# Install Mamba\npip install mamba-ssm\n# Or both together\npip install mamba-ssm[causal-conv1d]\n```\n\n**Prerequisites**: Linux, NVIDIA GPU, PyTorch 1.12+, CUDA 11.6+\n\n**Basic usage** (Mamba block):\n```python\nimport torch\nfrom mamba_ssm import Mamba\n\nbatch, length, dim = 2, 64, 16\nx = torch.randn(batch, length, dim).to(\"cuda\")\n\nmodel = Mamba(\n    d_model=dim,      # Model dimension\n    d_state=16,       # SSM state dimension\n    d_conv=4,         # Conv1d kernel size\n    expand=2          # Expansion factor\n).to(\"cuda\")\n\ny = model(x)  # O(n) complexity!\nassert y.shape == x.shape\n```\n\n## Common workflows\n\n### Workflow 1: Language model with Mamba-2\n\n**Complete LM with generation**:\n```python\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\nfrom mamba_ssm.models.config_mamba import MambaConfig\nimport torch\n\n# Configure Mamba-2 LM\nconfig = MambaConfig(\n    d_model=1024,           # Hidden dimension\n    n_layer=24,             # Number of layers\n    vocab_size=50277,       # Vocabulary size\n    ssm_cfg=dict(\n        layer=\"Mamba2\",     # Use Mamba-2\n        d_state=128,        # Larger state for Mamba-2\n        headdim=64,         # Head dimension\n        ngroups=1           # Number of groups\n    )\n)\n\nmodel = MambaLMHeadModel(config, device=\"cuda\", dtype=torch.float16)\n\n# Generate text\ninput_ids = torch.randint(0, 1000, (1, 20), device=\"cuda\", dtype=torch.long)\noutput = model.generate(\n    input_ids=input_ids,\n    max_length=100,\n    temperature=0.7,\n    top_p=0.9\n)\n```\n\n### Workflow 2: Use pretrained Mamba models\n\n**Load from HuggingFace**:\n```python\nfrom transformers import AutoTokenizer\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\n\n# Load pretrained model\nmodel_name = \"state-spaces\u002Fmamba-2.8b\"\ntokenizer = AutoTokenizer.from_pretrained(\"EleutherAI\u002Fgpt-neox-20b\")  # Use compatible tokenizer\nmodel = MambaLMHeadModel.from_pretrained(model_name, device=\"cuda\", dtype=torch.float16)\n\n# Generate\nprompt = \"The future of AI is\"\ninput_ids = tokenizer(prompt, return_tensors=\"pt\").input_ids.to(\"cuda\")\noutput_ids = model.generate(\n    input_ids=input_ids,\n    max_length=200,\n    temperature=0.7,\n    top_p=0.9,\n    repetition_penalty=1.2\n)\ngenerated_text = tokenizer.decode(output_ids[0])\nprint(generated_text)\n```\n\n**Available models**:\n- `state-spaces\u002Fmamba-130m`\n- `state-spaces\u002Fmamba-370m`\n- `state-spaces\u002Fmamba-790m`\n- `state-spaces\u002Fmamba-1.4b`\n- `state-spaces\u002Fmamba-2.8b`\n\n### Workflow 3: Mamba-1 vs Mamba-2\n\n**Mamba-1** (smaller state):\n```python\nfrom mamba_ssm import Mamba\n\nmodel = Mamba(\n    d_model=256,\n    d_state=16,      # Smaller state dimension\n    d_conv=4,\n    expand=2\n).to(\"cuda\")\n```\n\n**Mamba-2** (multi-head, larger state):\n```python\nfrom mamba_ssm import Mamba2\n\nmodel = Mamba2(\n    d_model=256,\n    d_state=128,     # Larger state dimension\n    d_conv=4,\n    expand=2,\n    headdim=64,      # Head dimension for multi-head\n    ngroups=1        # Parallel groups\n).to(\"cuda\")\n```\n\n**Key differences**:\n- **State size**: Mamba-1 (d_state=16) vs Mamba-2 (d_state=128)\n- **Architecture**: Mamba-2 has multi-head structure\n- **Normalization**: Mamba-2 uses RMSNorm\n- **Distributed**: Mamba-2 supports tensor parallelism\n\n### Workflow 4: Benchmark vs Transformers\n\n**Generation speed comparison**:\n```bash\n# Benchmark Mamba\npython benchmarks\u002Fbenchmark_generation_mamba_simple.py \\\n  --model-name \"state-spaces\u002Fmamba-2.8b\" \\\n  --prompt \"The future of machine learning is\" \\\n  --topp 0.9 --temperature 0.7 --repetition-penalty 1.2\n\n# Benchmark Transformer\npython benchmarks\u002Fbenchmark_generation_mamba_simple.py \\\n  --model-name \"EleutherAI\u002Fpythia-2.8b\" \\\n  --prompt \"The future of machine learning is\" \\\n  --topp 0.9 --temperature 0.7 --repetition-penalty 1.2\n```\n\n**Expected results**:\n- **Mamba**: 5× faster inference\n- **Memory**: No KV cache needed\n- **Scaling**: Linear with sequence length\n\n## When to use vs alternatives\n\n**Use Mamba when**:\n- Need long sequences (100K+ tokens)\n- Want faster inference than Transformers\n- Memory-constrained (no KV cache)\n- Building streaming applications\n- Linear scaling important\n\n**Advantages**:\n- **O(n) complexity**: Linear vs quadratic\n- **5× faster inference**: No attention overhead\n- **No KV cache**: Lower memory usage\n- **Million-token sequences**: Hardware-efficient\n- **Streaming**: Constant memory per token\n\n**Use alternatives instead**:\n- **Transformers**: Need best-in-class performance, have compute\n- **RWKV**: Want RNN+Transformer hybrid\n- **RetNet**: Need retention-based architecture\n- **Hyena**: Want convolution-based approach\n\n## Common issues\n\n**Issue: CUDA out of memory**\n\nReduce batch size or use gradient checkpointing:\n```python\nmodel = MambaLMHeadModel(config, device=\"cuda\", dtype=torch.float16)\nmodel.gradient_checkpointing_enable()  # Enable checkpointing\n```\n\n**Issue: Slow installation**\n\nInstall binary wheels (not source):\n```bash\npip install mamba-ssm --no-build-isolation\n```\n\n**Issue: Missing causal-conv1d**\n\nInstall separately:\n```bash\npip install causal-conv1d>=1.4.0\n```\n\n**Issue: Model not loading from HuggingFace**\n\nUse `MambaLMHeadModel.from_pretrained` (not `AutoModel`):\n```python\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\nmodel = MambaLMHeadModel.from_pretrained(\"state-spaces\u002Fmamba-2.8b\")\n```\n\n## Advanced topics\n\n**Selective SSM**: See references\u002Fselective-ssm.md for mathematical formulation, state-space equations, and how selectivity enables O(n) complexity.\n\n**Mamba-2 architecture**: See references\u002Fmamba2-details.md for multi-head structure, tensor parallelism, and distributed training setup.\n\n**Performance optimization**: See references\u002Fperformance.md for hardware-aware design, CUDA kernels, and memory efficiency techniques.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA with CUDA 11.6+\n- **VRAM**:\n  - 130M model: 2GB\n  - 370M model: 4GB\n  - 790M model: 8GB\n  - 1.4B model: 14GB\n  - 2.8B model: 28GB (FP16)\n- **Inference**: 5× faster than Transformers\n- **Memory**: No KV cache (lower than Transformers)\n\n**Performance** (vs Transformers):\n- **Speed**: 5× faster inference\n- **Memory**: 50% less (no KV cache)\n- **Scaling**: Linear vs quadratic\n\n## Resources\n\n- Paper (Mamba-1): https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.00752 (Dec 2023)\n- Paper (Mamba-2): https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.21060 (May 2024)\n- GitHub: https:\u002F\u002Fgithub.com\u002Fstate-spaces\u002Fmamba ⭐ 13,000+\n- Models: https:\u002F\u002Fhuggingface.co\u002Fstate-spaces\n- Docs: Repository README and wiki\n\n## Agent operating procedure\n\n1. **Check the environment.** Check GPU type, memory and driver\u002FCUDA versions (`nvidia-smi`), framework versions, and dataset location and size.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Do a smoke run: tiny model or subset, few steps, and confirm loss decreases and checkpoints save.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Track metrics on held-out data, compare against a baseline, and record seeds, configs and hardware.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| CUDA out-of-memory | Reduce batch size, enable gradient accumulation\u002Fcheckpointing or mixed precision, or shard the model. |\n| Loss is NaN or diverges | Lower the learning rate, check data for invalid values, and enable gradient clipping. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Never claim training results without logs; estimate compute cost before launching large jobs.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `rwkv-architecture`: Covers the RWKV (Receptance Weighted Key Value) architecture, an RNN\u002FTransformer hybrid with O(n) inference and no KV cache, including RWKV…\n- `optimizing-attention-flash`: Enables Flash Attention for transformer models using PyTorch native scaled_dot_product_attention (PyTorch 2.2+) or the flash-attn library,…\n","# Mamba - Selective State Space Models\n\n## Quick start\n\nMamba is a state-space model architecture achieving O(n) linear complexity for sequence modeling.\n\n**Installation**:\n```bash\n# Install causal-conv1d (optional, for efficiency)\npip install causal-conv1d>=1.4.0\n\n# Install Mamba\npip install mamba-ssm\n# Or both together\npip install mamba-ssm[causal-conv1d]\n```\n\n**Prerequisites**: Linux, NVIDIA GPU, PyTorch 1.12+, CUDA 11.6+\n\n**Basic usage** (Mamba block):\n```python\nimport torch\nfrom mamba_ssm import Mamba\n\nbatch, length, dim = 2, 64, 16\nx = torch.randn(batch, length, dim).to(\"cuda\")\n\nmodel = Mamba(\n    d_model=dim,      # Model dimension\n    d_state=16,       # SSM state dimension\n    d_conv=4,         # Conv1d kernel size\n    expand=2          # Expansion factor\n).to(\"cuda\")\n\ny = model(x)  # O(n) complexity!\nassert y.shape == x.shape\n```\n\n## Common workflows\n\n### Workflow 1: Language model with Mamba-2\n\n**Complete LM with generation**:\n```python\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\nfrom mamba_ssm.models.config_mamba import MambaConfig\nimport torch\n\n# Configure Mamba-2 LM\nconfig = MambaConfig(\n    d_model=1024,           # Hidden dimension\n    n_layer=24,             # Number of layers\n    vocab_size=50277,       # Vocabulary size\n    ssm_cfg=dict(\n        layer=\"Mamba2\",     # Use Mamba-2\n        d_state=128,        # Larger state for Mamba-2\n        headdim=64,         # Head dimension\n        ngroups=1           # Number of groups\n    )\n)\n\nmodel = MambaLMHeadModel(config, device=\"cuda\", dtype=torch.float16)\n\n# Generate text\ninput_ids = torch.randint(0, 1000, (1, 20), device=\"cuda\", dtype=torch.long)\noutput = model.generate(\n    input_ids=input_ids,\n    max_length=100,\n    temperature=0.7,\n    top_p=0.9\n)\n```\n\n### Workflow 2: Use pretrained Mamba models\n\n**Load from HuggingFace**:\n```python\nfrom transformers import AutoTokenizer\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\n\n# Load pretrained model\nmodel_name = \"state-spaces\u002Fmamba-2.8b\"\ntokenizer = AutoTokenizer.from_pretrained(\"EleutherAI\u002Fgpt-neox-20b\")  # Use compatible tokenizer\nmodel = MambaLMHeadModel.from_pretrained(model_name, device=\"cuda\", dtype=torch.float16)\n\n# Generate\nprompt = \"The future of AI is\"\ninput_ids = tokenizer(prompt, return_tensors=\"pt\").input_ids.to(\"cuda\")\noutput_ids = model.generate(\n    input_ids=input_ids,\n    max_length=200,\n    temperature=0.7,\n    top_p=0.9,\n    repetition_penalty=1.2\n)\ngenerated_text = tokenizer.decode(output_ids[0])\nprint(generated_text)\n```\n\n**Available models**:\n- `state-spaces\u002Fmamba-130m`\n- `state-spaces\u002Fmamba-370m`\n- `state-spaces\u002Fmamba-790m`\n- `state-spaces\u002Fmamba-1.4b`\n- `state-spaces\u002Fmamba-2.8b`\n\n### Workflow 3: Mamba-1 vs Mamba-2\n\n**Mamba-1** (smaller state):\n```python\nfrom mamba_ssm import Mamba\n\nmodel = Mamba(\n    d_model=256,\n    d_state=16,      # Smaller state dimension\n    d_conv=4,\n    expand=2\n).to(\"cuda\")\n```\n\n**Mamba-2** (multi-head, larger state):\n```python\nfrom mamba_ssm import Mamba2\n\nmodel = Mamba2(\n    d_model=256,\n    d_state=128,     # Larger state dimension\n    d_conv=4,\n    expand=2,\n    headdim=64,      # Head dimension for multi-head\n    ngroups=1        # Parallel groups\n).to(\"cuda\")\n```\n\n**Key differences**:\n- **State size**: Mamba-1 (d_state=16) vs Mamba-2 (d_state=128)\n- **Architecture**: Mamba-2 has multi-head structure\n- **Normalization**: Mamba-2 uses RMSNorm\n- **Distributed**: Mamba-2 supports tensor parallelism\n\n### Workflow 4: Benchmark vs Transformers\n\n**Generation speed comparison**:\n```bash\n# Benchmark Mamba\npython benchmarks\u002Fbenchmark_generation_mamba_simple.py \\\n  --model-name \"state-spaces\u002Fmamba-2.8b\" \\\n  --prompt \"The future of machine learning is\" \\\n  --topp 0.9 --temperature 0.7 --repetition-penalty 1.2\n\n# Benchmark Transformer\npython benchmarks\u002Fbenchmark_generation_mamba_simple.py \\\n  --model-name \"EleutherAI\u002Fpythia-2.8b\" \\\n  --prompt \"The future of machine learning is\" \\\n  --topp 0.9 --temperature 0.7 --repetition-penalty 1.2\n```\n\n**Expected results**:\n- **Mamba**: 5× faster inference\n- **Memory**: No KV cache needed\n- **Scaling**: Linear with sequence length\n\n## When to use vs alternatives\n\n**Use Mamba when**:\n- Need long sequences (100K+ tokens)\n- Want faster inference than Transformers\n- Memory-constrained (no KV cache)\n- Building streaming applications\n- Linear scaling important\n\n**Advantages**:\n- **O(n) complexity**: Linear vs quadratic\n- **5× faster inference**: No attention overhead\n- **No KV cache**: Lower memory usage\n- **Million-token sequences**: Hardware-efficient\n- **Streaming**: Constant memory per token\n\n**Use alternatives instead**:\n- **Transformers**: Need best-in-class performance, have compute\n- **RWKV**: Want RNN+Transformer hybrid\n- **RetNet**: Need retention-based architecture\n- **Hyena**: Want convolution-based approach\n\n## Common issues\n\n**Issue: CUDA out of memory**\n\nReduce batch size or use gradient checkpointing:\n```python\nmodel = MambaLMHeadModel(config, device=\"cuda\", dtype=torch.float16)\nmodel.gradient_checkpointing_enable()  # Enable checkpointing\n```\n\n**Issue: Slow installation**\n\nInstall binary wheels (not source):\n```bash\npip install mamba-ssm --no-build-isolation\n```\n\n**Issue: Missing causal-conv1d**\n\nInstall separately:\n```bash\npip install causal-conv1d>=1.4.0\n```\n\n**Issue: Model not loading from HuggingFace**\n\nUse `MambaLMHeadModel.from_pretrained` (not `AutoModel`):\n```python\nfrom mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel\nmodel = MambaLMHeadModel.from_pretrained(\"state-spaces\u002Fmamba-2.8b\")\n```\n\n## Advanced topics\n\n**Selective SSM**: See references\u002Fselective-ssm.md for mathematical formulation, state-space equations, and how selectivity enables O(n) complexity.\n\n**Mamba-2 architecture**: See references\u002Fmamba2-details.md for multi-head structure, tensor parallelism, and distributed training setup.\n\n**Performance optimization**: See references\u002Fperformance.md for hardware-aware design, CUDA kernels, and memory efficiency techniques.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA with CUDA 11.6+\n- **VRAM**:\n  - 130M model: 2GB\n  - 370M model: 4GB\n  - 790M model: 8GB\n  - 1.4B model: 14GB\n  - 2.8B model: 28GB (FP16)\n- **Inference**: 5× faster than Transformers\n- **Memory**: No KV cache (lower than Transformers)\n\n**Performance** (vs Transformers):\n- **Speed**: 5× faster inference\n- **Memory**: 50% less (no KV cache)\n- **Scaling**: Linear vs quadratic\n\n## Resources\n\n- Paper (Mamba-1): https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.00752 (Dec 2023)\n- Paper (Mamba-2): https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.21060 (May 2024)\n- GitHub: https:\u002F\u002Fgithub.com\u002Fstate-spaces\u002Fmamba ⭐ 13,000+\n- Models: https:\u002F\u002Fhuggingface.co\u002Fstate-spaces\n- Docs: Repository README and wiki\n\n## Agent operating procedure\n\n1. **Check the environment.** Check GPU type, memory and driver\u002FCUDA versions (`nvidia-smi`), framework versions, and dataset location and size.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Do a smoke run: tiny model or subset, few steps, and confirm loss decreases and checkpoints save.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Track metrics on held-out data, compare against a baseline, and record seeds, configs and hardware.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| CUDA out-of-memory | Reduce batch size, enable gradient accumulation\u002Fcheckpointing or mixed precision, or shard the model. |\n| Loss is NaN or diverges | Lower the learning rate, check data for invalid values, and enable gradient clipping. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Never claim training results without logs; estimate compute cost before launching large jobs.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `rwkv-architecture`: Covers the RWKV (Receptance Weighted Key Value) architecture, an RNN\u002FTransformer hybrid with O(n) inference and no KV cache, including RWKV…\n- `optimizing-attention-flash`: Enables Flash Attention for transformer models using PyTorch native scaled_dot_product_attention (PyTorch 2.2+) or the flash-attn library,…\n",{"name":5,"license":15,"metadata":53,"description":7},{"tags":54,"version":55,"category":56,"maintainer":57,"dependencies":58},"Model Architecture, Mamba, State Space Models, SSM, Linear Complexity, Long Context, Efficient Inference, Hardware-Aware, Alternative To Transformers","1.0.0","ml-training","Kalaris Labs","mamba-ssm, torch, transformers, causal-conv1d","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill mamba-architecture",{"tool":75,"command":76},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill mamba-architecture",{"tool":78,"command":79},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill mamba-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture\u002FSKILL.md",true,[83,89,93],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Farchitecture-details.md","REFERENCE","参考文档",5456,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture\u002Freferences\u002Farchitecture-details.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fbenchmarks.md",8120,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture\u002Freferences\u002Fbenchmarks.md",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Ftraining-guide.md",9012,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fskills\u002Fmamba-architecture\u002Freferences\u002Ftraining-guide.md",[98,107,115,123,131,139],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":106},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":106},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":106},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":106},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":106},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":143,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":106},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]