Model
rv2-models/rv2-models-sst2
- Task:Text Classification
- Libraries:transformers
- Formats:safetensors
- Languages:English
- License:apache-2.0
- arXiv:arXiv:1910.01108
Dedicated endpoint
Sign in to deployInference Providers
This model isn't deployed by any Inference Provider.
Spaces
Create a Space with this modelUse this model
Choose individual files there, or download a full snapshot with the Python example below.
Download with the whiteduck client
pip install https://provyd.xyz/clients/whiteduck-0.1.0-py3-none-any.whl
wd login --host 'https://api.provyd.xyz'
wd download 'rv2-models/rv2-models-sst2'Using the Hugging Face client instead
Install huggingface_hub with pip install huggingface_hub, then download this pinned snapshot. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token for private repositories. Running the downloaded model requires software that supports its architecture.
Keep your whiteduck token away from calls that ignore HF_ENDPOINT, such as list_inference_endpoints: they send it to Hugging Face. See Docs.
from huggingface_hub import snapshot_download
import os
path = snapshot_download(
repo_id='rv2-models/rv2-models-sst2',
revision='87e14933aea3750eb395ed3ef858a8a1fa4d815d',
endpoint='https://api.provyd.xyz',
token=os.environ.get("HF_TOKEN") or False,
)Classify with transformers
import os
os.environ["HF_ENDPOINT"] = 'https://api.provyd.xyz'
from transformers import pipeline
pipe = pipeline("text-classification", model='rv2-models/rv2-models-sst2')
labels = pipe("Hello")Call it with huggingface_hub
Works once the owner has started the model. Set WD_INFERENCE_KEY to a model API key.
import os
from huggingface_hub import InferenceClient
client = InferenceClient(model='https://api.provyd.xyz/api/wd/inference/models/rv2-models/rv2-models-sst2', token=os.environ["WD_INFERENCE_KEY"])
labels = client.text_classification("Hello")Use with local apps
This hub is self-hosted, so each command points the tool at it. Add a whiteduck access token as HF_TOKEN (the variable the Hugging Face client reads) for private repositories.
vLLM
# vLLM downloads through huggingface_hub, which honours HF_ENDPOINT; set HF_TOKEN for a private repository.
HF_ENDPOINT='https://api.provyd.xyz' vllm serve 'rv2-models/rv2-models-sst2'Clone with git
git clone 'https://api.provyd.xyz/rv2-models/rv2-models-sst2'Clone with git over SSH
git clone 'ssh://git@wd.provyd.xyz:2222/rv2-models/rv2-models-sst2'Needs an SSH key on your account. Add an SSH key
Use the API
Read repository metadata at this commit. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token. Tokens grant account-level access, not access to just this model.
curl 'https://api.provyd.xyz/api/models/rv2-models/rv2-models-sst2/revision/87e14933aea3750eb395ed3ef858a8a1fa4d815d' \
-H "Authorization: Bearer $HF_TOKEN"Inference is separate from file storage. The owner must configure and start a supported model using the inference controls. To call it you need a model API key (made on the model page), or a token of any scope (Read or stronger) from the model owner. Visitors can use the try box only when the owner allows it. A token cannot enable unavailable GPU hardware.
Copy SST-2 encoder
rv2-models committed on October 20, 2026
87e14933aea3750eb395ed3ef858a8a1fa4d815dParent 49f0b15Browse files
6 files changed+229 -0
README.md
Added+197 -0
README.md
| @@ -0,0 +1,197 @@ | |||
| 1 | Added: --- | ||
| 2 | Added: language: en | ||
| 3 | Added: license: apache-2.0 | ||
| 4 | Added: datasets: | ||
| 5 | Added: - sst2 | ||
| 6 | Added: - glue | ||
| 7 | Added: model-index: | ||
| 8 | Added: - name: distilbert-base-uncased-finetuned-sst-2-english | ||
| 9 | Added: results: | ||
| 10 | Added: - task: | ||
| 11 | Added: type: text-classification | ||
| 12 | Added: name: Text Classification | ||
| 13 | Added: dataset: | ||
| 14 | Added: name: glue | ||
| 15 | Added: type: glue | ||
| 16 | Added: config: sst2 | ||
| 17 | Added: split: validation | ||
| 18 | Added: metrics: | ||
| 19 | Added: - type: accuracy | ||
| 20 | Added: value: 0.9105504587155964 | ||
| 21 | Added: name: Accuracy | ||
| 22 | Added: verified: true | ||
| 23 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiN2YyOGMxYjY2Y2JhMjkxNjIzN2FmMjNiNmM2ZWViNGY3MTNmNWI2YzhiYjYxZTY0ZGUyN2M1NGIxZjRiMjQwZiIsInZlcnNpb24iOjF9.uui0srxV5ZHRhxbYN6082EZdwpnBgubPJ5R2-Wk8HTWqmxYE3QHidevR9LLAhidqGw6Ih93fK0goAXncld_gBg | ||
| 24 | Added: - type: precision | ||
| 25 | Added: value: 0.8978260869565218 | ||
| 26 | Added: name: Precision | ||
| 27 | Added: verified: true | ||
| 28 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzgwYTYwYjA2MmM0ZTYwNDk0M2NmNTBkZmM2NGNhYzQ1OGEyN2NkNDQ3Mzc2NTQyMmZiNDJiNzBhNGVhZGUyOSIsInZlcnNpb24iOjF9.eHjLmw3K02OU69R2Au8eyuSqT3aBDHgZCn8jSzE3_urD6EUSSsLxUpiAYR4BGLD_U6-ZKcdxVo_A2rdXqvUJDA | ||
| 29 | Added: - type: recall | ||
| 30 | Added: value: 0.9301801801801802 | ||
| 31 | Added: name: Recall | ||
| 32 | Added: verified: true | ||
| 33 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGIzM2E3MTI2Mzc2MDYwNmU3ZTVjYmZmZDBkNjY4ZTc5MGY0Y2FkNDU3NjY1MmVkNmE3Y2QzMzAwZDZhOWY1NiIsInZlcnNpb24iOjF9.PUZlqmct13-rJWBXdHm5tdkXgETL9F82GNbbSR4hI8MB-v39KrK59cqzFC2Ac7kJe_DtOeUyosj34O_mFt_1DQ | ||
| 34 | Added: - type: auc | ||
| 35 | Added: value: 0.9716626673402374 | ||
| 36 | Added: name: AUC | ||
| 37 | Added: verified: true | ||
| 38 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDM0YWIwZmQ4YjUwOGZmMWU2MjI1YjIxZGQ2MzNjMzRmZmYxMzZkNGFjODhlMDcyZDM1Y2RkMWZlOWQ0MWYwNSIsInZlcnNpb24iOjF9.E7GRlAXmmpEkTHlXheVkuL1W4WNjv4JO3qY_WCVsTVKiO7bUu0UVjPIyQ6g-J1OxsfqZmW3Leli1wY8vPBNNCQ | ||
| 39 | Added: - type: f1 | ||
| 40 | Added: value: 0.9137168141592922 | ||
| 41 | Added: name: F1 | ||
| 42 | Added: verified: true | ||
| 43 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGU4MjNmOGYwZjZjMDQ1ZTkyZTA4YTc1MWYwOTM0NDM4ZWY1ZGVkNDY5MzNhYTQyZGFlNzIyZmUwMDg3NDU0NyIsInZlcnNpb24iOjF9.mW5ftkq50Se58M-jm6a2Pu93QeKa3MfV7xcBwvG3PSB_KNJxZWTCpfMQp-Cmx_EMlmI2siKOyd8akYjJUrzJCA | ||
| 44 | Added: - type: loss | ||
| 45 | Added: value: 0.39013850688934326 | ||
| 46 | Added: name: loss | ||
| 47 | Added: verified: true | ||
| 48 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMTZiNzAyZDc0MzUzMmE1MGJiN2JlYzFiODE5ZTNlNGE4MmI4YzRiMTc2ODEzMTUwZmEzOTgxNzc4YjJjZTRmNiIsInZlcnNpb24iOjF9.VqIC7uYC-ZZ8ss9zQOlRV39YVOOLc5R36sIzCcVz8lolh61ux_5djm2XjpP6ARc6KqEnXC4ZtfNXsX2HZfrtCQ | ||
| 49 | Added: - task: | ||
| 50 | Added: type: text-classification | ||
| 51 | Added: name: Text Classification | ||
| 52 | Added: dataset: | ||
| 53 | Added: name: sst2 | ||
| 54 | Added: type: sst2 | ||
| 55 | Added: config: default | ||
| 56 | Added: split: train | ||
| 57 | Added: metrics: | ||
| 58 | Added: - type: accuracy | ||
| 59 | Added: value: 0.9885521685548412 | ||
| 60 | Added: name: Accuracy | ||
| 61 | Added: verified: true | ||
| 62 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiY2I3NzU3YzhmMDkxZTViY2M3OTY1NmI0ZTdmMDQxNjNjYzJiZmQxNzczM2E4YmExYTY5ODY0NDBkY2I4ZjNkOCIsInZlcnNpb24iOjF9.4Gtk3FeVc9sPWSqZIaeUXJ9oVlPzm-NmujnWpK2y5s1Vhp1l6Y1pK5_78wW0-NxSvQqV6qd5KQf_OAEpVAkQDA | ||
| 63 | Added: - type: precision | ||
| 64 | Added: value: 0.9881965062029833 | ||
| 65 | Added: name: Precision Macro | ||
| 66 | Added: verified: true | ||
| 67 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDdlZDMzY2I3MTAwYTljNmM4MGMyMzU2YjAzZDg1NDYwN2ZmM2Y5OWZhMjUyMGJiNjY1YmZiMzFhMDI2ODFhNyIsInZlcnNpb24iOjF9.cqmv6yBxu4St2mykRWrZ07tDsiSLdtLTz2hbqQ7Gm1rMzq9tdlkZ8MyJRxtME_Y8UaOG9rs68pV-gKVUs8wABw | ||
| 68 | Added: - type: precision | ||
| 69 | Added: value: 0.9885521685548412 | ||
| 70 | Added: name: Precision Micro | ||
| 71 | Added: verified: true | ||
| 72 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjFlYzAzNmE1YjljNjUwNzBjZjEzZDY0ZDQyMmY5ZWM2OTBhNzNjYjYzYTk1YWE1NjU3YTMxZDQwOTE1Y2FkNyIsInZlcnNpb24iOjF9.jnCHOkUHuAOZZ_ZMVOnetx__OVJCS6LOno4caWECAmfrUaIPnPNV9iJ6izRO3sqkHRmxYpWBb-27GJ4N3LU-BQ | ||
| 73 | Added: - type: precision | ||
| 74 | Added: value: 0.9885639626373408 | ||
| 75 | Added: name: Precision Weighted | ||
| 76 | Added: verified: true | ||
| 77 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZGUyODFjNjBlNTE2MTY3ZDAxOGU1N2U0YjUyY2NiZjhkOGVmYThjYjBkNGU3NTRkYzkzNDQ2MmMwMjkwMWNiMyIsInZlcnNpb24iOjF9.zTNabMwApiZyXdr76QUn7WgGB7D7lP-iqS3bn35piqVTNsv3wnKjZOaKFVLIUvtBXq4gKw7N2oWxvWc4OcSNDg | ||
| 78 | Added: - type: recall | ||
| 79 | Added: value: 0.9886145346602994 | ||
| 80 | Added: name: Recall Macro | ||
| 81 | Added: verified: true | ||
| 82 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTU1YjlhODU3YTkyNTdiZDcwZGFlZDBiYjY0N2NjMGM2NTRiNjQ3MDNjNGMxOWY2ZGQ4NWU1YmMzY2UwZTI3YSIsInZlcnNpb24iOjF9.xaLPY7U-wHsJ3DDui1yyyM-xWjL0Jz5puRThy7fczal9x05eKEQ9s0a_WD-iLmapvJs0caXpV70hDe2NLcs-DA | ||
| 83 | Added: - type: recall | ||
| 84 | Added: value: 0.9885521685548412 | ||
| 85 | Added: name: Recall Micro | ||
| 86 | Added: verified: true | ||
| 87 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiODE0YTU0MDBlOGY4YzU0MjY5MzA3OTk2OGNhOGVkMmU5OGRjZmFiZWI2ZjY5ODEzZTQzMTI0N2NiOTVkNDliYiIsInZlcnNpb24iOjF9.SOt1baTBbuZRrsvGcak2sUwoTrQzmNCbyV2m1_yjGsU48SBH0NcKXicidNBSnJ6ihM5jf_Lv_B5_eOBkLfNWDQ | ||
| 88 | Added: - type: recall | ||
| 89 | Added: value: 0.9885521685548412 | ||
| 90 | Added: name: Recall Weighted | ||
| 91 | Added: verified: true | ||
| 92 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWNkNmM0ZGRlNmYxYzIwNDk4OTI5MzIwZWU1NzZjZDVhMDcyNDFlMjBhNDQxODU5OWMwMWNhNGEzNjY3ZGUyOSIsInZlcnNpb24iOjF9.b15Fh70GwtlG3cSqPW-8VEZT2oy0CtgvgEOtWiYonOovjkIQ4RSLFVzVG-YfslaIyfg9RzMWzjhLnMY7Bpn2Aw | ||
| 93 | Added: - type: f1 | ||
| 94 | Added: value: 0.9884019815052447 | ||
| 95 | Added: name: F1 Macro | ||
| 96 | Added: verified: true | ||
| 97 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYmM4NjQ5Yjk5ODRhYTU1MTY3MmRhZDBmODM1NTg3OTFiNWM4NDRmYjI0MzZkNmQ1MzE3MzcxODZlYzBkYTMyYSIsInZlcnNpb24iOjF9.74RaDK8nBVuGRl2Se_-hwQvP6c4lvVxGHpcCWB4uZUCf2_HoC9NT9u7P3pMJfH_tK2cpV7U3VWGgSDhQDi-UBQ | ||
| 98 | Added: - type: f1 | ||
| 99 | Added: value: 0.9885521685548412 | ||
| 100 | Added: name: F1 Micro | ||
| 101 | Added: verified: true | ||
| 102 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDRmYWRmMmQ0YjViZmQxMzhhYTUyOTE1MTc0ZDU1ZjQyZjFhMDYzYzMzZDE0NzZlYzQyOTBhMTBhNmM5NTlkMiIsInZlcnNpb24iOjF9.VMn_psdAHIZTlW6GbjERZDe8MHhwzJ0rbjV_VJyuMrsdOh5QDmko-wEvaBWNEdT0cEKsbggm-6jd3Gh81PfHAQ | ||
| 103 | Added: - type: f1 | ||
| 104 | Added: value: 0.9885546181087554 | ||
| 105 | Added: name: F1 Weighted | ||
| 106 | Added: verified: true | ||
| 107 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjUyZWFhZDZhMGQ3MzBmYmRiNDVmN2FkZDBjMjk3ODk0OTAxNGZkMWE0NzU5ZjI0NzE0NGZiNzM0N2Y2NDYyOSIsInZlcnNpb24iOjF9.YsXBhnzEEFEW6jw3mQlFUuIrW7Gabad2Ils-iunYJr-myg0heF8NEnEWABKFE1SnvCWt-69jkLza6SupeyLVCA | ||
| 108 | Added: - type: loss | ||
| 109 | Added: value: 0.040652573108673096 | ||
| 110 | Added: name: loss | ||
| 111 | Added: verified: true | ||
| 112 | Added: verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTc3YjU3MjdjMzkxODA5MjU5NGUyY2NkMGVhZDg3ZWEzMmU1YWVjMmI0NmU2OWEyZTkzMTVjNDZiYTc0YjIyNCIsInZlcnNpb24iOjF9.lA90qXZVYiILHMFlr6t6H81Oe8a-4KmeX-vyCC1BDia2ofudegv6Vb46-4RzmbtuKeV6yy6YNNXxXxqVak1pAg | ||
| 113 | Added: --- | ||
| 114 | Added: | ||
| 115 | Added: # DistilBERT base uncased finetuned SST-2 | ||
| 116 | Added: | ||
| 117 | Added: ## Table of Contents | ||
| 118 | Added: - [Model Details](#model-details) | ||
| 119 | Added: - [How to Get Started With the Model](#how-to-get-started-with-the-model) | ||
| 120 | Added: - [Uses](#uses) | ||
| 121 | Added: - [Risks, Limitations and Biases](#risks-limitations-and-biases) | ||
| 122 | Added: - [Training](#training) | ||
| 123 | Added: | ||
| 124 | Added: ## Model Details | ||
| 125 | Added: **Model Description:** This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned on SST-2. | ||
| 126 | Added: This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7). | ||
| 127 | Added: - **Developed by:** Hugging Face | ||
| 128 | Added: - **Model Type:** Text Classification | ||
| 129 | Added: - **Language(s):** English | ||
| 130 | Added: - **License:** Apache-2.0 | ||
| 131 | Added: - **Parent Model:** For more details about DistilBERT, we encourage users to check out [this model card](https://huggingface.co/distilbert-base-uncased). | ||
| 132 | Added: - **Resources for more information:** | ||
| 133 | Added: - [Model Documentation](https://huggingface.co/docs/transformers/main/en/model_doc/distilbert#transformers.DistilBertForSequenceClassification) | ||
| 134 | Added: - [DistilBERT paper](https://arxiv.org/abs/1910.01108) | ||
| 135 | Added: | ||
| 136 | Added: ## How to Get Started With the Model | ||
| 137 | Added: | ||
| 138 | Added: Example of single-label classification: | ||
| 139 | Added: | ||
| 140 | Added: ```python | ||
| 141 | Added: import torch | ||
| 142 | Added: from transformers import DistilBertTokenizer, DistilBertForSequenceClassification | ||
| 143 | Added: | ||
| 144 | Added: tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english") | ||
| 145 | Added: model = DistilBertForSequenceClassification.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english") | ||
| 146 | Added: | ||
| 147 | Added: inputs = tokenizer("Hello, my dog is cute", return_tensors="pt") | ||
| 148 | Added: with torch.no_grad(): | ||
| 149 | Added: logits = model(**inputs).logits | ||
| 150 | Added: | ||
| 151 | Added: predicted_class_id = logits.argmax().item() | ||
| 152 | Added: model.config.id2label[predicted_class_id] | ||
| 153 | Added: | ||
| 154 | Added: ``` | ||
| 155 | Added: | ||
| 156 | Added: ## Uses | ||
| 157 | Added: | ||
| 158 | Added: #### Direct Use | ||
| 159 | Added: | ||
| 160 | Added: This model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you. | ||
| 161 | Added: | ||
| 162 | Added: #### Misuse and Out-of-scope Use | ||
| 163 | Added: The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. | ||
| 164 | Added: | ||
| 165 | Added: | ||
| 166 | Added: ## Risks, Limitations and Biases | ||
| 167 | Added: | ||
| 168 | Added: Based on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations. | ||
| 169 | Added: | ||
| 170 | Added: For instance, for sentences like `This film was filmed in COUNTRY`, this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this [colab](https://colab.research.google.com/gist/ageron/fb2f64fb145b4bc7c49efc97e5f114d3/biasmap.ipynb), [Aurélien Géron](https://twitter.com/aureliengeron) made an interesting map plotting these probabilities for each country. | ||
| 171 | Added: | ||
| 172 | Added: <img src="https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english/resolve/main/map.jpeg" alt="Map of positive probabilities per country." width="500"/> | ||
| 173 | Added: | ||
| 174 | Added: We strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: [WinoBias](https://huggingface.co/datasets/wino_bias), [WinoGender](https://huggingface.co/datasets/super_glue), [Stereoset](https://huggingface.co/datasets/stereoset). | ||
| 175 | Added: | ||
| 176 | Added: | ||
| 177 | Added: | ||
| 178 | Added: # Training | ||
| 179 | Added: | ||
| 180 | Added: | ||
| 181 | Added: #### Training Data | ||
| 182 | Added: | ||
| 183 | Added: | ||
| 184 | Added: The authors use the following Stanford Sentiment Treebank([sst2](https://huggingface.co/datasets/sst2)) corpora for the model. | ||
| 185 | Added: | ||
| 186 | Added: #### Training Procedure | ||
| 187 | Added: | ||
| 188 | Added: ###### Fine-tuning hyper-parameters | ||
| 189 | Added: | ||
| 190 | Added: | ||
| 191 | Added: - learning_rate = 1e-5 | ||
| 192 | Added: - batch_size = 32 | ||
| 193 | Added: - warmup = 600 | ||
| 194 | Added: - max_seq_length = 128 | ||
| 195 | Added: - num_train_epochs = 3.0 | ||
| 196 | Added: | ||
| 197 | Added: | ||
config.json
Added+31 -0
config.json
| @@ -0,0 +1,31 @@ | |||
| 1 | Added: { | ||
| 2 | Added: "activation": "gelu", | ||
| 3 | Added: "architectures": [ | ||
| 4 | Added: "DistilBertForSequenceClassification" | ||
| 5 | Added: ], | ||
| 6 | Added: "attention_dropout": 0.1, | ||
| 7 | Added: "dim": 768, | ||
| 8 | Added: "dropout": 0.1, | ||
| 9 | Added: "finetuning_task": "sst-2", | ||
| 10 | Added: "hidden_dim": 3072, | ||
| 11 | Added: "id2label": { | ||
| 12 | Added: "0": "NEGATIVE", | ||
| 13 | Added: "1": "POSITIVE" | ||
| 14 | Added: }, | ||
| 15 | Added: "initializer_range": 0.02, | ||
| 16 | Added: "label2id": { | ||
| 17 | Added: "NEGATIVE": 0, | ||
| 18 | Added: "POSITIVE": 1 | ||
| 19 | Added: }, | ||
| 20 | Added: "max_position_embeddings": 512, | ||
| 21 | Added: "model_type": "distilbert", | ||
| 22 | Added: "n_heads": 12, | ||
| 23 | Added: "n_layers": 6, | ||
| 24 | Added: "output_past": true, | ||
| 25 | Added: "pad_token_id": 0, | ||
| 26 | Added: "qa_dropout": 0.1, | ||
| 27 | Added: "seq_classif_dropout": 0.2, | ||
| 28 | Added: "sinusoidal_pos_embds": false, | ||
| 29 | Added: "tie_weights_": true, | ||
| 30 | Added: "vocab_size": 30522 | ||
| 31 | Added: } | ||
model.safetensors
Added
model.safetensors
Large (LFS-tracked) file content changed — 255 MB
tokenizer.json
Added
tokenizer.json
This file is too large to display.
tokenizer_config.json
Added+1 -0
tokenizer_config.json
| @@ -0,0 +1,1 @@ | |||
| 1 | Added: {"model_max_length": 512, "do_lower_case": true}(no newline at end of file) | ||
vocab.txt
Added
vocab.txt
This file is too large to display.