Disya commited on
Commit
d2dc185
·
verified ·
1 Parent(s): 5f14d60

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
+ pipeline_tag: text-generation
3
+ library_name: transformers
4
+ language:
5
+ - en
6
+ thumbnail: '"https://cdn-uploads.huggingface.co/production/uploads/62f93f9477b722f1866398c2/69escIKmO-vEzFUj_m0WX.png"'
7
+ tags:
8
+ - text-generation
9
+ - uncensored
10
+ - direct-answer
11
+ - information-retrieval
12
+ - general-knowledge
13
+ - unfiltered
14
+ - amoral-ai
15
+ - mlx
16
+ - mlx-my-repo
17
+ base_model: soob3123/GrayLine-Gemma3-4B
18
+ datasets:
19
+ - soob3123/GrayLine-QA
20
+ license: apache-2.0
21
+ ---
22
+
23
+ # Disya/GrayLine-Gemma3-4B-mlx-4Bit
24
+
25
+ The Model [Disya/GrayLine-Gemma3-4B-mlx-4Bit](https://huggingface.co/Disya/GrayLine-Gemma3-4B-mlx-4Bit) was converted to MLX format from [soob3123/GrayLine-Gemma3-4B](https://huggingface.co/soob3123/GrayLine-Gemma3-4B) using mlx-lm version **0.28.3**.
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("Disya/GrayLine-Gemma3-4B-mlx-4Bit")
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
+ ```