Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Sailor-7B.Q2_K.gguf | Q2_K | 2.89GB |
| Sailor-7B.IQ3_XS.gguf | IQ3_XS | 3.18GB |
| Sailor-7B.IQ3_S.gguf | IQ3_S | 3.32GB |
| Sailor-7B.Q3_K_S.gguf | Q3_K_S | 3.32GB |
| Sailor-7B.IQ3_M.gguf | IQ3_M | 3.48GB |
| Sailor-7B.Q3_K.gguf | Q3_K | 3.65GB |
| Sailor-7B.Q3_K_M.gguf | Q3_K_M | 3.65GB |
| Sailor-7B.Q3_K_L.gguf | Q3_K_L | 3.93GB |
| Sailor-7B.IQ4_XS.gguf | IQ4_XS | 4.02GB |
| Sailor-7B.Q4_0.gguf | Q4_0 | 4.2GB |
| Sailor-7B.IQ4_NL.gguf | IQ4_NL | 4.22GB |
| Sailor-7B.Q4_K_S.gguf | Q4_K_S | 4.23GB |
| Sailor-7B.Q4_K.gguf | Q4_K | 4.44GB |
| Sailor-7B.Q4_K_M.gguf | Q4_K_M | 4.44GB |
| Sailor-7B.Q4_1.gguf | Q4_1 | 4.62GB |
| Sailor-7B.Q5_0.gguf | Q5_0 | 5.03GB |
| Sailor-7B.Q5_K_S.gguf | Q5_K_S | 5.03GB |
| Sailor-7B.Q5_K.gguf | Q5_K | 5.15GB |
| Sailor-7B.Q5_K_M.gguf | Q5_K_M | 5.15GB |
| Sailor-7B.Q5_1.gguf | Q5_1 | 5.44GB |
| Sailor-7B.Q6_K.gguf | Q6_K | 5.91GB |
| Sailor-7B.Q8_0.gguf | Q8_0 | 7.65GB |

The logo was generated by MidJourney
transformers>=4.37.0.1from transformers import AutoModelForCausalLM, AutoTokenizer
2device = "cuda" # the device to load the model
3
4model = AutoModelForCausalLM.from_pretrained("sail/Sailor-7B", device_map="auto")
5tokenizer = AutoTokenizer.from_pretrained("sail/Sailor-7B")
6
7input_message = "Model bahasa adalah model probabilistik"
8### The given Indonesian input translates to 'A language model is a probabilistic model of.'
9
10model_inputs = tokenizer([input_message], return_tensors="pt").to(device)
11
12generated_ids = model.generate(
13 model_inputs.input_ids,
14 max_new_tokens=64
15)
16
17generated_ids = [
18 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
19]
20
21response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
22print(response)@article{dou2024sailor,
title={Sailor: Open Language Models for South-East Asia},
author={Dou, Longxu and Liu, Qian and Zeng, Guangtao and Guo, Jia and Zhou, Jiahui and Lu, Wei and Lin, Min},
journal={arXiv preprint arXiv:2404.03608},
year={2024}
}