Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: ruslanmv/Medical-Llama3-v2
|
3 |
+
datasets:
|
4 |
+
- ruslanmv/ai-medical-chatbot
|
5 |
+
language: en
|
6 |
+
license: apache-2.0
|
7 |
+
tags:
|
8 |
+
- text-generation-inference
|
9 |
+
- transformers
|
10 |
+
- ruslanmv
|
11 |
+
- llama
|
12 |
+
- trl
|
13 |
+
- llama-3
|
14 |
+
- instruct
|
15 |
+
- finetune
|
16 |
+
- chatml
|
17 |
+
- DPO
|
18 |
+
- RLHF
|
19 |
+
- gpt4
|
20 |
+
- distillation
|
21 |
+
- heathcare
|
22 |
+
- medical
|
23 |
+
- clinical
|
24 |
+
- med
|
25 |
+
- lifescience
|
26 |
+
- Pharmaceutical
|
27 |
+
- Pharma
|
28 |
+
- llama-cpp
|
29 |
+
- gguf-my-repo
|
30 |
+
widget:
|
31 |
+
- example_title: Medical-Llama3-8B
|
32 |
+
messages:
|
33 |
+
- role: system
|
34 |
+
content: You are an expert and experienced from the healthcare and biomedical
|
35 |
+
domain with extensive medical knowledge and practical experience.
|
36 |
+
- role: user
|
37 |
+
content: How long does it take for newborn jaundice to go away?
|
38 |
+
output:
|
39 |
+
text: Newborn jaundice, also known as neonatal jaundice, is a common condition
|
40 |
+
in newborns where the yellowing of the skin and eyes occurs due to an elevated
|
41 |
+
level of bilirubin in the blood. Bilirubin is a yellow pigment that forms when
|
42 |
+
red blood cells break down. In most cases, newborn jaundice resolves on its
|
43 |
+
own without any specific treatment. The duration of newborn jaundice can vary
|
44 |
+
depending on several factors such as the underlying cause, gestational age at
|
45 |
+
birth, and individual variations in bilirubin metabolism. Here are some general
|
46 |
+
guidelines
|
47 |
+
model-index:
|
48 |
+
- name: Medical-Llama3-8B
|
49 |
+
results: []
|
50 |
+
---
|
51 |
+
|
52 |
+
# Anoxiom/Medical-Llama3-v2-Q6_K-GGUF
|
53 |
+
This model was converted to GGUF format from [`ruslanmv/Medical-Llama3-v2`](https://huggingface.co/ruslanmv/Medical-Llama3-v2) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
54 |
+
Refer to the [original model card](https://huggingface.co/ruslanmv/Medical-Llama3-v2) for more details on the model.
|
55 |
+
|
56 |
+
## Use with llama.cpp
|
57 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
58 |
+
|
59 |
+
```bash
|
60 |
+
brew install llama.cpp
|
61 |
+
|
62 |
+
```
|
63 |
+
Invoke the llama.cpp server or the CLI.
|
64 |
+
|
65 |
+
### CLI:
|
66 |
+
```bash
|
67 |
+
llama-cli --hf-repo Anoxiom/Medical-Llama3-v2-Q6_K-GGUF --hf-file medical-llama3-v2-q6_k.gguf -p "The meaning to life and the universe is"
|
68 |
+
```
|
69 |
+
|
70 |
+
### Server:
|
71 |
+
```bash
|
72 |
+
llama-server --hf-repo Anoxiom/Medical-Llama3-v2-Q6_K-GGUF --hf-file medical-llama3-v2-q6_k.gguf -c 2048
|
73 |
+
```
|
74 |
+
|
75 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
76 |
+
|
77 |
+
Step 1: Clone llama.cpp from GitHub.
|
78 |
+
```
|
79 |
+
git clone https://github.com/ggerganov/llama.cpp
|
80 |
+
```
|
81 |
+
|
82 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
83 |
+
```
|
84 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
85 |
+
```
|
86 |
+
|
87 |
+
Step 3: Run inference through the main binary.
|
88 |
+
```
|
89 |
+
./llama-cli --hf-repo Anoxiom/Medical-Llama3-v2-Q6_K-GGUF --hf-file medical-llama3-v2-q6_k.gguf -p "The meaning to life and the universe is"
|
90 |
+
```
|
91 |
+
or
|
92 |
+
```
|
93 |
+
./llama-server --hf-repo Anoxiom/Medical-Llama3-v2-Q6_K-GGUF --hf-file medical-llama3-v2-q6_k.gguf -c 2048
|
94 |
+
```
|