1from transformers import pipeline
23generate = pipeline("text-generation","Felladrin/Minueza-32M-UltraChat")45messages =[6{7"role":"system",8"content":"You are a highly knowledgeable and friendly assistant. Your goal is to understand and respond to user inquiries with clarity. Your interactions are always respectful, helpful, and focused on delivering the most accurate information to the user.",9},10{11"role":"user",12"content":"Hey! Got a question for you!",13},14{15"role":"assistant",16"content":"Sure! What's it?",17},18{19"role":"user",20"content":"What are some potential applications for quantum computing?",21},22]2324prompt = generate.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)2526output = generate(27 prompt,28 max_new_tokens=256,29 do_sample=True,30 temperature=0.65,31 top_k=35,32 top_p=0.55,33 repetition_penalty=1.176,34)3536print(output[0]["generated_text"])
How it was trained
This model was trained with SFTTrainer using the following settings: