Downloads · 30 days
0
Hayasuki/hahascore-cascade
hahascore-cascade is a machine learning model from Hayasuki. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A multimodal sentence-level humor strength predictor (0–100 continuous score) that fuses text + audio through a Cascade Gate architecture, with Reddit pretraining for humor-style priors.
Downloads · 30 days
0
Access
Public
Updated Sep 27, 2026
Repo size
303 MB
Likes
0
Public
Click a slice to open those files.
.pt294 MB · 97%
From the Hugging Face model README
A multimodal sentence-level humor strength predictor (0–100 continuous score) that fuses text + audio through a Cascade Gate architecture, with Reddit pretraining for humor-style priors.
# Option 1: Use ONNX model (fast, no PyTorch)
import onnxruntime as ort
import numpy as np
session = ort.InferenceSession("v8_cascade_int8.onnx")
text = np.random.randn(1, 20, 768).astype(np.float32) # text features
audio = np.random.randn(1, 20, 791).astype(np.float32) # audio features
cross = np.zeros((1, 20, 16), dtype=np.float32) # optional cross-modal
scores, conf, gate = session.run(None, {
'text': text, 'audio': audio, 'cross': cross
})
print(f"Avg score: {scores.mean():.3f}, Max: {scores.max():.3f}")
# Option 2: PyTorch
import torch
from huggingface_hub import hf_hub_download
ckpt_path = hf_hub_download(repo_id="Hayasuki/hahascore-cascade",
filename="v8_finetuned.pt")
ckpt = torch.load(ckpt_path, map_location='cpu')
| Model | Reddit Pretrain | Val AUC | CPU Inference |
|---|---|---|---|
| v7 baseline | None | 0.860 (5-fold CV) | ~10ms |
| v8 v1 (smoke Reddit) | 2K samples | 0.807 | ~13ms |
| v8 v1 (full Reddit) | 30K samples | 0.802 | ~9ms |
┌─────────────────────────────────────────┐
│ Reddit DistilBERT (66M params) │ ← Continuous funniness pretraining
│ Pretrained on 30K Reddit upvotes │
└─────────────┬───────────────────────────┘
│ 768-dim
▼
┌─────────────────────────────────────────┐
│ Cascade Gate Fusion v8 │
│ • text_proj: 768→128 │
│ • audio_proj: 791→128 (WavLM/Prosody) │
│ • Multi-scale Attention │
│ • Cross-Modal Attention (4 heads) │
│ • Dynamic Gating (text-confidence) │
│ • BiGRU (2 layers, hidden=128) │
│ • Sigmoid Score Head │
└─────────────┬───────────────────────────┘
│ (20, 1) per segment
▼
Humor Strength Score (0-1)
| File | Description |
|---|---|
v8_finetuned.pt | PyTorch model (270 MB) |
v8_cascade_fp32.onnx | ONNX FP32 (0.3 MB) |
v8_cascade_int8.onnx | ONNX INT8 quantized (2.9 MB) |
v8_finetuned.json | Training metrics |
v8_cascade_metadata.json | Architecture spec |
reddit_distilbert.json | Pretrain metrics |
@misc{hahascore-cascade-v8,
author = {Das-rebel},
title = {HaHaScore Cascade v8: Multimodal Humor Strength Predictor with Reddit Pretraining},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/Das-rebel/HaHaScore}},
}
MIT License. Reddit data: CC-BY-4.0 (credit r/Jokes).