Text Generation
Adapters
TensorBoard
Safetensors
English
phi-msft
Generated from Trainer
custom_code
Instructions to use venkycs/phi-2-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use venkycs/phi-2-instruct with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("venkycs/phi-2-instruct", set_active=True) - Notebooks
- Google Colab
- Kaggle
Colab demo doesn't use GPU
#2
by aaronshenhao - opened
I'm not really familiar with HF's transformer' library, so I'm not sure what's going on. But the inference demo is not using the T4 GPU at all, whereas it takes up 12 GB of system RAM, which is unexpected for such a small model. It's taking forever to complete. The demo also tries to load in the base model at the same time, which crashes Colab as it uses all the available system RAM.
Inference demo link: https://huggingface.co/venkycs/phi-2-instruct/blob/main/inference_phi_2_instruct.ipynb