Goekdeniz-Guelmez commited on
Commit
bfe6746
·
verified ·
1 Parent(s): d46417a

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - falcon3
6
+ - falcon3_mamba
7
+ - falcon_mamba
8
+ - mlx
9
+ base_model: tiiuae/Falcon3-Mamba-7B-Instruct
10
+ license: other
11
+ license_name: falcon-llm-license
12
+ license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
13
+ library_name: transformers
14
+ ---
15
+
16
+ # mlx-community/Falcon3-Mamba-7B-Instruct-4bits
17
+
18
+ The Model [mlx-community/Falcon3-Mamba-7B-Instruct-4bits](https://huggingface.co/mlx-community/Falcon3-Mamba-7B-Instruct-4bits) was
19
+ converted to MLX format from [tiiuae/Falcon3-Mamba-7B-Instruct](https://huggingface.co/tiiuae/Falcon3-Mamba-7B-Instruct)
20
+ using mlx-lm version **0.20.2**.
21
+
22
+ ## Use with mlx
23
+
24
+ ```bash
25
+ pip install mlx-lm
26
+ ```
27
+
28
+ ```python
29
+ from mlx_lm import load, generate
30
+
31
+ model, tokenizer = load("mlx-community/Falcon3-Mamba-7B-Instruct-4bits")
32
+
33
+ prompt="hello"
34
+
35
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
36
+ messages = [{"role": "user", "content": prompt}]
37
+ prompt = tokenizer.apply_chat_template(
38
+ messages, tokenize=False, add_generation_prompt=True
39
+ )
40
+
41
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
42
+ ```