mxmcc commited on
Commit
a14d71c
·
verified ·
1 Parent(s): eed6b46

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ datasets:
4
+ - Salesforce/APIGen-MT-5k
5
+ - Salesforce/xlam-function-calling-60k
6
+ language:
7
+ - en
8
+ pipeline_tag: text-generation
9
+ tags:
10
+ - function-calling
11
+ - LLM Agent
12
+ - tool-use
13
+ - llama
14
+ - qwen
15
+ - pytorch
16
+ - LLaMA-factory
17
+ - mlx
18
+ - mlx-my-repo
19
+ library_name: transformers
20
+ base_model: Salesforce/xLAM-2-32b-fc-r
21
+ ---
22
+
23
+ # mxmcc/xLAM-2-32b-fc-r-mlx-6Bit
24
+
25
+ The Model [mxmcc/xLAM-2-32b-fc-r-mlx-6Bit](https://huggingface.co/mxmcc/xLAM-2-32b-fc-r-mlx-6Bit) was converted to MLX format from [Salesforce/xLAM-2-32b-fc-r](https://huggingface.co/Salesforce/xLAM-2-32b-fc-r) using mlx-lm version **0.22.3**.
26
+
27
+ ## Use with mlx
28
+
29
+ ```bash
30
+ pip install mlx-lm
31
+ ```
32
+
33
+ ```python
34
+ from mlx_lm import load, generate
35
+
36
+ model, tokenizer = load("mxmcc/xLAM-2-32b-fc-r-mlx-6Bit")
37
+
38
+ prompt="hello"
39
+
40
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
41
+ messages = [{"role": "user", "content": prompt}]
42
+ prompt = tokenizer.apply_chat_template(
43
+ messages, tokenize=False, add_generation_prompt=True
44
+ )
45
+
46
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
47
+ ```