thantnaylin commited on
Commit
892fa9f
·
verified ·
1 Parent(s): 426b87d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +74 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: health-ai-developer-foundations
4
+ license_link: https://developers.google.com/health-ai-developer-foundations/terms
5
+ library_name: transformers
6
+ pipeline_tag: image-text-to-text
7
+ language: en
8
+ extra_gated_heading: Access MedGemma on Hugging Face
9
+ extra_gated_prompt: To access MedGemma on Hugging Face, you're required to review
10
+ and agree to [Health AI Developer Foundation's terms of use](https://developers.google.com/health-ai-developer-foundations/terms).
11
+ To do this, please ensure you're logged in to Hugging Face and click below. Requests
12
+ are processed immediately.
13
+ extra_gated_button_content: Acknowledge license
14
+ tags:
15
+ - medical
16
+ - x-ray
17
+ - pathology
18
+ - dermatology
19
+ - fundus
20
+ - radiology report generation
21
+ - chest-x-ray
22
+ - medical-embeddings
23
+ - image-classification
24
+ - zero-shot-image-classification
25
+ - image-feature-extraction
26
+ - image-text-to-text
27
+ - llama-cpp
28
+ - gguf-my-repo
29
+ base_model: google/medgemma-27b-it
30
+ ---
31
+
32
+ # thantnaylin/medgemma-27b-it-Q4_K_M-GGUF
33
+ This model was converted to GGUF format from [`google/medgemma-27b-it`](https://huggingface.co/google/medgemma-27b-it) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
34
+ Refer to the [original model card](https://huggingface.co/google/medgemma-27b-it) for more details on the model.
35
+
36
+ ## Use with llama.cpp
37
+ Install llama.cpp through brew (works on Mac and Linux)
38
+
39
+ ```bash
40
+ brew install llama.cpp
41
+
42
+ ```
43
+ Invoke the llama.cpp server or the CLI.
44
+
45
+ ### CLI:
46
+ ```bash
47
+ llama-cli --hf-repo thantnaylin/medgemma-27b-it-Q4_K_M-GGUF --hf-file medgemma-27b-it-q4_k_m.gguf -p "The meaning to life and the universe is"
48
+ ```
49
+
50
+ ### Server:
51
+ ```bash
52
+ llama-server --hf-repo thantnaylin/medgemma-27b-it-Q4_K_M-GGUF --hf-file medgemma-27b-it-q4_k_m.gguf -c 2048
53
+ ```
54
+
55
+ 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.
56
+
57
+ Step 1: Clone llama.cpp from GitHub.
58
+ ```
59
+ git clone https://github.com/ggerganov/llama.cpp
60
+ ```
61
+
62
+ 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).
63
+ ```
64
+ cd llama.cpp && LLAMA_CURL=1 make
65
+ ```
66
+
67
+ Step 3: Run inference through the main binary.
68
+ ```
69
+ ./llama-cli --hf-repo thantnaylin/medgemma-27b-it-Q4_K_M-GGUF --hf-file medgemma-27b-it-q4_k_m.gguf -p "The meaning to life and the universe is"
70
+ ```
71
+ or
72
+ ```
73
+ ./llama-server --hf-repo thantnaylin/medgemma-27b-it-Q4_K_M-GGUF --hf-file medgemma-27b-it-q4_k_m.gguf -c 2048
74
+ ```