aciidix commited on
Commit
7efb6e1
·
verified ·
1 Parent(s): e17c2f8

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: Kortix/FastApply-1.5B-v1.0
3
+ language:
4
+ - en
5
+ license: apache-2.0
6
+ tags:
7
+ - text-generation-inference
8
+ - transformers
9
+ - unsloth
10
+ - qwen2
11
+ - trl
12
+ - sft
13
+ - fast-apply
14
+ - instant-apply
15
+ - mlx
16
+ - mlx-my-repo
17
+ ---
18
+
19
+ # aciidix/FastApply-1.5B-v1.0-mlx-4Bit
20
+
21
+ The Model [aciidix/FastApply-1.5B-v1.0-mlx-4Bit](https://huggingface.co/aciidix/FastApply-1.5B-v1.0-mlx-4Bit) was converted to MLX format from [Kortix/FastApply-1.5B-v1.0](https://huggingface.co/Kortix/FastApply-1.5B-v1.0) using mlx-lm version **0.29.1**.
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("aciidix/FastApply-1.5B-v1.0-mlx-4Bit")
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
+ ```