Text Generation
Transformers
PyTorch
English
llama
endocrinology
medical
thyroid
diabetes
pituitary
adrenal
text-generation-inference
Instructions to use Johnyquest7/thyroid_open_llama_3b_v2b_full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Johnyquest7/thyroid_open_llama_3b_v2b_full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Johnyquest7/thyroid_open_llama_3b_v2b_full")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Johnyquest7/thyroid_open_llama_3b_v2b_full") model = AutoModelForCausalLM.from_pretrained("Johnyquest7/thyroid_open_llama_3b_v2b_full", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Johnyquest7/thyroid_open_llama_3b_v2b_full with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Johnyquest7/thyroid_open_llama_3b_v2b_full" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Johnyquest7/thyroid_open_llama_3b_v2b_full", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Johnyquest7/thyroid_open_llama_3b_v2b_full
- SGLang
How to use Johnyquest7/thyroid_open_llama_3b_v2b_full 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 "Johnyquest7/thyroid_open_llama_3b_v2b_full" \ --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": "Johnyquest7/thyroid_open_llama_3b_v2b_full", "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 "Johnyquest7/thyroid_open_llama_3b_v2b_full" \ --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": "Johnyquest7/thyroid_open_llama_3b_v2b_full", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Johnyquest7/thyroid_open_llama_3b_v2b_full with Docker Model Runner:
docker model run hf.co/Johnyquest7/thyroid_open_llama_3b_v2b_full
Commit ·
9beff1e
1
Parent(s): 229b4ce
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- endocrinology
|
| 9 |
+
- medical
|
| 10 |
+
- llama
|
| 11 |
+
- thyroid
|
| 12 |
+
- diabetes
|
| 13 |
+
- pituitary
|
| 14 |
+
- adrenal
|
| 15 |
+
widget:
|
| 16 |
+
- text: |
|
| 17 |
+
### Question: What is hypothyroidism?
|
| 18 |
+
### Input:
|
| 19 |
+
### Response:
|
| 20 |
+
inference:
|
| 21 |
+
parameters:
|
| 22 |
+
temperature: 0.1
|
| 23 |
+
max_new_tokens: 1024
|
| 24 |
+
|
| 25 |
+
Document created on September 7 2023
|
| 26 |
+
|
| 27 |
+
Endo_Llama: Thyroid Edition (v1)
|
| 28 |
+
Model Description
|
| 29 |
+
|
| 30 |
+
What is it?
|
| 31 |
+
|
| 32 |
+
Endo_Llama is a large language model (LLama 2) finetuned to answer questions related to endocrinology, with a focus on thyroid-related issues in its first version. This model aims to assist healthcare professionals and researchers in obtaining better information about thyroid conditions, treatments, and best practices.
|
| 33 |
+
|
| 34 |
+
Input Models input text only.
|
| 35 |
+
|
| 36 |
+
Output Models generate text only.
|
| 37 |
+
|
| 38 |
+
Model Architecture
|
| 39 |
+
Model Type: Llama 2 Parameters: ~7B Training Data: Curated dataset of endocrinology questions and answers, with a focus on thyroid issues for Version 1.
|
| 40 |
+
|
| 41 |
+
Intended Use
|
| 42 |
+
Clinical decision support Medical research
|
| 43 |
+
|
| 44 |
+
Limitations
|
| 45 |
+
Not a substitute for professional medical advice May not cover all nuances of a complex medical condition Version 1 is primarily focused on thyroid-related issues
|
| 46 |
+
|
| 47 |
+
Training Data
|
| 48 |
+
The model is trained on a curated dataset of endocrinology questions and answers, with an emphasis on thyroid conditions.
|
| 49 |
+
|
| 50 |
+
Usage
|
| 51 |
+
coming soon!
|