CuckmeisterFuller commited on
Commit
4bcbebf
·
verified ·
1 Parent(s): df64a8b

Upload README.md with huggingface_hub

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