OpenMed

OpenMed Medical 27B Preview 03

OpenMed on Hugging Face OpenMed SDK on GitHub Status: experimental preview License Apache-2.0

An experimental preview of OpenMed's medical fine-tune of Qwen3.8-27B. It thinks a medical question through before it answers, and it runs on your own hardware as one standalone checkpoint. We are releasing three preview checkpoints from the same line of work so that people can try them on real questions and tell us what works and what does not. Preview 03 is the most strongly tuned of the three.

Developed by OpenMed
Base model Qwen3.8-27B by the Qwen team (Apache-2.0)
Status Experimental preview, shared for feedback
The previews Preview 01 ยท Preview 02 ยท Preview 03 (this one)
Size 27B parameters, FP16 safetensors in 18 shards, about 55.6 GB
Input English text. The base model's vision components are included but were not tested in this preview.
Output A reasoning block, then the answer
License Apache-2.0

About OpenMed

OpenMed builds open models and open-source tools for clinical and biomedical text that run on your own hardware.

Quick start

pip install -U transformers accelerate torch torchvision pillow
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer, set_seed

model_id = "OpenMed/OpenMed-Medical-27B-Preview-03"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
    model_id, dtype=torch.float16, device_map="auto"
).eval()

messages = [{"role": "user", "content": "A patient on lisinopril asks if they can take ibuprofen for a few days of knee pain. What should their clinician weigh?"}]
inputs = tokenizer.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True,
    enable_thinking=True, return_dict=True, return_tensors="pt",
).to(model.device)

set_seed(38241)
with torch.inference_mode():
    output_ids = model.generate(
        **inputs, max_new_tokens=4096, do_sample=True, temperature=1.0, top_p=0.95, top_k=20,
        eos_token_id=[248046, 248044], pad_token_id=248044,
    )

completion = output_ids[0, inputs["input_ids"].shape[-1]:]
print(tokenizer.decode(completion, skip_special_tokens=True))

These are the sampling settings we use, and the checkpoint's generation_config.json sets the same ones by default. Give it room to think: the answers in this card took 352 to 1,953 new tokens, so 4,096 is plenty here, and harder questions can use 8,192 or more.

One real answer

The answer this preview gave to the question above, in our run of this code. In this run it skipped the reasoning: it closed the empty reasoning block three times (</think>) and then answered. The text after the last </think> is the answer:

Taking ibuprofen while on lisinopril can increase the risk of kidney injury, especially in patients with underlying risk factors such as dehydration, heart failure, or a history of acute kidney injury (AKI). NSAIDs like ibuprofen inhibit prostaglandin synthesis, which reduces blood flow to the kidneys, while ACE inhibitors like lisinopril dilate the efferent arterioleโ€”both mechanisms can compound to decrease glomerular filtration rate (GFR). This combination, particularly when combined with a diuretic (the "triple whammy"), significantly elevates the risk of AKI.

For short-term use (e.g., a few days), the risk is lower but still present. Clinicians should weigh the severity of the patient's knee pain against potential renal and cardiovascular risks. If pain is mild to moderate, non-pharmacological strategies (such as rest, ice, compression, elevationโ€”RICE) or topical NSAIDs (e.g., diclofenac gel) may be safer alternatives, as they have minimal systemic absorption.

If oral ibuprofen is necessary, the lowest effective dose (e.g., 200โ€“400 mg as needed) should be used for the shortest duration possible (ideally โ‰ค3 days), with adequate hydration and avoidance of other nephrotoxic agents. Patients should be advised to watch for signs of kidney dysfunction (e.g., decreased urine output, swelling, fatigue) and seek prompt medical attention if symptoms occur.

In summary: short-term, low-dose ibuprofen may be acceptable with caution, but safer alternatives should be considered first, and patient-specific risk factors must be evaluated before use.

The three previews

  • Preview 01 stays closest to Qwen3.8-27B.
  • Preview 02 is tuned further. Start here.
  • Preview 03 is the most strongly tuned.

Try the same question on two of them and tell us which answer you would rather give a colleague.

Tell us what you find

Open a discussion in the Community tab of this page with the question, the answer and what was right or wrong about it. Good answers, wrong answers and strange answers all help shape the next version.

Before you use it

  • A preview. Shared for hands-on testing and feedback, not for leaderboard comparisons.
  • Research and prototyping only. Answers can be wrong, incomplete or out of date, and long answers can run out of tokens. Do not use it for diagnosis, treatment or any decision about a patient.
  • English text. Other languages and image input were not tested.
  • Reading the output. The answer is the text after the last </think>. In our runs this preview once skipped its reasoning and repeated the closing tag.

Built on

OpenMed fine-tuned this model from Qwen3.8-27B by the Qwen team (Apache-2.0). Thank you to the Qwen team for releasing it openly. See LICENSE and NOTICE.

OpenMed ยท Hugging Face ยท GitHub ยท PyPI ยท X

Downloads last month
41
Safetensors
Model size
28B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for OpenMed/OpenMed-Medical-27B-Preview-03

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,076)
this model
Finetunes
1 model