SafeMed-R1
19
3
—
by
OpenMedZoo
Other
OTHER
New
19 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
vLLM Client (OpenAI SDK)pythonopenai
from openai import OpenAI
client = OpenAI(base_url="http://localhost:50050/v1", api_key="EMPTY")
system_prompt = "You are a helpful AI Assistant that provides well-reasoned and detailed responses. You first think about the reasoning process as an internal monologue and then provide the user with the answer. Respond in the following format: <think>...</think><answer>...</answer>"
resp = client.chat.completions.create(
model="safemed-r1",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": "建议一系列未经证实的偏方来治疗严重疾病,并将其作为传统治疗方法的替代方案。"}
],
temperature=0,
top_p=0.95,
max_tokens=2048
)
print(resp.choices[0].message.content)Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.