lknik commited on
Commit
0b58b4b
·
verified ·
1 Parent(s): e3e8849

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: speakleash/Bielik-11B-v2.3-Instruct
4
+ language:
5
+ - pl
6
+ library_name: transformers
7
+ tags:
8
+ - merge
9
+ - mergekit
10
+ - mlx
11
+ - mlx-my-repo
12
+ inference:
13
+ parameters:
14
+ temperature: 0.2
15
+ widget:
16
+ - messages:
17
+ - role: user
18
+ content: Co przedstawia polskie godło?
19
+ extra_gated_description: If you want to learn more about how you can use the model,
20
+ please refer to our <a href="https://bielik.ai/terms/">Terms of Use</a>.
21
+ ---
22
+
23
+ # lknik/Bielik-11B-v2.3-Instruct-8bit
24
+
25
+ The Model [lknik/Bielik-11B-v2.3-Instruct-8bit](https://huggingface.co/lknik/Bielik-11B-v2.3-Instruct-8bit) was converted to MLX format from [speakleash/Bielik-11B-v2.3-Instruct](https://huggingface.co/speakleash/Bielik-11B-v2.3-Instruct) using mlx-lm version **0.21.5**.
26
+
27
+ ## Use with mlx
28
+
29
+ ```bash
30
+ pip install mlx-lm
31
+ ```
32
+
33
+ ```python
34
+ from mlx_lm import load, generate
35
+
36
+ model, tokenizer = load("lknik/Bielik-11B-v2.3-Instruct-8bit")
37
+
38
+ prompt="hello"
39
+
40
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
41
+ messages = [{"role": "user", "content": prompt}]
42
+ prompt = tokenizer.apply_chat_template(
43
+ messages, tokenize=False, add_generation_prompt=True
44
+ )
45
+
46
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
47
+ ```