edwko commited on
Commit
1f7d160
·
verified ·
1 Parent(s): 6594a23

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +102 -3
README.md CHANGED
@@ -1,3 +1,102 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ # Lite-Oute-1-300M
5
+
6
+ Lite-Oute-1-300M (Base) is a Lite series model based on the Mistral architecture, comprising approximately 300 million parameters. <br>
7
+ This model is specifically designed as a starting point for fine-tuning on various tasks. With its 300 million parameters, it offers a balance between compact size and capability, making it suitable for a wide range of fine-tuning applications.<br>
8
+ The model was trained on 30 billion tokens with a context length of 4096, providing a solid foundation for task-specific adaptations.
9
+
10
+ ## Available versions:
11
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-300M-Instruct">Lite-Oute-1-300M-Instruct</a> <br>
12
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-300M-Instruct-GGUF">Lite-Oute-1-300M-Instruct-GGUF</a> <br>
13
+ <a href="hhttps://huggingface.co/OuteAI/Lite-Oute-1-300M-v2-Instruct">Lite-Oute-1-300M</a> <br>
14
+ <a href="https://huggingface.co/OuteAI/Lite-Oute-1-300M-v2-Instruct-GGUF">Lite-Oute-1-300M-GGUF</a> <br>
15
+
16
+ ## Benchmarks:
17
+ <table style="text-align: left;">
18
+ <tr>
19
+ <th>Benchmark</th>
20
+ <th>5-shot (acc)</th>
21
+ <th>0-shot (acc)</th>
22
+ </tr>
23
+ <tr>
24
+ <td>ARC Challenge</td>
25
+ <td>26.62</td>
26
+ <td>26.28</td>
27
+ </tr>
28
+ <tr>
29
+ <td>ARC Easy</td>
30
+ <td>51.39</td>
31
+ <td>48.11</td>
32
+ </tr>
33
+ <tr>
34
+ <td>CommonsenseQA</td>
35
+ <td>19.49</td>
36
+ <td>20.64</td>
37
+ </tr>
38
+ <tr>
39
+ <td>HellaSWAG</td>
40
+ <td>34.86</td>
41
+ <td>34.85</td>
42
+ </tr>
43
+ <tr>
44
+ <td>MMLU</td>
45
+ <td>27.23</td>
46
+ <td>24.87</td>
47
+ </tr>
48
+ <tr>
49
+ <td>OpenBookQA</td>
50
+ <td>30.20</td>
51
+ <td>30.80</td>
52
+ </tr>
53
+ <tr>
54
+ <td>PIQA</td>
55
+ <td>65.07</td>
56
+ <td>65.02</td>
57
+ </tr>
58
+ <tr>
59
+ <td>Winogrande</td>
60
+ <td>51.14</td>
61
+ <td>53.35</td>
62
+ </tr>
63
+ </table>
64
+
65
+ ## Usage with HuggingFace transformers
66
+ The model can be used with HuggingFace's `transformers` library:
67
+ ```python
68
+ import torch
69
+ from transformers import AutoModelForCausalLM, AutoTokenizer
70
+
71
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
72
+
73
+ model = AutoModelForCausalLM.from_pretrained("https://huggingface.co/OuteAI/Lite-Oute-1-300M").to(device)
74
+ tokenizer = AutoTokenizer.from_pretrained("https://huggingface.co/OuteAI/Lite-Oute-1-300M")
75
+
76
+ def generate_response(message: str, temperature: float = 0.4, repetition_penalty: float = 1.12) -> str:
77
+ # Convert message to PyTorch tensors
78
+ input_ids = tokenizer.encode(
79
+ message, return_tensors="pt"
80
+ ).to(device)
81
+
82
+ # Generate the response
83
+ output = model.generate(
84
+ input_ids,
85
+ max_length=256,
86
+ temperature=temperature,
87
+ repetition_penalty=repetition_penalty,
88
+ do_sample=True
89
+ )
90
+
91
+ # Decode the generated output
92
+ generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
93
+ return generated_text
94
+
95
+ message = "Scientists have made a breakthrough in renewable energy by developing a new type of"
96
+ response = generate_response(message)
97
+ print(response)
98
+ ```
99
+
100
+ ## Risk Disclaimer
101
+
102
+ 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.