allenai/c4
Viewer • Updated • 10.4B • 1.02M • 674
How to use Angshul/SpliNet with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="Angshul/SpliNet", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForMaskedLM
model = AutoModelForMaskedLM.from_pretrained("Angshul/SpliNet", trust_remote_code=True, device_map="auto")SpliNet: A Zero-Parameter B-Spline Transformer with Linear Complexity
SpliNet replaces learned self-attention token mixing with a fixed order-2 single-sided cardinal B-spline operator.
This model was pretrained from scratch on exactly 2,000,000,000 C4 tokens using the dedicated SpliNet tokenizer.
Load with trust_remote_code=True.
OpenReview: https://openreview.net/forum?id=nWHnuiEF3C GitHub: https://github.com/AngshulMajumdar/SpliNet