Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4# Load model and tokenizer
5model_name = "OsamaBinLikhon/SheikhNextMoE-Medical-v2"
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForCausalLM.from_pretrained(model_name)
8
9# Medical query
10prompt = "### Patient: What are symptoms of diabetes?
11### Medical Assistant:"
12inputs = tokenizer(prompt, return_tensors="pt")
13
14# Generate response
15outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
16response = tokenizer.decode(outputs[0], skip_special_tokens=True)
17print(response)1@misc{SheikhNextMoE,
2 title={SheikhNextMoE: Ethical Medical Assistant},
3 author={MiniMax Agent},
4 year={2025},
5 url={https://huggingface.co/OsamaBinLikhon/SheikhNextMoE-Medical-v2}
6}