📋 Model Description

Quantization made by Richard Erkhov.

Github

Discord

Request more models

Sailor-0.5B-Chat - GGUF

  • Model creator: https://huggingface.co/sail/
  • Original model: https://huggingface.co/sail/Sailor-0.5B-Chat/

NameQuant methodSize
Sailor-0.5B-Chat.Q2K.ggufQ2K0.28GB
Sailor-0.5B-Chat.IQ3XS.ggufIQ3XS0.3GB
Sailor-0.5B-Chat.IQ3S.ggufIQ3S0.31GB
Sailor-0.5B-Chat.Q3KS.ggufQ3K_S0.31GB
Sailor-0.5B-Chat.IQ3M.ggufIQ3M0.32GB
Sailor-0.5B-Chat.Q3K.ggufQ3K0.33GB
Sailor-0.5B-Chat.Q3KM.ggufQ3K_M0.33GB
Sailor-0.5B-Chat.Q3KL.ggufQ3K_L0.34GB
Sailor-0.5B-Chat.IQ4XS.ggufIQ4XS0.36GB
Sailor-0.5B-Chat.Q40.ggufQ400.37GB
Sailor-0.5B-Chat.IQ4NL.ggufIQ4NL0.37GB
Sailor-0.5B-Chat.Q4KS.ggufQ4K_S0.37GB
Sailor-0.5B-Chat.Q4K.ggufQ4K0.38GB
Sailor-0.5B-Chat.Q4KM.ggufQ4K_M0.38GB
Sailor-0.5B-Chat.Q41.ggufQ410.39GB
Sailor-0.5B-Chat.Q50.ggufQ500.42GB
Sailor-0.5B-Chat.Q5KS.ggufQ5K_S0.42GB
Sailor-0.5B-Chat.Q5K.ggufQ5K0.43GB
Sailor-0.5B-Chat.Q5KM.ggufQ5K_M0.43GB
Sailor-0.5B-Chat.Q51.ggufQ510.45GB
Sailor-0.5B-Chat.Q6K.ggufQ6K0.48GB
Sailor-0.5B-Chat.Q80.ggufQ800.62GB

Original model description:



language:
  • en
  • zh
  • id
  • th
  • vi
  • ms
  • lo

datasets:
  • CohereForAI/ayadataset
  • CohereForAI/ayacollection
  • Open-Orca/OpenOrca

tags:
  • multilingual
  • sea
  • sailor
  • sft
  • chat
  • instruction

widget:
  • text: "如何制作烤鱼?"

example_title: "Chinese"
  • text: "How to bake fish?"

example_title: "English"
  • text: "Bagaimana cara memanggang ikan?"

example_title: "Malay"
  • text: "วิธีย่างปลา?"

example_title: "Thai"
  • text: "Bagaimana membuat bakaran ikan?"

example_title: "Indonesian"
  • text: "Làm thế nào để nướng cá?"

example_title: "Vietnamese"

license: apache-2.0
base_model: sail/Sailor-0.5B
inference: false




Sailor is a suite of Open Language Models tailored for South-East Asia (SEA), focusing on languages such as 🇮🇩Indonesian, 🇹🇭Thai, 🇻🇳Vietnamese, 🇲🇾Malay, and 🇱🇦Lao.
Developed with careful data curation, Sailor models are designed to understand and generate text across diverse linguistic landscapes of SEA region.
Built from Qwen 1.5 , Sailor encompasses models of varying sizes, spanning from 0.5B to 7B versions for different requirements.
We further fine-tune the base model with open-source datasets to get instruction-tuned models, namedly Sailor-Chat.
Benchmarking results demonstrate Sailor's proficiency in tasks such as question answering, commonsense reasoning, and other tasks in SEA languages.

The logo was generated by MidJourney

Model Summary

Training details

Sailor is crafted by continually pre-training from language models like the remarkable Qwen 1.5 models, which already has a great performance on SEA languages. The pre-training corpus heavily leverages the publicly available corpus, including SlimPajama, SkyPile, CC100 and MADLAD-400. The instruction tuning corpus are all publicly available including aya_collection, aya_dataset, OpenOrca.

By employing aggressive data deduplication and careful data cleaning on the collected corpus, we have attained a high-quality dataset spanning various languages.
Through systematic experiments to determine the weights of different languages, Sailor models undergo training from 200B to 400B tokens, tailored to different model sizes.
The approach boosts their performance on SEA languages while maintaining proficiency in English and Chinese without significant compromise.
Finally, we continually pre-train the Qwen1.5-0.5B model with 400 Billion tokens, and other models with 200 Billion tokens to obtain the Sailor models.

