from unsloth import FastDecisionModel model, tokenizer = FastDecisionModel.from_pretrained( model_name="salihfurkaan/MedGate-9B", max_seq_length=2048, load_in_4bit=True,)FastDecisionModel.for_inference(model) abstract_and_question = ( "Biomedical Study Abstract:\n" "[OBJECTIVE] To evaluate whether adjunctive low-dose colchicine reduces recurrent cardiovascular events " "within 30 days of acute myocardial infarction.\n" "[RESULTS] Among 1,240 randomized patients, the primary composite endpoint occurred in 6.1% of the " "colchicine group versus 6.4% of the placebo group (HR 0.95; 95% CI 0.62-1.46; p=0.81).\n" "[CONCLUSIONS] Short-term low-dose colchicine did not significantly reduce 30-day recurrent ischemic events.\n\n" "Research Question: Does early low-dose colchicine significantly reduce 30-day recurrent cardiovascular events after acute MI?") rubric = { "decision": { "type": "choice", "instructions": "Evaluate the statistical findings in [RESULTS] and [CONCLUSIONS] to answer the research question.", "criteria": { "yes": "Yes — statistically significant findings or primary outcomes directly support an affirmative answer.", "no": "No — findings show no significant effect, negative outcomes, or directly refute the hypothesis.", "maybe": "Maybe — results are inconclusive, mixed, non-significant, or authors state further studies are required.", }, }} result = FastDecisionModel.predict(model, tokenizer, abstract_and_question, rubric)["decision"]probs = {k: round(v, 3) for k, v in result["probabilities"].items()}print(f"Answer: {result['answer']} | Probabilities: {probs}")