Instructions to use AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/codebert-base") model = PeftModel.from_pretrained(base_model, "AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash/resolve/main/adapter_config.json
- Command line
-
hf download hf://AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/AdnanRiaz107/codebertbasePEFTLORA-finetuned-the-stack-bash/resolve/main/adapter_config.json
564 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": null, | |
| "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.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 16, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "query", | |
| "value", | |
| "key" | |
| ], | |
| "task_type": "CAUSAL_LM" | |
| } |