Requirements

The code of Sailor has been in the latest Hugging face transformers and we advise you to install transformers>=4.37.0.

Quickstart

Here provides a code snippet to show you how to load the tokenizer and model and how to generate contents.

from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"

model = AutoModelForCausalLM.from_pretrained(
'sail/Sailor-0.5B-Chat',
torch_dtype="auto",
device_map="auto"
)

tokenizer = AutoTokenizer.from_pretrained('sail/Sailor-0.5B-Chat')
system_prompt= 'You are a helpful assistant'

prompt = "Beri saya pengenalan singkat tentang model bahasa besar."

prompt = "Hãy cho tôi một giới thiệu ngắn gọn về mô hình ngôn ngữ lớn."


prompt = "ให้ฉันแนะนำสั้น ๆ เกี่ยวกับโมเดลภาษาขนาดใหญ่"

messages = [
{"role": "system", "content": system_prompt},
{"role": "question", "content": prompt}
]
text = tokenizer.applychattemplate(
messages,
tokenize=False,
addgenerationprompt=True
)

modelinputs = tokenizer([text], returntensors="pt").to(device)
inputids = modelinputs.input_ids.to(device)

generated_ids = model.generate(
input_ids,
maxnewtokens=512,
)

generated_ids = [
outputids[len(inputids):] for inputids, outputids in zip(modelinputs.inputids, generated_ids)
]
response = tokenizer.batchdecode(generatedids, skipspecialtokens=True)[0]
print(response)

License

Sailor is distributed under the terms of the Apache License 2.0.
No restrict on the research and the commercial use, but should comply with the Qwen License.

Citation

If you find sailor useful, please cite our work as follows:

@misc{dou2024sailor,
      title={Sailor: Open Language Models for South-East Asia}, 
      author={Longxu Dou and Qian Liu and Guangtao Zeng and Jia Guo and Jiahui Zhou and Wei Lu and Min Lin},
      year={2024},
      eprint={2404.03608},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contact Us

If you have any questions, please raise an issue or contact us at [email protected] or [email protected].

📂 GGUF File List

📁 Filename 📦 Size ⚡ Download
Sailor-0.5B-Chat.IQ3_M.gguf
LFS Q3
325.41 MB Download
Sailor-0.5B-Chat.IQ3_S.gguf
LFS Q3
317.94 MB Download
Sailor-0.5B-Chat.IQ3_XS.gguf
LFS Q3
311.05 MB Download
Sailor-0.5B-Chat.IQ4_NL.gguf
LFS Q4
377.72 MB Download
Sailor-0.5B-Chat.IQ4_XS.gguf
LFS Q4
364.16 MB Download
Sailor-0.5B-Chat.Q2_K.gguf
LFS Q2
284.59 MB Download
Sailor-0.5B-Chat.Q3_K.gguf
LFS Q3
333.67 MB Download
Sailor-0.5B-Chat.Q3_K_L.gguf
LFS Q3
347.33 MB Download
Sailor-0.5B-Chat.Q3_K_M.gguf
LFS Q3
333.67 MB Download
Sailor-0.5B-Chat.Q3_K_S.gguf
LFS Q3
317.94 MB Download
Sailor-0.5B-Chat.Q4_0.gguf
Recommended LFS Q4
376.69 MB Download
Sailor-0.5B-Chat.Q4_1.gguf
LFS Q4
404.34 MB Download
Sailor-0.5B-Chat.Q4_K.gguf
LFS Q4
388.29 MB Download
Sailor-0.5B-Chat.Q4_K_M.gguf
LFS Q4
388.29 MB Download
Sailor-0.5B-Chat.Q4_K_S.gguf
LFS Q4
378.22 MB Download
Sailor-0.5B-Chat.Q5_0.gguf
LFS Q5
431.99 MB Download
Sailor-0.5B-Chat.Q5_1.gguf
LFS Q5
459.64 MB Download
Sailor-0.5B-Chat.Q5_K.gguf
LFS Q5
437.97 MB Download
Sailor-0.5B-Chat.Q5_K_M.gguf
LFS Q5
437.97 MB Download
Sailor-0.5B-Chat.Q5_K_S.gguf
LFS Q5
431.99 MB Download
Sailor-0.5B-Chat.Q6_K.gguf
LFS Q6
490.74 MB Download
Sailor-0.5B-Chat.Q8_0.gguf
LFS Q8
633.81 MB Download