CD4cell commited on
Commit
7273ed3
·
verified ·
1 Parent(s): 83e7147

Upload README.md with huggingface_hub

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