Text Classification
setfit
Safetensors
sentence-transformers
distilbert
generated_from_setfit_trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use wikd/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use wikd/test_model with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("wikd/test_model") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use wikd/test_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("wikd/test_model") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download config.json from wikd/test_model: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/wikd/test_model/resolve/main/config.json
- Command line
-
hf download hf://wikd/test_model/config.json
-
curl -L -o config.json https://huggingface.co/wikd/test_model/resolve/main/config.json
628 Bytes
| { | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "finetuning_task": "sst-2", | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "NEGATIVE", | |
| "1": "POSITIVE" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "NEGATIVE": 0, | |
| "POSITIVE": 1 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "vocab_size": 30522 | |
| } |