AIronMind commited on
Commit
e474348
1 Parent(s): 8744835

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +188 -0
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - id
6
+ - th
7
+ - vi
8
+ - ms
9
+ - lo
10
+ datasets:
11
+ - cerebras/SlimPajama-627B
12
+ - Skywork/SkyPile-150B
13
+ - allenai/MADLAD-400
14
+ - cc100
15
+ tags:
16
+ - multilingual
17
+ - sea
18
+ - sailor
19
+ - llama-cpp
20
+ - gguf-my-repo
21
+ license: apache-2.0
22
+ base_model: sail/Sailor-1.8B
23
+ inference: false
24
+ model-index:
25
+ - name: Sailor-1.8B
26
+ results:
27
+ - task:
28
+ type: text-generation
29
+ dataset:
30
+ name: XQuAD-Thai
31
+ type: XQuAD-Thai
32
+ metrics:
33
+ - type: EM (3-Shot)
34
+ value: 32.72
35
+ name: EM (3-Shot)
36
+ - type: F1 (3-Shot)
37
+ value: 48.66
38
+ name: F1 (3-Shot)
39
+ - task:
40
+ type: text-generation
41
+ dataset:
42
+ name: TyDiQA-Indonesian
43
+ type: TyDiQA-Indonesian
44
+ metrics:
45
+ - type: EM (3-Shot)
46
+ value: 40.88
47
+ name: EM (3-Shot)
48
+ - type: F1 (3-Shot)
49
+ value: 65.37
50
+ name: F1 (3-Shot)
51
+ - task:
52
+ type: text-generation
53
+ dataset:
54
+ name: XQuAD-Vietnamese
55
+ type: XQuAD-Vietnamese
56
+ metrics:
57
+ - type: EM (3-Shot)
58
+ value: 34.22
59
+ name: EM (3-Shot)
60
+ - type: F1 (3-Shot)
61
+ value: 53.35
62
+ name: F1 (3-Shot)
63
+ - task:
64
+ type: text-generation
65
+ dataset:
66
+ name: XCOPA-Thai
67
+ type: XCOPA-Thai
68
+ metrics:
69
+ - type: EM (3-Shot)
70
+ value: 53.8
71
+ name: EM (3-Shot)
72
+ - task:
73
+ type: text-generation
74
+ dataset:
75
+ name: XCOPA-Indonesian
76
+ type: XCOPA-Indonesian
77
+ metrics:
78
+ - type: EM (3-Shot)
79
+ value: 64.2
80
+ name: EM (3-Shot)
81
+ - task:
82
+ type: text-generation
83
+ dataset:
84
+ name: XCOPA-Vietnamese
85
+ type: XCOPA-Vietnamese
86
+ metrics:
87
+ - type: EM (3-Shot)
88
+ value: 63.2
89
+ name: EM (3-Shot)
90
+ - task:
91
+ type: text-generation
92
+ dataset:
93
+ name: M3Exam-Thai
94
+ type: M3Exam-Thai
95
+ metrics:
96
+ - type: EM (3-Shot)
97
+ value: 25.38
98
+ name: EM (3-Shot)
99
+ - task:
100
+ type: text-generation
101
+ dataset:
102
+ name: M3Exam-Indonesian
103
+ type: M3Exam-Indonesian
104
+ metrics:
105
+ - type: EM (3-Shot)
106
+ value: 28.3
107
+ name: EM (3-Shot)
108
+ - task:
109
+ type: text-generation
110
+ dataset:
111
+ name: M3Exam-Vietnamese
112
+ type: M3Exam-Vietnamese
113
+ metrics:
114
+ - type: EM (3-Shot)
115
+ value: 34.71
116
+ name: EM (3-Shot)
117
+ - task:
118
+ type: text-generation
119
+ dataset:
120
+ name: BELEBELE-Thai
121
+ type: BELEBELE-Thai
122
+ metrics:
123
+ - type: EM (3-Shot)
124
+ value: 34.22
125
+ name: EM (3-Shot)
126
+ - task:
127
+ type: text-generation
128
+ dataset:
129
+ name: BELEBELE-Indonesian
130
+ type: BELEBELE-Indonesian
131
+ metrics:
132
+ - type: EM (3-Shot)
133
+ value: 34.89
134
+ name: EM (3-Shot)
135
+ - task:
136
+ type: text-generation
137
+ dataset:
138
+ name: BELEBELE-Vietnamese
139
+ type: BELEBELE-Vietnamese
140
+ metrics:
141
+ - type: EM (3-Shot)
142
+ value: 35.33
143
+ name: EM (3-Shot)
144
+ ---
145
+
146
+ # AIronMind/Sailor-1.8B-Q4_K_M-GGUF
147
+ This model was converted to GGUF format from [`sail/Sailor-1.8B`](https://huggingface.co/sail/Sailor-1.8B) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
148
+ Refer to the [original model card](https://huggingface.co/sail/Sailor-1.8B) for more details on the model.
149
+
150
+ ## Use with llama.cpp
151
+ Install llama.cpp through brew (works on Mac and Linux)
152
+
153
+ ```bash
154
+ brew install llama.cpp
155
+
156
+ ```
157
+ Invoke the llama.cpp server or the CLI.
158
+
159
+ ### CLI:
160
+ ```bash
161
+ llama-cli --hf-repo AIronMind/Sailor-1.8B-Q4_K_M-GGUF --hf-file sailor-1.8b-q4_k_m.gguf -p "The meaning to life and the universe is"
162
+ ```
163
+
164
+ ### Server:
165
+ ```bash
166
+ llama-server --hf-repo AIronMind/Sailor-1.8B-Q4_K_M-GGUF --hf-file sailor-1.8b-q4_k_m.gguf -c 2048
167
+ ```
168
+
169
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
170
+
171
+ Step 1: Clone llama.cpp from GitHub.
172
+ ```
173
+ git clone https://github.com/ggerganov/llama.cpp
174
+ ```
175
+
176
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
177
+ ```
178
+ cd llama.cpp && LLAMA_CURL=1 make
179
+ ```
180
+
181
+ Step 3: Run inference through the main binary.
182
+ ```
183
+ ./llama-cli --hf-repo AIronMind/Sailor-1.8B-Q4_K_M-GGUF --hf-file sailor-1.8b-q4_k_m.gguf -p "The meaning to life and the universe is"
184
+ ```
185
+ or
186
+ ```
187
+ ./llama-server --hf-repo AIronMind/Sailor-1.8B-Q4_K_M-GGUF --hf-file sailor-1.8b-q4_k_m.gguf -c 2048
188
+ ```