Downloads · 30 days
10
14% of all-time downloads
npvinHnivqn/phi-1_5-CRL-v0.2
phi-1_5-CRL-v0.2 is a text generation model from npvinHnivqn. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
71
Public
Parameters
1.4B
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.7 GB · 100%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("npvinHnivqn/phi-1_5-CRL-v0.2", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("npvinHnivqn/phi-1_5-CRL-v0.2", trust_remote_code=True)
inputs = tokenizer('''<|USER|> Write a paragragh about animal''', return_tensors="pt", return_attention_mask=False)
outputs = model.generate(**inputs, max_length=200)
text = tokenizer.batch_decode(outputs)[0]
print(text)