Views
No views yet
1from unsloth import FastLanguageModel
2from transformers import AutoTokenizer
3
4model, tokenizer = FastLanguageModel.from_pretrained(
5 "SURESHBEEKHANI/Gemma_2B_Medical_ORPO_RLHF_Fine_Tuning",
6 load_in_4bit=True
7)
8
9prompt = "### Instruction: Diagnose the following symptoms...\n### Input: Fever, headache, and rash\n### Response:"
10inputs = tokenizer(prompt, return_tensors="pt")
11outputs = model.generate(**inputs)
12response = tokenizer.decode(outputs[0], skip_special_tokens=True)
13print(response)1@misc{gemma2b_orpo_medical,
2 author = {Suresh Beekhanii},
3 title = {Fine-Tuning Gemma 2B for Medical Reasoning using ORPO RLHF},
4 year = {2024},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/SURESHBEEKHANI/Gemma_2B_Medical_ORPO_RLHF_Fine_Tuning}
7}