Instructions to use JB007/my_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use JB007/my_model with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "JB007/my_model") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from JB007/my_model: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/JB007/my_model/resolve/main/adapter_config.json
- Command line
-
hf download hf://JB007/my_model/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/JB007/my_model/resolve/main/adapter_config.json
581 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "distilbert-base-uncased", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 32, | |
| "lora_dropout": 0.01, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 4, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "q_lin" | |
| ], | |
| "task_type": "SEQ_CLS", | |
| "use_rslora": false | |
| } |