Text Generation
Transformers
Safetensors
MLX
English
qwen2
conversational
text-generation-inference
6-bit
janboe91 commited on
Commit
4acf972
·
verified ·
1 Parent(s): 04e1ff5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: transformers
4
+ datasets:
5
+ - PrimeIntellect/verifiable-coding-problems
6
+ - likaixin/TACO-verified
7
+ - livecodebench/code_generation_lite
8
+ language:
9
+ - en
10
+ base_model: agentica-org/DeepCoder-1.5B-Preview
11
+ pipeline_tag: text-generation
12
+ tags:
13
+ - mlx
14
+ ---
15
+
16
+ # janboe91/DeepCoder-1.5B-Preview-mlx-6Bit
17
+
18
+ The Model [janboe91/DeepCoder-1.5B-Preview-mlx-6Bit](https://huggingface.co/janboe91/DeepCoder-1.5B-Preview-mlx-6Bit) was converted to MLX format from [agentica-org/DeepCoder-1.5B-Preview](https://huggingface.co/agentica-org/DeepCoder-1.5B-Preview) using mlx-lm version **0.22.1**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("janboe91/DeepCoder-1.5B-Preview-mlx-6Bit")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```