Instructions to use towardsinnovationlab/qwen3-medical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use towardsinnovationlab/qwen3-medical with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-0.6B") model = PeftModel.from_pretrained(base_model, "towardsinnovationlab/qwen3-medical") - Transformers
How to use towardsinnovationlab/qwen3-medical with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="towardsinnovationlab/qwen3-medical") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("towardsinnovationlab/qwen3-medical", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use towardsinnovationlab/qwen3-medical with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "towardsinnovationlab/qwen3-medical" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "towardsinnovationlab/qwen3-medical", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/towardsinnovationlab/qwen3-medical
- SGLang
How to use towardsinnovationlab/qwen3-medical with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "towardsinnovationlab/qwen3-medical" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "towardsinnovationlab/qwen3-medical", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "towardsinnovationlab/qwen3-medical" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "towardsinnovationlab/qwen3-medical", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use towardsinnovationlab/qwen3-medical with Docker Model Runner:
docker model run hf.co/towardsinnovationlab/qwen3-medical
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,15 +16,16 @@ language:
|
|
| 16 |
- en
|
| 17 |
---
|
| 18 |
|
| 19 |
-
### Model Description
|
| 20 |
|
| 21 |
-
This
|
|
|
|
| 22 |
|
| 23 |
-
The
|
| 24 |
|
| 25 |
-OpenMed/Medical-Reasoning-SFT-GPT-OSS-120B - for enhancing medical reasoning skills
|
| 26 |
|
| 27 |
-
### Model Details
|
| 28 |
|
| 29 |
- **Developed by:** Claudio Giorgio Giancaterino
|
| 30 |
- **Language(s) (NLP):** English
|
|
@@ -35,7 +36,7 @@ The model is trained on the following dataset:
|
|
| 35 |
|
| 36 |
### Direct Use
|
| 37 |
|
| 38 |
-
This
|
| 39 |
|
| 40 |
### Downstream Use
|
| 41 |
|
|
@@ -48,11 +49,11 @@ It is not suitable for high-level decision-making.
|
|
| 48 |
## Bias, Risks, and Limitations
|
| 49 |
|
| 50 |
Conversational quality may degrade with complex or multi-turn inputs.
|
| 51 |
-
The
|
| 52 |
|
| 53 |
-
## How to Get Started with the Model
|
| 54 |
|
| 55 |
-
Use the code below to get started with the
|
| 56 |
|
| 57 |
-Using the pipeline:
|
| 58 |
```python
|
|
|
|
| 16 |
- en
|
| 17 |
---
|
| 18 |
|
| 19 |
+
### Model Adapter Description
|
| 20 |
|
| 21 |
+
This is a LoRA adapter for Qwen/Qwen3-0.6B, trained using the Unsloth library for parameter-efficient fine-tuning (PEFT).
|
| 22 |
+
When loaded via the transformers pipeline or PeftModel, the base model Qwen/Qwen3-0.6B is automatically fetched, and the adapter is applied on top.
|
| 23 |
|
| 24 |
+
The adapter was trained on the following dataset:
|
| 25 |
|
| 26 |
-OpenMed/Medical-Reasoning-SFT-GPT-OSS-120B - for enhancing medical reasoning skills
|
| 27 |
|
| 28 |
+
### Model Adapter Details
|
| 29 |
|
| 30 |
- **Developed by:** Claudio Giorgio Giancaterino
|
| 31 |
- **Language(s) (NLP):** English
|
|
|
|
| 36 |
|
| 37 |
### Direct Use
|
| 38 |
|
| 39 |
+
This adapter can be used as support in healthcare applications, medical research, and clinical text generation.
|
| 40 |
|
| 41 |
### Downstream Use
|
| 42 |
|
|
|
|
| 49 |
## Bias, Risks, and Limitations
|
| 50 |
|
| 51 |
Conversational quality may degrade with complex or multi-turn inputs.
|
| 52 |
+
The adapter may give inaccurate answers and should be referred to a professional.
|
| 53 |
|
| 54 |
+
## How to Get Started with the Model Adapter
|
| 55 |
|
| 56 |
+
Use the code below to get started with the adapter.
|
| 57 |
|
| 58 |
-Using the pipeline:
|
| 59 |
```python
|