Cozmicalz commited on
Commit
a271bf8
·
verified ·
1 Parent(s): 9826e97

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - fr
6
+ - de
7
+ - it
8
+ - pt
9
+ - zh
10
+ base_model: Hamzah-Asadullah/GenericRPV2-7B
11
+ pipeline_tag: text2text-generation
12
+ library_name: transformers
13
+ tags:
14
+ - merge
15
+ - mergekit
16
+ - rp
17
+ - roleplay
18
+ - roleplaying
19
+ - knowledge-dense
20
+ - code
21
+ - mlx
22
+ - mlx-my-repo
23
+ ---
24
+
25
+ # Cozmicalz/GenericRPV2-7B-mlx-4Bit
26
+
27
+ The Model [Cozmicalz/GenericRPV2-7B-mlx-4Bit](https://huggingface.co/Cozmicalz/GenericRPV2-7B-mlx-4Bit) was converted to MLX format from [Hamzah-Asadullah/GenericRPV2-7B](https://huggingface.co/Hamzah-Asadullah/GenericRPV2-7B) using mlx-lm version **0.22.3**.
28
+
29
+ ## Use with mlx
30
+
31
+ ```bash
32
+ pip install mlx-lm
33
+ ```
34
+
35
+ ```python
36
+ from mlx_lm import load, generate
37
+
38
+ model, tokenizer = load("Cozmicalz/GenericRPV2-7B-mlx-4Bit")
39
+
40
+ prompt="hello"
41
+
42
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
43
+ messages = [{"role": "user", "content": prompt}]
44
+ prompt = tokenizer.apply_chat_template(
45
+ messages, tokenize=False, add_generation_prompt=True
46
+ )
47
+
48
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
49
+ ```