cnfusion commited on
Commit
175d02c
·
verified ·
1 Parent(s): 6700626

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Tesslate/UIGEN-T2-7B
3
+ tags:
4
+ - text-generation-inference
5
+ - transformers
6
+ - qwen2
7
+ - ui-generation
8
+ - peft
9
+ - lora
10
+ - tailwind-css
11
+ - html
12
+ - mlx
13
+ - mlx-my-repo
14
+ license: apache-2.0
15
+ language:
16
+ - en
17
+ ---
18
+
19
+ # cnfusion/UIGEN-T2-7B-mlx-8Bit
20
+
21
+ The Model [cnfusion/UIGEN-T2-7B-mlx-8Bit](https://huggingface.co/cnfusion/UIGEN-T2-7B-mlx-8Bit) was converted to MLX format from [Tesslate/UIGEN-T2-7B](https://huggingface.co/Tesslate/UIGEN-T2-7B) using mlx-lm version **0.22.3**.
22
+
23
+ ## Use with mlx
24
+
25
+ ```bash
26
+ pip install mlx-lm
27
+ ```
28
+
29
+ ```python
30
+ from mlx_lm import load, generate
31
+
32
+ model, tokenizer = load("cnfusion/UIGEN-T2-7B-mlx-8Bit")
33
+
34
+ prompt="hello"
35
+
36
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
37
+ messages = [{"role": "user", "content": prompt}]
38
+ prompt = tokenizer.apply_chat_template(
39
+ messages, tokenize=False, add_generation_prompt=True
40
+ )
41
+
42
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
43
+ ```