Instructions to use GenAI-CoolCats/WLU-Phi2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use GenAI-CoolCats/WLU-Phi2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "GenAI-CoolCats/WLU-Phi2") - Notebooks
- Google Colab
- Kaggle
Download config.json from GenAI-CoolCats/WLU-Phi2: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/GenAI-CoolCats/WLU-Phi2/resolve/main/config.json
- Command line
-
hf download hf://GenAI-CoolCats/WLU-Phi2/config.json
-
curl -L -o config.json https://huggingface.co/GenAI-CoolCats/WLU-Phi2/resolve/main/config.json
486 Bytes
| { | |
| "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, | |
| "lora_alpha": 16, | |
| "lora_dropout": 0.0, | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 64, | |
| "revision": null, | |
| "target_modules": [ | |
| "v_proj", | |
| "dense", | |
| "k_proj", | |
| "q_proj", | |
| "fc1", | |
| "fc2" | |
| ], | |
| "task_type": "CAUSAL_LM" | |
| } |