Downloads · 30 days
0
ktubhyam/Spektron
Spektron is a feature extraction model from ktubhyam. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as mit.
Foundation model for vibrational spectroscopy using D-LinOSS (Damped Linear Oscillatory State Space) models.
Downloads · 30 days
0
Access
Public
Updated Feb 27, 2026
Repo size
—
Likes
1
Public
Click a slice to open those files.
.md5.7 KB · 79%
From the Hugging Face model README
Foundation model for vibrational spectroscopy using D-LinOSS (Damped Linear Oscillatory State Space) models.
Spektron is a state space model designed specifically for vibrational spectroscopy (IR, Raman). It combines:
Spectrum (B, 2048)
→ RawSpectralEmbedding # Conv1d + wavenumber PE + [CLS] + [DOMAIN]
→ D-LinOSS Backbone # 4 bidirectional layers, 256 hidden dim
→ MixtureOfExperts # 4 experts, top-2 gating
→ TransformerEncoder # 2 blocks
→ VIBHead # z_chem (128d) + z_inst (64d)
→ Task Heads # Reconstruction | CrossSpectral | Regression
Parameters: 6.6M total (4.7M backbone + 1.9M heads)
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Spectral Reconstruction | QM9S | MSRP | 0.0741 |
| Masked Prediction | QM9S | OT Loss | 0.0152 |
| VIB Disentanglement | QM9S | Domain Acc | 52.1% (≈chance) |
| Chemistry Preservation | QM9S | Chem Acc | 94.7% |
Primary Applications:
Research Areas:
import torch
from spektron import Spektron, SpektronConfig
# Load pretrained model
config = SpektronConfig.from_pretrained("ktubhyam/Spektron")
model = Spektron(config)
model.load_state_dict(torch.load("checkpoint.pt"))
model.eval()
# Predict Raman from IR spectrum
with torch.no_grad():
ir_spectrum = torch.randn(1, 2048) # Your IR spectrum
raman_pred = model.predict_cross_spectral(
ir_spectrum,
source_domain="ir",
target_domain="raman"
)
If you use Spektron in your research, please cite:
@software{karthikeyan2026spektron,
author = {Karthikeyan, Tubhyam},
title = {Spektron: Foundation Model for Vibrational Spectroscopy},
year = {2026},
publisher = {Zenodo},
version = {v0.1.0},
doi = {10.5281/zenodo.18802440},
url = {https://github.com/ktubhyam/Spektron}
}
MIT License - see LICENSE
Tubhyam Karthikeyan