Text Generation
MLX
Safetensors
English
qwen2
mlx-my-repo
conversational
4-bit precision
introvoyz041 commited on
Commit
bf11612
·
verified ·
1 Parent(s): bd7b640

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: mit
3
+ library_name: mlx
4
+ datasets:
5
+ - PrimeIntellect/verifiable-coding-problems
6
+ - likaixin/TACO-verified
7
+ - livecodebench/code_generation_lite
8
+ language:
9
+ - en
10
+ base_model: gingofthesouth/DeepCoder-1.5B-MLX
11
+ pipeline_tag: text-generation
12
+ tags:
13
+ - mlx
14
+ - mlx
15
+ - mlx-my-repo
16
+ ---
17
+
18
+ # introvoyz041/DeepCoder-1.5B-MLX-mlx-4Bit
19
+
20
+ The Model [introvoyz041/DeepCoder-1.5B-MLX-mlx-4Bit](https://huggingface.co/introvoyz041/DeepCoder-1.5B-MLX-mlx-4Bit) was converted to MLX format from [gingofthesouth/DeepCoder-1.5B-MLX](https://huggingface.co/gingofthesouth/DeepCoder-1.5B-MLX) using mlx-lm version **0.28.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("introvoyz041/DeepCoder-1.5B-MLX-mlx-4Bit")
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
+ ```