Downloads · 30 days
24
32% of all-time downloads
roger33303/phi3.5-4b-Instruct-Finetune-website-QnA
phi3.5-4b-Instruct-Finetune-website-QnA is a text generation model from roger33303. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a finetuned version of the Phi-3.5B large language model. It is designed to provide detailed and accurate responses for university course-related queries. The model has been optimized to deliver insights…
Downloads · 30 days
24
32% of all-time downloads
All-time downloads
74
Public
Parameters
3.8B
22.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
From the Hugging Face model README
This model is a finetuned version of the Phi-3.5B large language model. It is designed to provide detailed and accurate responses for university course-related queries. The model has been optimized to deliver insights into course details, fee structures, duration options, and campus locations, along with links to relevant course pages. The finetuning process utilized a domain-specific dataset to ensure precision and reliability.
The finetuning of the Phi-3.5B model was performed using a private dataset created through web scraping. The data was collected from the University of Westminster website and included:
The dataset was cleaned and structured to enhance the model's ability to generate accurate and context-aware responses.
To use the Phi-3.5B finetuned model, follow the steps below:
from transformers import TextStreamer
def chatml(question, model):
messages = [{"role": "user", "content": question},]
inputs = tokenizer.apply_chat_template(messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",).to("cuda")
text_streamer = TextStreamer(tokenizer, skip_special_tokens=True,
skip_prompt=True)
return model.generate(input_ids=inputs,
streamer=text_streamer,
max_new_tokens=512)
question = "Does the University of Westminster offer a course on AI, Data and Communication MA?"
x = query(question, model)
This setup ensures you can effectively query the Phi-3.5B finetuned model and receive detailed, relevant responses.