correct segsum function

This commit is contained in:
Goekdeniz-Guelmez
2025-02-26 14:46:46 +01:00
parent b7c0bdfd49
commit a683344450
3 changed files with 939 additions and 26 deletions

View File

@@ -1,14 +1,3 @@
"""
mamba2-minimal
==============
A minimal, single-file implementation of the Mamba-2 model in PyTorch.
> **Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality**
> Authors: Tri Dao, Albert Gu
> Paper: https://arxiv.org/abs/2405.21060
"""
import json
from dataclasses import dataclass
from typing import Iterable, NamedTuple, TypeAlias, cast