Instructions to use MoNafea01/saudi-eou-bert-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MoNafea01/saudi-eou-bert-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("aubmindlab/bert-base-arabertv02") model = PeftModel.from_pretrained(base_model, "MoNafea01/saudi-eou-bert-classifier") - Transformers
How to use MoNafea01/saudi-eou-bert-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MoNafea01/saudi-eou-bert-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("MoNafea01/saudi-eou-bert-classifier") model = AutoModelForSequenceClassification.from_pretrained("MoNafea01/saudi-eou-bert-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from MoNafea01/saudi-eou-bert-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/MoNafea01/saudi-eou-bert-classifier/resolve/main/adapter_config.json
- Command line
-
hf download hf://MoNafea01/saudi-eou-bert-classifier/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/MoNafea01/saudi-eou-bert-classifier/resolve/main/adapter_config.json
1.02 kB
| { | |
| "alora_invocation_tokens": null, | |
| "alpha_pattern": {}, | |
| "arrow_config": null, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "aubmindlab/bert-base-arabertv02", | |
| "bias": "none", | |
| "corda_config": null, | |
| "ensure_weight_tying": false, | |
| "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": 16, | |
| "lora_bias": false, | |
| "lora_dropout": 0.1, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": [ | |
| "classifier", | |
| "score" | |
| ], | |
| "peft_type": "LORA", | |
| "peft_version": "0.18.0", | |
| "qalora_group_size": 16, | |
| "r": 64, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "query", | |
| "value", | |
| "key" | |
| ], | |
| "target_parameters": null, | |
| "task_type": "SEQ_CLS", | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_qalora": false, | |
| "use_rslora": false | |
| } |