Views
No views yet
Qwen/Qwen3-0.6B specialized for medical question-answering. It's designed to provide helpful, accurate medical information while emphasizing the importance of professional medical consultation.Qwen/Qwen3-0.6Btransformers1from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
2import torch
3
4model_id = "rohitnagareddy/Qwen3-0.6B-Medical-Finetuned-v1"
5
6# Load model and tokenizer
7tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
8model = AutoModelForCausalLM.from_pretrained(
9 model_id,
10 torch_dtype=torch.float16,
11 device_map="auto",
12 trust_remote_code=True
13)
14
15# Create a conversation pipeline
16pipe = pipeline(
17 "text-generation",
18 model=model,
19 tokenizer=tokenizer
20)
21
22# Create conversation
23prompt = "<|im_start|>system\nYou are a helpful medical assistant providing accurate, evidence-based information.<|im_end|>\n<|im_start|>user\nWhat are the symptoms of hypertension?<|im_end|>\n<|im_start|>assistant\n"
24
25# Generate response
26response = pipe(prompt, max_new_tokens=300, temperature=0.7, top_p=0.9, do_sample=True)
27print(response[0]["generated_text"])llama.cpp and compatible tools:Qwen3-0.6B-Medical-Finetuned-v1.fp16.gguf - Full precision (largest, best quality)Qwen3-0.6B-Medical-Finetuned-v1.Q8_0.gguf - 8-bit quantization (good balance)Qwen3-0.6B-Medical-Finetuned-v1.Q5_K_M.gguf - 5-bit quantization (smaller, fast)Qwen3-0.6B-Medical-Finetuned-v1.Q4_K_M.gguf - 4-bit quantization (smallest, fastest)1# Pull the model (once available on the Hub)
2ollama pull rohitnagareddy/Qwen3-0.6B-Medical-Finetuned-v1
3
4# Run the model
5ollama run rohitnagareddy/Qwen3-0.6B-Medical-Finetuned-v1 "What are the early signs of diabetes?"