SST-2 BERT

bert-base-uncased 在 SST-2 上微调后的情感分类模型。标签是 negative 和 positive。

小样本训练(2026-10-18,A40):训练 1800、验证 200、测试 872。验证准确率 0.830,测试准确率 0.829,F1 0.839。

浏览器演示(作业要交的页面):https://huggingface.co/spaces/weiyinew0430/nlp-sst2-bert

model.safetensors 是 PyTorch 权重。onnx/model.onnx 是 fp32 ONNX,onnx/model_quantized.onnx 是动态量化后的 8-bit 权重,给 transformers.js 在浏览器里用。

Downloads last month
35
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for weiyinew0430/nlp-sst2-bert

Quantized
(38)
this model

Dataset used to train weiyinew0430/nlp-sst2-bert

Space using weiyinew0430/nlp-sst2-bert 1