Instructions to use hf-internal-testing/tiny-random-PhiModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-PhiModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-PhiModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-PhiModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-PhiModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from hf-internal-testing/tiny-random-PhiModel: direct link, hf CLI and curl.
- Browser
- Download file 188 kB
-
https://huggingface.co/hf-internal-testing/tiny-random-PhiModel/resolve/main/model.safetensors
- Command line
-
hf download hf://hf-internal-testing/tiny-random-PhiModel/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/hf-internal-testing/tiny-random-PhiModel/resolve/main/model.safetensors
188 kB
- Xet hash:
- 6dd7a77673d33684ec127b756f2e3aa03c61953e7d4446a4702f7338a58ccecb
- Size of remote file:
- 188 kB
- SHA256:
- 26dc170d353efa00c649161d38ef00d96d085f0ae41016b1434d17bb8046418d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.