apepkuss79 commited on
Commit
b0298ba
·
verified ·
1 Parent(s): a88f54c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +107 -1
README.md CHANGED
@@ -1,3 +1,109 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: google/medgemma-4b-it
3
+ inference: false
4
+ library_name: transformers
5
+ license: other
6
+ license_name: health-ai-developer-foundations
7
+ license_link: https://developers.google.com/health-ai-developer-foundations/terms
8
+ model_creator: Google
9
+ model_name: medgemma-4b-it
10
+ quantized_by: Second State Inc.
11
+ pipeline_tag: image-text-to-text
12
+ tags:
13
+ - medical
14
+ - radiology
15
+ - clinical-reasoning
16
+ - dermatology
17
+ - pathology
18
+ - ophthalmology
19
+ - chest-x-ray
20
  ---
21
+
22
+ <!-- header start -->
23
+ <!-- 200823 -->
24
+ <div style="width: auto; margin-left: auto; margin-right: auto">
25
+ <img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
26
+ </div>
27
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
28
+ <!-- header end -->
29
+
30
+ # medgemma-4b-it-GGUF
31
+
32
+ ## Original Model
33
+
34
+ [google/medgemma-4b-it](https://huggingface.co/google/medgemma-4b-it)
35
+
36
+ ## Run with LlamaEdge
37
+
38
+ - LlamaEdge version: [v0.18.5](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.18.5) and above
39
+
40
+ - Prompt template
41
+
42
+ - Prompt type: `gemma-3`
43
+
44
+ - Prompt string
45
+
46
+ ```text
47
+ <bos><start_of_turn>user
48
+ {user_message}<end_of_turn>
49
+ <start_of_turn>model
50
+ {model_message}<end_of_turn>model
51
+ ```
52
+
53
+ - Context size: `128000`
54
+
55
+ - Run as LlamaEdge service
56
+
57
+ - Chat
58
+
59
+ ```bash
60
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:medgemma-4b-it-Q5_K_M.gguf \
61
+ llama-api-server.wasm \
62
+ --prompt-template gemma-3 \
63
+ --ctx-size 128000 \
64
+ --model-name medgemma-4b
65
+ ```
66
+
67
+ - Images
68
+
69
+ **Note that input images are required to be normalized to 896 x 896 resolution and encoded to 256 tokens each**
70
+
71
+ ```bash
72
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:medgemma-4b-it-Q5_K_M.gguf \
73
+ llama-api-server.wasm \
74
+ --prompt-template gemma-3 \
75
+ --llava-mmproj medgemma-4b-it-mmproj-f16.gguf \
76
+ --ctx-size 128000 \
77
+ --model-name medgemma-4b
78
+ ```
79
+
80
+ - Run as LlamaEdge command app
81
+
82
+ ```bash
83
+ wasmedge --dir .:. \
84
+ --nn-preload default:GGML:AUTO:medgemma-4b-it-Q5_K_M.gguf \
85
+ llama-chat.wasm \
86
+ --prompt-template gemma-3 \
87
+ --ctx-size 128000
88
+ ```
89
+
90
+ ## Quantized GGUF Models
91
+
92
+ | Name | Quant method | Bits | Size | Use case |
93
+ | ---- | ---- | ---- | ---- | ----- |
94
+ | [medgemma-4b-it-Q2_K.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q2_K.gguf) | Q2_K | 2 | 1.73 GB| smallest, significant quality loss - not recommended for most purposes |
95
+ | [medgemma-4b-it-Q3_K_L.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q3_K_L.gguf) | Q3_K_L | 3 | 2.24 GB| small, substantial quality loss |
96
+ | [medgemma-4b-it-Q3_K_M.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q3_K_M.gguf) | Q3_K_M | 3 | 2.10 GB| very small, high quality loss |
97
+ | [medgemma-4b-it-Q3_K_S.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q3_K_S.gguf) | Q3_K_S | 3 | 1.94 GB| very small, high quality loss |
98
+ | [medgemma-4b-it-Q4_0.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q4_0.gguf) | Q4_0 | 4 | 2.36 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
99
+ | [medgemma-4b-it-Q4_K_M.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q4_K_M.gguf) | Q4_K_M | 4 | 2.49 GB| medium, balanced quality - recommended |
100
+ | [medgemma-4b-it-Q4_K_S.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q4_K_S.gguf) | Q4_K_S | 4 | 2.38 GB| small, greater quality loss |
101
+ | [medgemma-4b-it-Q5_0.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q5_0.gguf) | Q5_0 | 5 | 2.76 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
102
+ | [medgemma-4b-it-Q5_K_M.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q5_K_M.gguf) | Q5_K_M | 5 | 2.83 GB| large, very low quality loss - recommended |
103
+ | [medgemma-4b-it-Q5_K_S.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q5_K_S.gguf) | Q5_K_S | 5 | 2.76 GB| large, low quality loss - recommended |
104
+ | [medgemma-4b-it-Q6_K.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q6_K.gguf) | Q6_K | 6 | 3.19 GB| very large, extremely low quality loss |
105
+ | [medgemma-4b-it-Q8_0.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-Q8_0.gguf) | Q8_0 | 8 | 4.13 GB| very large, extremely low quality loss - not recommended |
106
+ | [medgemma-4b-it-f16.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-f16.gguf) | f16 | 16 | 7.77 GB| |
107
+ | [medgemma-4b-it-mmproj-f16.gguf](https://huggingface.co/second-state/medgemma-4b-it-GGUF/blob/main/medgemma-4b-it-mmproj-f16.gguf) | f16 | 16 | 851 MB| |
108
+
109
+ *Quantized with llama.cpp b5452*
Free AI Image Generator No sign-up. Instant results. Open Now