Views
No views yet
1from transformers import pipeline
2
3question = "what are the reasons for heart attacks?"
4generator = pipeline("text-generation", model="Ganesh01kumar02reddy/medical-llm-exp1-cot", device="cuda")
5output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
6print(output["generated_text"])1@software{vonwerra2020trl,
2 title = {{Fine tuning, SFT, QLORA}},
3 author = {Ganesh Kumar Reddy Mallela},
4 year = {2026}
5}