Instructions to use lvcalucioli/phi2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lvcalucioli/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, "lvcalucioli/phi2") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from lvcalucioli/phi2: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/lvcalucioli/phi2/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://lvcalucioli/phi2/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/lvcalucioli/phi2/resolve/main/special_tokens_map.json
473 Bytes
| { | |
| "bos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |