Instructions to use darshjoshi16/phi2-lora-math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use darshjoshi16/phi2-lora-math with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "darshjoshi16/phi2-lora-math") - Transformers
How to use darshjoshi16/phi2-lora-math with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("darshjoshi16/phi2-lora-math", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from darshjoshi16/phi2-lora-math: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/darshjoshi16/phi2-lora-math/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://darshjoshi16/phi2-lora-math/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/darshjoshi16/phi2-lora-math/resolve/main/special_tokens_map.json
441 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 | |
| }, | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |