introvoyz041 commited on
Commit
3d1f122
·
verified ·
1 Parent(s): 675c57b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ tags:
4
+ - gemma3
5
+ - gemma
6
+ - google
7
+ - functiongemma
8
+ - mlx
9
+ - mlx
10
+ - mlx-my-repo
11
+ pipeline_tag: text-generation
12
+ library_name: mlx
13
+ extra_gated_heading: Access Gemma on Hugging Face
14
+ extra_gated_prompt: To access FunctionGemma on Hugging Face, you’re required to review
15
+ and agree to Google’s usage license. To do this, please ensure you’re logged in
16
+ to Hugging Face and click below. Requests are processed immediately.
17
+ extra_gated_button_content: Acknowledge license
18
+ base_model: mlx-community/functiongemma-270m-it-bf16
19
+ ---
20
+
21
+ # introvoyz041/functiongemma-270m-it-bf16-mlx-4Bit
22
+
23
+ The Model [introvoyz041/functiongemma-270m-it-bf16-mlx-4Bit](https://huggingface.co/introvoyz041/functiongemma-270m-it-bf16-mlx-4Bit) was converted to MLX format from [mlx-community/functiongemma-270m-it-bf16](https://huggingface.co/mlx-community/functiongemma-270m-it-bf16) using mlx-lm version **0.28.3**.
24
+
25
+ ## Use with mlx
26
+
27
+ ```bash
28
+ pip install mlx-lm
29
+ ```
30
+
31
+ ```python
32
+ from mlx_lm import load, generate
33
+
34
+ model, tokenizer = load("introvoyz041/functiongemma-270m-it-bf16-mlx-4Bit")
35
+
36
+ prompt="hello"
37
+
38
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
39
+ messages = [{"role": "user", "content": prompt}]
40
+ prompt = tokenizer.apply_chat_template(
41
+ messages, tokenize=False, add_generation_prompt=True
42
+ )
43
+
44
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
45
+ ```