A small fine-tuned Qwen3 model that answers Ophthalmology medical multiple-choice questions (MCQs). Given an Ophthalmology topic, an MCQ stem, and four lettered options, it returns the correct option and a brief clinical explanation.
The MedMCQ project explores small, specialized models for medical MCQs. Instead of using one large model for everything, it splits the task across three hops:
Answer generation — this model. Given the topic and the MCQ, return the correct option and an explanation.
Each hop is a separate, narrow model. They are all published under the MedMCQ Medical Models collection.
Quick start
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
23repo ="stravoris/medmcq-ophthalmology-qwen3-1.7b"4tokenizer = AutoTokenizer.from_pretrained(repo)5model = AutoModelForCausalLM.from_pretrained(repo)67prompt ="""Answer the following medical question. Provide the correct option and a brief explanation.
89Topic: <an Ophthalmology topic>
1011Question: <the MCQ stem>
1213Options:
14A) <option A>
15B) <option B>
16C) <option C>
17D) <option D>"""1819inputs = tokenizer(prompt, return_tensors="pt").to(model.device)20outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)21print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Prompt format
The model expects prompts in this exact form:
Answer the following medical question. Provide the correct option and a brief explanation.
Topic: <topic name>
Question: <question stem>
Options:
A) <option A>
B) <option B>
C) <option C>
D) <option D>
The model completes the prompt with the correct option and a short clinical explanation, in the form:
This is a sample model for demonstration. It is not a production-grade medical AI system:
It has not been formally evaluated against board-level benchmarks.
It should not be used to make clinical decisions or provide medical advice.
Returned answers and explanations may contain factual errors or outdated information. A clinician should review every output before any educational use.
It is narrow: it only answers Ophthalmology MCQs and is brittle outside that domain or on prompts that deviate from the format above.
It was trained on a curated educational dataset and inherits any biases or gaps in that data.
The MedMCQ project exists to explore small-model pipeline architectures for medical reasoning, not to ship a medical product.
Training data
Trained on the Ophthalmology subset of the Stravoris Medical MCQ dataset — educational Ophthalmology MCQs with topic labels, stems, lettered options, the correct option, and a worked explanation.
Base model
Fine-tuned from Qwen/Qwen3-1.7B. The base model's license and usage terms also apply.