Text Generation
Transformers
Safetensors
PEFT
English
medical
llm
qwen3
thinking-model
entity-extraction
relation-extraction
lora
conversational
Instructions to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xingqiang/Medical-NER-Qwen-4B-Thinking-plus") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xingqiang/Medical-NER-Qwen-4B-Thinking-plus", dtype="auto") - PEFT
How to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xingqiang/Medical-NER-Qwen-4B-Thinking-plus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingqiang/Medical-NER-Qwen-4B-Thinking-plus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xingqiang/Medical-NER-Qwen-4B-Thinking-plus
- SGLang
How to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus 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 "xingqiang/Medical-NER-Qwen-4B-Thinking-plus" \ --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": "xingqiang/Medical-NER-Qwen-4B-Thinking-plus", "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 "xingqiang/Medical-NER-Qwen-4B-Thinking-plus" \ --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": "xingqiang/Medical-NER-Qwen-4B-Thinking-plus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use xingqiang/Medical-NER-Qwen-4B-Thinking-plus with Docker Model Runner:
docker model run hf.co/xingqiang/Medical-NER-Qwen-4B-Thinking-plus
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- README.md +1 -0
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -11,6 +11,7 @@ tags:
|
|
| 11 |
- relation-extraction
|
| 12 |
- lora
|
| 13 |
- peft
|
|
|
|
| 14 |
library_name: transformers
|
| 15 |
pipeline_tag: text-generation
|
| 16 |
---
|
|
|
|
| 11 |
- relation-extraction
|
| 12 |
- lora
|
| 13 |
- peft
|
| 14 |
+
- unsloth
|
| 15 |
library_name: transformers
|
| 16 |
pipeline_tag: text-generation
|
| 17 |
---
|
adapter_config.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"v_proj",
|
| 33 |
-
"down_proj",
|
| 34 |
-
"o_proj",
|
| 35 |
-
"k_proj",
|
| 36 |
"gate_proj",
|
|
|
|
|
|
|
| 37 |
"up_proj",
|
| 38 |
-
"q_proj"
|
|
|
|
|
|
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"gate_proj",
|
| 33 |
+
"down_proj",
|
| 34 |
+
"v_proj",
|
| 35 |
"up_proj",
|
| 36 |
+
"q_proj",
|
| 37 |
+
"o_proj",
|
| 38 |
+
"k_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 132187888
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21ad88b483e8e19ae9397b598ab3b7939c952792eb3f713cb442be155f255aba
|
| 3 |
size 132187888
|