warshanks commited on
Commit
23fb24f
·
verified ·
1 Parent(s): 9ee0770

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -2,8 +2,8 @@
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
  extra_gated_heading: Access MedGemma on Hugging Face
8
  extra_gated_prompt: To access MedGemma on Hugging Face, you're required to review
9
  and agree to [Health AI Developer Foundation's terms of use](https://developers.google.com/health-ai-developer-foundations/terms).
@@ -16,12 +16,13 @@ tags:
16
  - clinical-reasoning
17
  - thinking
18
  - mlx
19
- - mlx-my-repo
20
  ---
21
 
22
  # mlx-community/medgemma-27b-text-it-bf16
23
 
24
- The Model [mlx-community/medgemma-27b-text-it-bf16](https://huggingface.co/mlx-community/medgemma-27b-text-it-bf16) was converted to MLX format from [google/medgemma-27b-text-it](https://huggingface.co/google/medgemma-27b-text-it) using mlx-lm version **0.24.1**.
 
 
25
 
26
  ## Use with mlx
27
 
@@ -34,12 +35,12 @@ from mlx_lm import load, generate
34
 
35
  model, tokenizer = load("mlx-community/medgemma-27b-text-it-bf16")
36
 
37
- prompt="hello"
38
 
39
- if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
40
  messages = [{"role": "user", "content": prompt}]
41
  prompt = tokenizer.apply_chat_template(
42
- messages, tokenize=False, add_generation_prompt=True
43
  )
44
 
45
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
 
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: mlx
6
+ pipeline_tag: text-generation
7
  extra_gated_heading: Access MedGemma on Hugging Face
8
  extra_gated_prompt: To access MedGemma on Hugging Face, you're required to review
9
  and agree to [Health AI Developer Foundation's terms of use](https://developers.google.com/health-ai-developer-foundations/terms).
 
16
  - clinical-reasoning
17
  - thinking
18
  - mlx
 
19
  ---
20
 
21
  # mlx-community/medgemma-27b-text-it-bf16
22
 
23
+ This model [mlx-community/medgemma-27b-text-it-bf16](https://huggingface.co/mlx-community/medgemma-27b-text-it-bf16) was
24
+ converted to MLX format from [google/medgemma-27b-text-it](https://huggingface.co/google/medgemma-27b-text-it)
25
+ using mlx-lm version **0.24.1**.
26
 
27
  ## Use with mlx
28
 
 
35
 
36
  model, tokenizer = load("mlx-community/medgemma-27b-text-it-bf16")
37
 
38
+ prompt = "hello"
39
 
40
+ if tokenizer.chat_template is not None:
41
  messages = [{"role": "user", "content": prompt}]
42
  prompt = tokenizer.apply_chat_template(
43
+ messages, add_generation_prompt=True
44
  )
45
 
46
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
model-00001-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7c25072f694a7b2252311b109b82f5d26719b2d59ad36dbca95229333dd474f
3
- size 5362028753
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:378646fc12f73360caf3fd33c489e76a2bc6fd468a76ffd2da36209fe69bb076
3
+ size 5362028795
model-00002-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e593c2abc1ea1fc4493bacf0e0468df1340a3209fd00c32282193a1242f935ac
3
- size 5252064044
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:964e164fe43cc442b6026c2304f8d7e1eeb09c9a4eb69a6ae2dd55683192a335
3
+ size 5252064127
model-00003-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:de28331bdf803dce2482e2a8422261bd6c2436013bcdfb4e242084d684e6f304
3
- size 5186002891
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1d237408f8d721400eb2399c1ff2a77288e3a000cef8b2b5aaed9dac525c383
3
+ size 5186002970
model-00004-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0253745990afbac4cac6ebaf6c0fe85ffe9f7f29c885496f83a4c168b70af85b
3
- size 5318168107
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb18f08493eaee2a508716122271c40bf52d02e4003c16d457b0e126dc0a2e7b
3
+ size 5318168196
model-00005-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bcfe1ac240e7e1de70991f353bb639c1bce51521d59fcb95cf2301bc53be4724
3
- size 5186002883
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:076ae3ae60f0430dad40a3e336606c5efe14f81551445214351751bda98e2da5
3
+ size 5186002962
model-00006-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fbacad9e4d92ad5ecf354742d5f49f1603277380d039011bdaed0944524bb0f3
3
- size 5186002853
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60072ed76bbd35d4d9e5b24348ca1d4ad1bcb23c2cefdea0b604b717a1a8e5fd
3
+ size 5186002932
model-00007-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f0de2e17ffb07ebe5db58e9c70ff60fa8d53e27e412cb0840d5f6f1a482c4630
3
- size 5318168143
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b07b8f537893820a5604b0daa3114d71e0f53fded25075dc628a40ae07df141
3
+ size 5318168232
model-00008-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5077e3d9774543a7cb91236e1b4d71ec48918d9129c53b5f00792057e5d51baf
3
- size 5186002875
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2f2546d9c11d50e7cb88e935b5c9d740433570441fa54de754ebf9692267bd2
3
+ size 5186002954
model-00009-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3aa81ecb45a75a38646fd8c68fae5e31e5a92b2eb1283551693fc009640d9d75
3
- size 5186002851
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:990b5e728415e37d72c869b52e0c15d201ea7252509e556978264fd658921534
3
+ size 5186002930
model-00010-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4af5f15362c76daae318416e89c4feaf4205a0d146cd3bb2995380961c09c118
3
- size 5318168131
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4da9f74aba1d3321d2d279f54c2f3718125ee55be4802418677bf3bc7889d46
3
+ size 5318168220
model-00011-of-00011.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a3981090a1629fb91b847e3bcd03138d61894095ed4a6b2921650c7daeceac10
3
- size 4338058684
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08710763bbc08ac0d7173cb16cfe9a2724267197841055ac60f3a2e46c63093b
3
+ size 4338058706