Instructions to use InMedData/InMD-X-RHE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InMedData/InMD-X-RHE with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="InMedData/InMD-X-RHE")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("InMedData/InMD-X-RHE", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use InMedData/InMD-X-RHE with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InMedData/InMD-X-RHE" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InMedData/InMD-X-RHE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/InMedData/InMD-X-RHE
- SGLang
How to use InMedData/InMD-X-RHE 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 "InMedData/InMD-X-RHE" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InMedData/InMD-X-RHE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "InMedData/InMD-X-RHE" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InMedData/InMD-X-RHE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use InMedData/InMD-X-RHE with Docker Model Runner:
docker model run hf.co/InMedData/InMD-X-RHE
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
|
@@ -13,6 +19,9 @@ tags: []
|
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
|
| 18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
|
@@ -22,15 +31,16 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 22 |
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
- **Model type:** [More Information Needed]
|
| 24 |
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
-
- **License:**
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
### Model Sources [optional]
|
| 29 |
|
| 30 |
<!-- Provide the basic links for the model. -->
|
| 31 |
|
| 32 |
-
|
| 33 |
-
- **Paper [optional]:**
|
| 34 |
- **Demo [optional]:** [More Information Needed]
|
| 35 |
|
| 36 |
## Uses
|
|
@@ -196,6 +206,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 196 |
|
| 197 |
## Model Card Contact
|
| 198 |
|
| 199 |
-
[More Information Needed]
|
| 200 |
-
|
| 201 |
-
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- medical
|
| 5 |
+
license: cc-by-nc-sa-4.0
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
base_model: Intel/neural-chat-7b-v3-1
|
| 10 |
---
|
| 11 |
|
| 12 |
# Model Card for Model ID
|
|
|
|
| 19 |
|
| 20 |
### Model Description
|
| 21 |
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
<!-- Provide a longer summary of what this model is. -->
|
| 26 |
|
| 27 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
|
|
|
| 31 |
- **Shared by [optional]:** [More Information Needed]
|
| 32 |
- **Model type:** [More Information Needed]
|
| 33 |
- **Language(s) (NLP):** [More Information Needed]
|
| 34 |
+
- **License:** license: cc-by-nc-sa-4.0
|
| 35 |
+
|
| 36 |
+
- **Finetuned from model [optional]:** Intel/neural-chat-7b-v3-1
|
| 37 |
|
| 38 |
### Model Sources [optional]
|
| 39 |
|
| 40 |
<!-- Provide the basic links for the model. -->
|
| 41 |
|
| 42 |
+
|
| 43 |
+
- **Paper [optional]:** https://arxiv.org/abs/2402.11883
|
| 44 |
- **Demo [optional]:** [More Information Needed]
|
| 45 |
|
| 46 |
## Uses
|
|
|
|
| 206 |
|
| 207 |
## Model Card Contact
|
| 208 |
|
| 209 |
+
[More Information Needed]
|
|
|
|
|
|