Downloads · 30 days
0
max-miller/circadia-sleep-student
circadia-sleep-student is a tabular classification model from max-miller. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for onnxruntime. The card lists the license as apache-2.0.
A tiny (103KB, 25,957 params) sleep stage classifier distilled from SleepFM for real-time edge deployment on NVIDIA Jetson TK1 and similar constrained devices.
Downloads · 30 days
0
Access
Public
Updated Mar 22, 2026
Repo size
226 KB
Likes
0
Public
Click a slice to open those files.
.pt121 KB · 53%
From the Hugging Face model README
A tiny (103KB, 25,957 params) sleep stage classifier distilled from SleepFM for real-time edge deployment on NVIDIA Jetson TK1 and similar constrained devices.
| Property | Value |
|---|---|
| Architecture | Conv1dStack |
| Parameters | 25,957 |
| Model size | 103.3 KB |
| Distillation temperature | 2 |
| Alpha (hard label weight) | 0.3 |
| Validation accuracy | 75.2% |
| Input shape | (B, S, 128) — pre-pooled embeddings |
| Output | 5-class logits (Wake, REM, N1, N2, N3) |
| ONNX opset | 11 |
Conv1dStack:
hidden_channels: 32
kernel_size: 5
| Spec | Value |
|---|---|
| Device | NVIDIA Jetson TK1 |
| CUDA cores | 192 |
| RAM | 2 GB |
| Compute capability | 3.2 |
import numpy as np
import onnxruntime as ort
session = ort.InferenceSession("Conv1dStack_T2_a0.3.onnx")
# Input: pre-pooled embeddings (batch, seq_len, 128)
embeddings = np.random.randn(1, 120, 128).astype(np.float32)
logits = session.run(None, {"input": embeddings})[0]
predicted_stages = np.argmax(logits, axis=-1)
# Stage mapping: 0=Wake, 1=REM, 2=N1, 3=N2, 4=N3
print(predicted_stages)
import torch
model = torch.jit.load("Conv1dStack_T2_a0.3.pt")
embeddings = torch.randn(1, 120, 128)
logits = model(embeddings)
predicted_stages = logits.argmax(dim=-1)
| File | Format | Description |
|---|---|---|
Conv1dStack_T2_a0.3.onnx | ONNX (opset 11) | For ONNX Runtime / TensorRT |
Conv1dStack_T2_a0.3.pt | TorchScript | For PyTorch / LibTorch on-device |
@misc{circadia-distill-2026,
title={Distilled Sleep Stage Classifier for Edge Deployment},
year={2026},
url={https://github.com/circadia}
}