How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="DedeProGames/medqwen-0.5b")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("DedeProGames/medqwen-0.5b")
model = AutoModelForCausalLM.from_pretrained("DedeProGames/medqwen-0.5b", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Experimental model. This model is intended for research and testing only and must not be used for real medical diagnosis, treatment, or clinical decision-making.

medqwen is a small experimental medical reasoning model based on Qwen2.5-0.5B.
It was trained on DedeProGames/Medical-Reasoning-SFT-Nano.

medqwen is designed to explore medical-style reasoning, question answering, and instruction following in a compact model size. It is focused on being lightweight, simple, and useful for experimentation.

Details

  • Model name: medqwen
  • Base model: Qwen2.5-0.5B
  • Training dataset: DedeProGames/Medical-Reasoning-SFT-Nano
  • Type: Experimental medical reasoning model

Notes

This model may generate inaccurate, incomplete, or unsafe medical information.
Always verify outputs with trusted medical sources and qualified professionals.

Downloads last month
24
Safetensors
Model size
0.5B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with DedeProGames/medqwen-0.5b.

Model tree for DedeProGames/medqwen-0.5b

Finetuned
(1019)
this model
Quantizations
2 models

Dataset used to train DedeProGames/medqwen-0.5b

Collection including DedeProGames/medqwen-0.5b