Bronsn commited on
Commit
36da773
·
verified ·
1 Parent(s): 57b7799

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: CraneAILabs/swahili-gemma-1b
3
+ language:
4
+ - en
5
+ - sw
6
+ library_name: transformers
7
+ license: gemma
8
+ tags:
9
+ - swahili
10
+ - translation
11
+ - conversational
12
+ - gemma
13
+ - gemma3
14
+ - fine-tuned
15
+ - mlx
16
+ - mlx-my-repo
17
+ pipeline_tag: text-generation
18
+ ---
19
+
20
+ # Bronsn/swahili-gemma-1b-mlx-fp16
21
+
22
+ The Model [Bronsn/swahili-gemma-1b-mlx-fp16](https://huggingface.co/Bronsn/swahili-gemma-1b-mlx-fp16) was converted to MLX format from [CraneAILabs/swahili-gemma-1b](https://huggingface.co/CraneAILabs/swahili-gemma-1b) using mlx-lm version **0.26.3**.
23
+
24
+ ## Use with mlx
25
+
26
+ ```bash
27
+ pip install mlx-lm
28
+ ```
29
+
30
+ ```python
31
+ from mlx_lm import load, generate
32
+
33
+ model, tokenizer = load("Bronsn/swahili-gemma-1b-mlx-fp16")
34
+
35
+ prompt="hello"
36
+
37
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
38
+ messages = [{"role": "user", "content": prompt}]
39
+ prompt = tokenizer.apply_chat_template(
40
+ messages, tokenize=False, add_generation_prompt=True
41
+ )
42
+
43
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
44
+ ```