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