Downloads · 30 days
20
8% of all-time downloads
npvinHnivqn/phi-2-FCRL-v0.1
phi-2-FCRL-v0.1 is a machine learning model from npvinHnivqn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as other.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
20
8% of all-time downloads
All-time downloads
262
Public
Parameters
2.8B
12.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors11.2 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/phi-2 on vicgalle/alpaca-gpt4, nRuaif/OpenOrca-GPT3.5, sahil2801/CodeAlpaca-20k
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("npvinHnivqn/phi-2-FCRL-v0.1", trust_remote_code=True, torch_dtype=torch.float32)
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2-FCRL-v0.1", trust_remote_code=True)
inputs = tokenizer('''<SYSTEM>: You are a very good and helpful chatbot, you can answer almost every questions. <|USER|>: Write a short story about a curious cat <|BOT|>:''', return_tensors="pt", return_attention_mask=False)
outputs = model.generate(**inputs, max_length=512)
text = tokenizer.batch_decode(outputs)[0]
print(text)
The following hyperparameters were used during training: