jc2375 commited on
Commit
338e0df
·
verified ·
1 Parent(s): 045f8c5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model: microsoft/MediPhi-MedCode
6
+ library_name: transformers
7
+ tags:
8
+ - merge
9
+ - mergekit
10
+ - medical
11
+ - clinical
12
+ - mlx
13
+ - mlx-my-repo
14
+ ---
15
+
16
+ # jc2375/MediPhi-MedCode-mlx-8Bit
17
+
18
+ The Model [jc2375/MediPhi-MedCode-mlx-8Bit](https://huggingface.co/jc2375/MediPhi-MedCode-mlx-8Bit) was converted to MLX format from [microsoft/MediPhi-MedCode](https://huggingface.co/microsoft/MediPhi-MedCode) using mlx-lm version **0.26.4**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("jc2375/MediPhi-MedCode-mlx-8Bit")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```