How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="echarlaix/tiny-random-PhiForCausalLM")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("echarlaix/tiny-random-PhiForCausalLM")
model = AutoModelForCausalLM.from_pretrained("echarlaix/tiny-random-PhiForCausalLM", device_map="auto")
Quick Links
README.md exists but content is empty.
Downloads last month
45,899
Safetensors
Model size
80.1k params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for echarlaix/tiny-random-PhiForCausalLM

Adapters
175 models
Finetunes
1 model

Space using echarlaix/tiny-random-PhiForCausalLM 1