Views
No views yet

1from transformers import pipeline
2
3question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
4generator = pipeline("text-generation", model="iprajwaal/gemma-3b-chat-support", device="cuda")
5output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
6print(output["generated_text"])
71from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2
3model_id = "iprajwaal/gemma-3b-chat-support"
4model = AutoModelForCausalLM.from_pretrained(model_id)
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6
7pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
8
9messages = [
10{"role": "system", "content": "You are a helpful customer support assistant."},
11{"role": "user", "content": "I need to book a hotel in New York for next weekend."}
12]
13
14response = pipe(messages, max_new_tokens=100)
15print(response[0]["generated_text"])1@misc{iprajwaal,
2 title = {{Gemma-3b-chat-support: A Fine-tuned Customer Support Assistant}},
3 author = {Prajwal Kumbar},
4 year = 2025,
5 note = {Fine-tuned using the Schema-Guided Dialogue dataset and the TRL library},
6 publisher = {Hugging Face},
7 howpublished = {\url{https://huggingface.co/iprajwaal/gemma-3b-chat-support}}
8}