LLMCurious commited on
Commit
82d75d5
·
verified ·
1 Parent(s): e494db7

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: apache-2.0
3
+ datasets:
4
+ - cerebras/SlimPajama-627B
5
+ - bigcode/starcoderdata
6
+ - HuggingFaceH4/ultrachat_200k
7
+ - HuggingFaceH4/ultrafeedback_binarized
8
+ language:
9
+ - en
10
+ widget:
11
+ - example_title: Fibonacci (Python)
12
+ messages:
13
+ - role: system
14
+ content: You are a chatbot who can help code!
15
+ - role: user
16
+ content: Write me a function to calculate the first 10 digits of the fibonacci
17
+ sequence in Python and print it out to the CLI.
18
+ tags:
19
+ - mlx
20
+ base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
21
+ ---
22
+
23
+ # LLMCurious/TinyLlama-1.1B-Chat-v1.0-mlx-8Bit
24
+
25
+ The Model [LLMCurious/TinyLlama-1.1B-Chat-v1.0-mlx-8Bit](https://huggingface.co/LLMCurious/TinyLlama-1.1B-Chat-v1.0-mlx-8Bit) was converted to MLX format from [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) 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("LLMCurious/TinyLlama-1.1B-Chat-v1.0-mlx-8Bit")
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
+ ```