Text Classification
Transformers
PyTorch
English
deberta-v2
Trained with AutoTrain
text-embeddings-inference
Instructions to use whispAI/ClaimBuster-DeBERTaV2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whispAI/ClaimBuster-DeBERTaV2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="whispAI/ClaimBuster-DeBERTaV2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("whispAI/ClaimBuster-DeBERTaV2") model = AutoModelForSequenceClassification.from_pretrained("whispAI/ClaimBuster-DeBERTaV2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit From AutoTrain
Browse filesFiles changed (9)
- .gitattributes+3
- README.mdAdded+56
- added_tokens.jsonAdded+3
- config.jsonAdded+48
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+9
- spm.modelAdded+3
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+17
31 unmodified lines32333431 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text31 unmodified lines32333435363731 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.tar.gz filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556---tags:- autotrain- text-classificationlanguage:- enwidget:- text: "I love AutoTrain 🤗"datasets:- lucafrost/autotrain-data-claimbusterco2_eq_emissions: emissions: 23.102349586537482---
# Model Trained Using AutoTrain
- Problem type: Multi-class Classification- Model ID: 3165789318- CO2 Emissions (in grams): 23.1023
## Validation Metrics
- Loss: 0.405- Accuracy: 0.842- Macro F1: 0.753- Micro F1: 0.842- Weighted F1: 0.843- Macro Precision: 0.750- Micro Precision: 0.842- Weighted Precision: 0.844- Macro Recall: 0.756- Micro Recall: 0.842- Weighted Recall: 0.842
## Usage
You can use cURL to access this model:
```$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/lucafrost/autotrain-claimbuster-3165789318```
Or Python API:
```from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("lucafrost/autotrain-claimbuster-3165789318", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("lucafrost/autotrain-claimbuster-3165789318", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)```123{ "[MASK]": 128000}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ "_name_or_path": "AutoTrain", "_num_labels": 3, "architectures": [ "DebertaV2ForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "-1", "1": "0", "2": "1" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "-1": 0, "0": 1, "1": 2 }, "layer_norm_eps": 1e-07, "max_length": 192, "max_position_embeddings": 512, "max_relative_positions": -1, "model_type": "deberta-v2", "norm_rel_ebd": "layer_norm", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "padding": "max_length", "pooler_dropout": 0, "pooler_hidden_act": "gelu", "pooler_hidden_size": 768, "pos_att_type": [ "p2c", "c2p" ], "position_biased_input": false, "position_buckets": 256, "relative_attention": true, "share_att_key": true, "torch_dtype": "float32", "transformers_version": "4.25.1", "type_vocab_size": 0, "vocab_size": 128100}123version https://git-lfs.github.com/spec/v1oid sha256:2331f5fb19172e1f89bb7519d680d1de8d8ce1d6cce2f0b481f42476c62ac021size 737771833123456789{ "bos_token": "[CLS]", "cls_token": "[CLS]", "eos_token": "[SEP]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fdsize 2464616123version https://git-lfs.github.com/spec/v1oid sha256:8e3c28173d512c595ae9c4056e9e01b80670c0bb412995522689ebd8e3f00aebsize 86568161234567891011121314151617{ "bos_token": "[CLS]", "cls_token": "[CLS]", "do_lower_case": false, "eos_token": "[SEP]", "mask_token": "[MASK]", "model_max_length": 1000000000000000019884624838656, "name_or_path": "AutoTrain", "pad_token": "[PAD]", "sep_token": "[SEP]", "sp_model_kwargs": {}, "special_tokens_map_file": null, "split_by_punct": false, "tokenizer_class": "DebertaV2Tokenizer", "unk_token": "[UNK]", "vocab_type": "spm"}.gitattributes+3
README.mdAdded+56
added_tokens.jsonAdded+3
config.jsonAdded+48
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+9
spm.modelAdded+3
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+17