SnowFlash383935 commited on
Commit
2e12cc7
·
verified ·
1 Parent(s): e0ea2f0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: transformers
4
+ pipeline_tag: image-text-to-text
5
+ extra_gated_heading: Access Gemma on Hugging Face
6
+ extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
7
+ agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
8
+ Face and click below. Requests are processed immediately.
9
+ extra_gated_button_content: Acknowledge license
10
+ base_model: huihui-ai/gemma-3-4b-it-abliterated
11
+ tags:
12
+ - abliterated
13
+ - uncensored
14
+ - mlx
15
+ - mlx-my-repo
16
+ ---
17
+
18
+ # SnowFlash383935/gemma-3-4b-it-abliterated-mlx-8Bit
19
+
20
+ The Model [SnowFlash383935/gemma-3-4b-it-abliterated-mlx-8Bit](https://huggingface.co/SnowFlash383935/gemma-3-4b-it-abliterated-mlx-8Bit) was converted to MLX format from [huihui-ai/gemma-3-4b-it-abliterated](https://huggingface.co/huihui-ai/gemma-3-4b-it-abliterated) using mlx-lm version **0.22.3**.
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("SnowFlash383935/gemma-3-4b-it-abliterated-mlx-8Bit")
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
+ ```