aecetin / SmolLM2-135M-PolyFFN

huggingface.co
Total runs: 665
24-hour runs: 1
7-day runs: 30
30-day runs: 661
Model's Last Updated: September 08 2026
text-generation

Introduction of SmolLM2-135M-PolyFFN

Model Details of SmolLM2-135M-PolyFFN

⚡ SmolLM2-135M-PolyFFN: Orthogonal Chebyshev Polynomial Weight Surgery

SmolLM2-135M-PolyFFN is an algebraically compressed and surgically transformed version of HuggingFaceTB/SmolLM2-135M-Instruct .

All 30 Transformer feed-forward network (FFN / SwiGLU) layers have been converted into orthogonal Chebyshev polynomial tensor operators using Zero-Backpropagation closed-form algebraic solving on an idempotent manifold (^2 = P$).

  • Author & Inventor: Dr. A. Emre ÇETİN ( [email protected] )
  • Official Patent: Protected under USPTO Application No. 64/149,540 ( Hardware-Accelerated Orthogonal Polynomial Tensor Operators, Zero-Backpropagation Closed-Form Algebraic Solvers, and In-Situ Weight Surgery for Deep Neural Networks and Transformers ).
  • Core Library: idempotent-poly (PyPI package: pip install idempotent-poly)
  • Interactive Showcase: Hugging Face Space

🔬 Key Innovations & Benchmarks
Metric Original SmolLM2-135M SmolLM2-135M-PolyFFN (Ours) Difference / Gain
FFN Parameters per Layer 2,654,208 1,327,104 -50.0% FFN Parameters
Total Model Parameters 134,516,736 94,756,224 -39.76 Million Parameters (-29.5%)
Optimization Method Multi-epoch AdamW Backprop Closed-form SVD + Ridge Zero Backpropagation
Convergence Time (per Layer) ~33.5 seconds (GPU) ~139 ms (GPU) 240.9x Faster
Algebraic Idempotency Error N/A (^2 \neq P$) $|\Pi^2 - \Pi|_F / |\Pi|_F = 4.70 \times 10^{-5}$ Exact Machine Idempotency
Inference Quality Natural & Coherent Natural & Coherent Zero Degradation (ResPoly)

📐 Mathematical Formulation

Instead of high-rank multi-matrix projections with intermediate non-linear activations: \text{FFN}(x) = \text{down_proj}(\text{SiLU}(\text{gate_proj}(x)) \odot \text{up_proj}(x))

We project input representations directly onto orthogonal Chebyshev polynomial basis manifolds: T_0(x) = 1, \quad T_1(x) = x, \quad T_{k+1}(x) = 2x T_k(x) - T_{k-1}(x)

The feed-forward mapping is computed via tensor contraction: \text{PolyFFN}(x) = \sum_{k=0}^K C_k \cdot T_k(\tilde{x}) + b

The coefficient tensor $ is solved analytically via regularized normal equations: C^* = (\Phi(X)^T \Phi(X) + \lambda I)^{-1} \Phi(X)^T Y and projected onto the idempotent subspace $\Pi = V_r V_r^T$ where $\Pi^2 = \Pi$.


💻 Quickstart & Inference

`python import torch from transformers import AutoTokenizer, AutoModelForCausalLM

Load model and tokenizer

model_id = 'aecetin/SmolLM2-135M-PolyFFN' tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float32)

prompt = 'The capital of France is' inputs = tokenizer(prompt, return_tensors='pt')

with torch.no_grad(): outputs = model.generate(**inputs, max_new_tokens=30, do_sample=False)

print(tokenizer.decode(outputs[0], skip_special_tokens=True)) `


📜 Citation & Intellectual Property

This work and its underlying mathematical architectures are protected under United States Patent Law: ibtex @patent{cetin2026orthogonalpoly, title={Hardware-Accelerated Orthogonal Polynomial Tensor Operators, Zero-Backpropagation Closed-Form Algebraic Solvers, and In-Situ Weight Surgery for Deep Neural Networks and Transformers}, author={Dr. Ahmet Emre {\c{C}}etin}, year={2026}, month={September}, note={U.S. Provisional Patent Application No. 64/149,540, Filed at USPTO} }

Runs of aecetin SmolLM2-135M-PolyFFN on huggingface.co

665
Total runs
1
24-hour runs
10
3-day runs
30
7-day runs
661
30-day runs

More Information About SmolLM2-135M-PolyFFN huggingface.co Model

More SmolLM2-135M-PolyFFN license Visit here:

https://choosealicense.com/licenses/apache-2.0

SmolLM2-135M-PolyFFN huggingface.co

SmolLM2-135M-PolyFFN huggingface.co is an AI model on huggingface.co that provides SmolLM2-135M-PolyFFN's model effect (), which can be used instantly with this aecetin SmolLM2-135M-PolyFFN model. huggingface.co supports a free trial of the SmolLM2-135M-PolyFFN model, and also provides paid use of the SmolLM2-135M-PolyFFN. Support call SmolLM2-135M-PolyFFN model through api, including Node.js, Python, http.

SmolLM2-135M-PolyFFN huggingface.co Url

https://huggingface.co/aecetin/SmolLM2-135M-PolyFFN

aecetin SmolLM2-135M-PolyFFN online free

SmolLM2-135M-PolyFFN huggingface.co is an online trial and call api platform, which integrates SmolLM2-135M-PolyFFN's modeling effects, including api services, and provides a free online trial of SmolLM2-135M-PolyFFN, you can try SmolLM2-135M-PolyFFN online for free by clicking the link below.

aecetin SmolLM2-135M-PolyFFN online free url in huggingface.co:

https://huggingface.co/aecetin/SmolLM2-135M-PolyFFN

SmolLM2-135M-PolyFFN install

SmolLM2-135M-PolyFFN is an open source model from GitHub that offers a free installation service, and any user can find SmolLM2-135M-PolyFFN on GitHub to install. At the same time, huggingface.co provides the effect of SmolLM2-135M-PolyFFN install, users can directly use SmolLM2-135M-PolyFFN installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SmolLM2-135M-PolyFFN install url in huggingface.co:

https://huggingface.co/aecetin/SmolLM2-135M-PolyFFN

Url of SmolLM2-135M-PolyFFN

SmolLM2-135M-PolyFFN huggingface.co Url

Provider of SmolLM2-135M-PolyFFN huggingface.co

aecetin
ORGANIZATIONS

Other API from aecetin