SocialGrep/one-million-reddit-jokes
Viewer β’ Updated β’ 1M β’ 335 β’ 30
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).