Downloads · 30 days
9
11% of all-time downloads
Miao025/Qwen-KinderChatbot-LoRA
Qwen-KinderChatbot-LoRA is a text generation model from Miao025. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This is a kindergarten-teacher-style text-to-text generation model fined tuned on Qwen1.5-1.8B. It gives answers to any input question like a gentle and warm kindergarten teacher.
Downloads · 30 days
9
11% of all-time downloads
All-time downloads
84
Public
Repo size
23.7 MB
Likes
0
Public
Click a slice to open those files.
.json14.2 MB · 56%
From the Hugging Face model README
This is a kindergarten-teacher-style text-to-text generation model fined tuned on Qwen1.5-1.8B. It gives answers to any input question like a gentle and warm kindergarten teacher.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load tokenizer and fine-tuned model (Note that you can also download the models and load with local path.)
tokenizer_sft = AutoTokenizer.from_pretrained("Miao025/Qwen-KinderChatbot-LoRA")
sft_model = AutoModelForCausalLM.from_pretrained("Miao025/Qwen-KinderChatbot-LoRA").to("cuda") # Recommend to use gpu as this is a large model
# Prepare prompt
prompt = "Why do we need to brush our teeth?"
inputs = tokenizer_sft(prompt, return_tensors="pt", truncation=True).to("cuda")
# Generate a response
output = sft_model.generate(**inputs)
# Decode the result
response = tokenizer_sft.decode(output[0], skip_special_tokens=True)
[Training Dataset Card](to be add) Training process can be found on Github.
For any questions, please contact the author [email protected]