Instructions to use unica/CLiMA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unica/CLiMA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unica/CLiMA")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unica/CLiMA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use unica/CLiMA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unica/CLiMA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unica/CLiMA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/unica/CLiMA
- SGLang
How to use unica/CLiMA 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 "unica/CLiMA" \ --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": "unica/CLiMA", "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 "unica/CLiMA" \ --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": "unica/CLiMA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use unica/CLiMA with Docker Model Runner:
docker model run hf.co/unica/CLiMA
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,13 +16,14 @@ pipeline_tag: text-generation
|
|
| 16 |
|
| 17 |
# CLiMA (Causal Linking for Medical Annotation)
|
| 18 |
|
| 19 |
-
CLiMA (Causal Linking for Medical Annotation) is a causal relation classification model fine-tuned on the MIMICause dataset, a collection of
|
| 20 |
de-identified discharge summaries sourced from the MIMIC-III (Medical Information Mart for Intensive Care-III) clinical database (https://portal.dbmi.hms.harvard.edu/projects/n2c2-nlp/).
|
| 21 |
|
| 22 |
-
|
| 23 |
-
the context of benchmark evaluation of different open-source LLMs and different learning methods on the MIMICause dataset (paper under review)
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
### Model Description
|
|
|
|
| 16 |
|
| 17 |
# CLiMA (Causal Linking for Medical Annotation)
|
| 18 |
|
| 19 |
+
CLiMA (Causal Linking for Medical Annotation) is a causal relation classification model fine-tuned on the MIMICause dataset (https://huggingface.co/datasets/pensieves/mimicause), a collection of
|
| 20 |
de-identified discharge summaries sourced from the MIMIC-III (Medical Information Mart for Intensive Care-III) clinical database (https://portal.dbmi.hms.harvard.edu/projects/n2c2-nlp/).
|
| 21 |
|
| 22 |
+
The model has been trained in the context of benchmark evaluation of different open-source LLMs and different learning methods on the MIMICause dataset (paper under review)
|
|
|
|
| 23 |
|
| 24 |
+
It model could be used to extract and classify causal relation holding between pairs of biomedical entities from clinical texts. A cross-domain
|
| 25 |
+
evaluation on a drug review dataset (https://archive.ics.uci.edu/dataset/461/drug+review+dataset+druglib+com) also results in high
|
| 26 |
+
causal relation classification accuracy.
|
| 27 |
|
| 28 |
|
| 29 |
### Model Description
|