ggbetz commited on
Commit
eb29ff8
·
verified ·
1 Parent(s): 21a5c46

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: llama3.1
3
+ datasets:
4
+ - DebateLabKIT/deepa2-conversations
5
+ - DebateLabKIT/deep-argmap-conversations
6
+ - allenai/tulu-3-sft-mixture
7
+ base_model: DebateLabKIT/Llama-3.1-Argunaut-1-8B-SFT
8
+ pipeline_tag: text-generation
9
+ library_name: transformers
10
+ tags:
11
+ - logic
12
+ - argumentation
13
+ - critical-thinking
14
+ - argument-mapping
15
+ - trl
16
+ - sft
17
+ - mlx
18
+ - mlx-my-repo
19
+ ---
20
+
21
+ # ggbetz/Llama-3.1-Argunaut-1-8B-SFT-Q4-mlx
22
+
23
+ The Model [ggbetz/Llama-3.1-Argunaut-1-8B-SFT-Q4-mlx](https://huggingface.co/ggbetz/Llama-3.1-Argunaut-1-8B-SFT-Q4-mlx) was converted to MLX format from [DebateLabKIT/Llama-3.1-Argunaut-1-8B-SFT](https://huggingface.co/DebateLabKIT/Llama-3.1-Argunaut-1-8B-SFT) using mlx-lm version **0.20.5**.
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("ggbetz/Llama-3.1-Argunaut-1-8B-SFT-Q4-mlx")
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
+ ```