CoolFace
Modelpublic

fecia/cates_phi3_1

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes21downloads
README.md32 linesDownload Raw Back to root
1---2license: apache-2.03---4 5# cates_phi3_16 7cates_phi3_1 is an SFT fine-tuned version of microsoft/Phi-3-mini-4k-instruct using a custom training dataset.8This model was made with [Phinetune]()9 10## Process11- Learning Rate: 1.41e-0512- Maximum Sequence Length: 204813- Dataset: fecia/cates14- Split: train15 16## 💻 Usage17```python18!pip install -qU transformers19from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline20 21model = "fecia/cates_phi3_1"22tokenizer = AutoTokenizer.from_pretrained(model)23 24# Example prompt25prompt = "Your example prompt here"26 27# Generate a response28model = AutoModelForCausalLM.from_pretrained(model)29pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)30outputs = pipeline(prompt, max_length=50, num_return_sequences=1)31print(outputs[0]["generated_text"])32```