Text Classification
Transformers
TensorBoard
Safetensors
English
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use Hartunka/tiny_bert_km_20_v1_stsb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hartunka/tiny_bert_km_20_v1_stsb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hartunka/tiny_bert_km_20_v1_stsb")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hartunka/tiny_bert_km_20_v1_stsb") model = AutoModelForSequenceClassification.from_pretrained("Hartunka/tiny_bert_km_20_v1_stsb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Hartunka/tiny_bert_km_20_v1_stsb: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/Hartunka/tiny_bert_km_20_v1_stsb/resolve/main/config.json
- Command line
-
hf download hf://Hartunka/tiny_bert_km_20_v1_stsb/config.json
-
curl -L -o config.json https://huggingface.co/Hartunka/tiny_bert_km_20_v1_stsb/resolve/main/config.json
652 Bytes
| { | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 512, | |
| "dropout": 0.1, | |
| "finetuning_task": "stsb", | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 8, | |
| "n_layers": 4, | |
| "n_topics": 20, | |
| "pad_token_id": 0, | |
| "problem_type": "regression", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.50.2", | |
| "vocab_size": 30522 | |
| } | |