samrawal commited on
Commit
a014488
1 Parent(s): e929b69

Updated README

Browse files
Files changed (1) hide show
  1. README.md +25 -43
README.md CHANGED
@@ -1,51 +1,33 @@
1
  ---
2
  base_model: samrawal/problem-list-generator
3
- library_name: transformers
4
  tags:
5
  - llama-cpp
6
  - gguf-my-repo
 
 
 
 
 
7
  ---
8
 
9
  # samrawal/problem-list-generator-Q8_0-GGUF
10
- This model was converted to GGUF format from [`samrawal/problem-list-generator`](https://huggingface.co/samrawal/problem-list-generator) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
11
- Refer to the [original model card](https://huggingface.co/samrawal/problem-list-generator) for more details on the model.
12
-
13
- ## Use with llama.cpp
14
- Install llama.cpp through brew (works on Mac and Linux)
15
-
16
- ```bash
17
- brew install llama.cpp
18
-
19
- ```
20
- Invoke the llama.cpp server or the CLI.
21
-
22
- ### CLI:
23
- ```bash
24
- llama-cli --hf-repo samrawal/problem-list-generator-Q8_0-GGUF --hf-file problem-list-generator-q8_0.gguf -p "The meaning to life and the universe is"
25
- ```
26
-
27
- ### Server:
28
- ```bash
29
- llama-server --hf-repo samrawal/problem-list-generator-Q8_0-GGUF --hf-file problem-list-generator-q8_0.gguf -c 2048
30
- ```
31
-
32
- 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.
33
-
34
- Step 1: Clone llama.cpp from GitHub.
35
- ```
36
- git clone https://github.com/ggerganov/llama.cpp
37
- ```
38
-
39
- 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).
40
- ```
41
- cd llama.cpp && LLAMA_CURL=1 make
42
- ```
43
-
44
- Step 3: Run inference through the main binary.
45
- ```
46
- ./llama-cli --hf-repo samrawal/problem-list-generator-Q8_0-GGUF --hf-file problem-list-generator-q8_0.gguf -p "The meaning to life and the universe is"
47
- ```
48
- or
49
- ```
50
- ./llama-server --hf-repo samrawal/problem-list-generator-Q8_0-GGUF --hf-file problem-list-generator-q8_0.gguf -c 2048
51
- ```
 
1
  ---
2
  base_model: samrawal/problem-list-generator
 
3
  tags:
4
  - llama-cpp
5
  - gguf-my-repo
6
+ - medical
7
+ - clinical
8
+ language:
9
+ - en
10
+ pipeline_tag: text-generation
11
  ---
12
 
13
  # samrawal/problem-list-generator-Q8_0-GGUF
14
+ # About
15
+ `problem-list-generator` is an experimental local LLM trained to generate a list of active clinical problems from a History and Physical (H&P) section of a clinical note.
16
+
17
+ ![Problem List Generator Demo](https://github.com/samrawal/problem-list-generator/raw/main/assets/problemlistdemo.gif)
18
+
19
+
20
+ This is part of [a small personal experiment](https://x.com/samarthrawal/status/1817686625364922582) to train small, fast, local language models that can assist clinicians when writing medical notes. It can be run completely offline, without any data leaving your local machine.
21
+
22
+ For more information on trying this out, please see the [corresponding GitHub repository](https://github.com/samrawal/problem-list-generator).
23
+
24
+ # Technical Details
25
+ This model was finetuned using synthetic clinical data generated with `Llama 3.1 405b`. The model itself is a LORA finetune of `Meta-Llama-3.1-8B-Instruct`.
26
+
27
+ This repository contains a basic Python script to inference the model via Ollama.
28
+
29
+ # Setup
30
+ 1. Clone this repository
31
+ 1. Download the GGUF model from [here](https://huggingface.co/samrawal/problem-list-generator-Q8_0-GGUF) and place in same directory as the repo.
32
+ 3. Add the model to Ollama: `ollama create problemlist -f ProblemList.Modelfile`
33
+ 4. Run the Python script: `python problemlist.py`