Instructions to use Plaban81/phi2-results2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Plaban81/phi2-results2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "Plaban81/phi2-results2") - Notebooks
- Google Colab
- Kaggle
Download config.json from Plaban81/phi2-results2: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/Plaban81/phi2-results2/resolve/main/config.json
- Command line
-
hf download hf://Plaban81/phi2-results2/config.json
-
curl -L -o config.json https://huggingface.co/Plaban81/phi2-results2/resolve/main/config.json
789 Bytes
| { | |
| "_name_or_path": "microsoft/phi-2", | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "PhiForCausalLM" | |
| ], | |
| "attn_pdrop": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "microsoft/phi-2--configuration_phi.PhiConfig", | |
| "AutoModelForCausalLM": "microsoft/phi-2--modeling_phi.PhiForCausalLM" | |
| }, | |
| "embd_pdrop": 0.0, | |
| "flash_attn": false, | |
| "flash_rotary": false, | |
| "fused_dense": false, | |
| "img_processor": null, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "phi-msft", | |
| "n_embd": 2560, | |
| "n_head": 32, | |
| "n_head_kv": null, | |
| "n_inner": null, | |
| "n_layer": 32, | |
| "n_positions": 2048, | |
| "resid_pdrop": 0.1, | |
| "rotary_dim": 32, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.36.2", | |
| "vocab_size": 51200 | |
| } | |