Text Classification
Transformers
Safetensors
PEFT
English
sentiment-analysis
bert
lora
huggingface
low-resource
Eval Results (legacy)
Instructions to use Harsh-Gupta/Sentiment-Analysis-BERT-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Harsh-Gupta/Sentiment-Analysis-BERT-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Harsh-Gupta/Sentiment-Analysis-BERT-sst2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Harsh-Gupta/Sentiment-Analysis-BERT-sst2", device_map="auto") - PEFT
How to use Harsh-Gupta/Sentiment-Analysis-BERT-sst2 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from Harsh-Gupta/Sentiment-Analysis-BERT-sst2: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/Harsh-Gupta/Sentiment-Analysis-BERT-sst2/resolve/main/adapter_config.json
- Command line
-
hf download hf://Harsh-Gupta/Sentiment-Analysis-BERT-sst2/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/Harsh-Gupta/Sentiment-Analysis-BERT-sst2/resolve/main/adapter_config.json
798 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "bert-base-uncased", | |
| "bias": "none", | |
| "corda_config": null, | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 4, | |
| "lora_bias": false, | |
| "lora_dropout": 0.1, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": [ | |
| "classifier", | |
| "score" | |
| ], | |
| "peft_type": "LORA", | |
| "r": 32, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "query", | |
| "value" | |
| ], | |
| "task_type": "SEQ_CLS", | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |