aashish1904 commited on
Commit
0213ad3
·
verified ·
1 Parent(s): fd8a72b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +124 -0
README.md ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: apache-2.0
5
+
6
+ ---
7
+
8
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
9
+
10
+ # QuantFactory/Lite-Oute-1-65M-Instruct-GGUF
11
+ This is quantized version of [OuteAI/Lite-Oute-1-65M-Instruct](https://huggingface.co/OuteAI/Lite-Oute-1-65M-Instruct) created using llama.cpp
12
+
13
+ # Original Model Card
14
+
15
+ # Lite-Oute-1-65M-Instruct
16
+
17
+ Lite-Oute-1-65M-Instruct is an experimental ultra-compact model in the Lite series, based on the LLaMA architecture and comprising approximately 65 million parameters. <br>
18
+ The primary goal of this model was to explore the lower limits of model size while still maintaining basic language understanding capabilities. <br>
19
+ Due to its extremely small size, this model demonstrates basic text generation abilities but may struggle with instructions or maintaining topic coherence. <br>
20
+ Users should be aware of its significant limitations compared to larger models and expect inconsistent or potentially inaccurate responses.
21
+
22
+ ## Available versions:
23
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-65M-Instruct">Lite-Oute-1-65M-Instruct</a> <br>
24
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-65M-Instruct-GGUF">Lite-Oute-1-65M-Instruct-GGUF</a> <br>
25
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-65M">Lite-Oute-1-65M</a> <br>
26
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-65M-GGUF">Lite-Oute-1-65M-GGUF</a> <br>
27
+
28
+ ## Chat format
29
+ > [!IMPORTANT]
30
+ > This model uses **ChatML** template. Ensure you use the correct template:
31
+
32
+ ```
33
+ <|im_start|>system
34
+ [System message]<|im_end|>
35
+ <|im_start|>user
36
+ [Your question or message]<|im_end|>
37
+ <|im_start|>assistant
38
+ [The model's response]<|im_end|>
39
+ ```
40
+
41
+ <table style="text-align: left;">
42
+ <tr>
43
+ <th>Benchmark</th>
44
+ <th>5-shot</th>
45
+ <th>0-shot</th>
46
+ </tr>
47
+ <tr>
48
+ <td>ARC Challenge</td>
49
+ <td>22.61</td>
50
+ <td>23.63</td>
51
+ </tr>
52
+ <tr>
53
+ <td>ARC Easy</td>
54
+ <td>37.16</td>
55
+ <td>40.49</td>
56
+ </tr>
57
+ <tr>
58
+ <td>CommonsenseQA</td>
59
+ <td>19.41</td>
60
+ <td>20.64</td>
61
+ </tr>
62
+ <tr>
63
+ <td>HellaSWAG</td>
64
+ <td>28.74</td>
65
+ <td>28.41</td>
66
+ </tr>
67
+ <tr>
68
+ <td>MMLU</td>
69
+ <td>25.20</td>
70
+ <td>23.45</td>
71
+ </tr>
72
+ <tr>
73
+ <td>OpenBookQA</td>
74
+ <td>27.40</td>
75
+ <td>28.60</td>
76
+ </tr>
77
+ <tr>
78
+ <td>PIQA</td>
79
+ <td>60.88</td>
80
+ <td>60.77</td>
81
+ </tr>
82
+ <tr>
83
+ <td>Winogrande</td>
84
+ <td>50.59</td>
85
+ <td>50.04</td>
86
+ </tr>
87
+ </table>
88
+
89
+ ## Usage with HuggingFace transformers
90
+ The model can be used with HuggingFace's `transformers` library:
91
+ ```python
92
+ import torch
93
+ from transformers import AutoModelForCausalLM, AutoTokenizer
94
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
95
+ model = AutoModelForCausalLM.from_pretrained("OuteAI/Lite-Oute-1-65M-Instruct").to(device)
96
+ tokenizer = AutoTokenizer.from_pretrained("OuteAI/Lite-Oute-1-65M-Instruct")
97
+ def generate_response(message: str, temperature: float = 0.4, repetition_penalty: float = 1.12) -> str:
98
+ # Apply the chat template and convert to PyTorch tensors
99
+ messages = [
100
+ {"role": "system", "content": "You are a helpful assistant."},
101
+ {"role": "user", "content": message}
102
+ ]
103
+ input_ids = tokenizer.apply_chat_template(
104
+ messages, add_generation_prompt=True, return_tensors="pt"
105
+ ).to(device)
106
+ # Generate the response
107
+ output = model.generate(
108
+ input_ids,
109
+ max_length=512,
110
+ temperature=temperature,
111
+ repetition_penalty=repetition_penalty,
112
+ do_sample=True
113
+ )
114
+ # Decode the generated output
115
+ generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
116
+ return generated_text
117
+ message = "I'd like to learn about language models. Can you break down the concept for me?"
118
+ response = generate_response(message)
119
+ print(response)
120
+ ```
121
+
122
+ ## Risk Disclaimer
123
+
124
+ By using this model, you acknowledge that you understand and assume the risks associated with its use. You are solely responsible for ensuring compliance with all applicable laws and regulations. We disclaim any liability for problems arising from the use of this open-source model, including but not limited to direct, indirect, incidental, consequential, or punitive damages. We make no warranties, express or implied, regarding the model's performance, accuracy, or fitness for a particular purpose. Your use of this model is at your own risk, and you agree to hold harmless and indemnify us, our affiliates, and our contributors from any claims, damages, or expenses arising from your use of the model.