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 ·
ee5d02e
1
Parent(s): 98411f1
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,27 +1,26 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
---
|
| 4 |
language:
|
| 5 |
-
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
tags:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
widget:
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 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)
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
| 3 |
language:
|
| 4 |
+
- en
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
tags:
|
| 7 |
+
- endocrinology
|
| 8 |
+
- medical
|
| 9 |
+
- llama
|
| 10 |
+
- thyroid
|
| 11 |
+
- diabetes
|
| 12 |
+
- pituitary
|
| 13 |
+
- adrenal
|
| 14 |
widget:
|
| 15 |
+
- text: |
|
| 16 |
+
### Question: What is hypothyroidism?
|
| 17 |
+
### Input:
|
| 18 |
+
### Response:
|
| 19 |
inference:
|
| 20 |
parameters:
|
| 21 |
temperature: 0.1
|
| 22 |
max_new_tokens: 1024
|
| 23 |
+
---
|
| 24 |
Document created on September 7 2023
|
| 25 |
|
| 26 |
Endo_Llama: Thyroid Edition (v1)
|