Instructions to use thisisaditichouhan/Phi-2-4bit-Quantized-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use thisisaditichouhan/Phi-2-4bit-Quantized-Model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "thisisaditichouhan/Phi-2-4bit-Quantized-Model") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|endoftext|>", | |
| "is_local": false, | |
| "local_files_only": false, | |
| "model_max_length": 2048, | |
| "pad_token": null, | |
| "return_token_type_ids": false, | |
| "tokenizer_class": "CodeGenTokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |