Downloads · 30 days
32
9% of all-time downloads
sambanovasystems/SN-13B-8k-Instruct
SN-13B-8k-Instruct is a feature extraction model from sambanovasystems. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
SN-13B-8k-Instruct is a 13 billion parameter model. It was pretrained as well as instruction tuned on SambaNova DataScale systems. This model is meant to be used for tasks requiring long sequence understanding.
Downloads · 30 days
32
9% of all-time downloads
All-time downloads
356
Public
Repo size
54.2 GB
Likes
5
Public
Click a slice to open those files.
.bin54.2 GB · 100%
From the Hugging Face model README
SN-13B-8k-Instruct is a 13 billion parameter model. It was pretrained as well as instruction tuned on SambaNova DataScale systems. This model is meant to be used for tasks requiring long sequence understanding.
To increase accessibility and to support the open-source community, SambaNova is releasing SN-13B-8k-Instruct under an Apache 2.0 license. Please review SambaNova’s SN-13B-8k-Instruct License
This model is intended for commercial and research use.
SN-13B-8k-Instruct should NOT be used for:
This model is still in early development and can be prone to mistakes and hallucinations, there is still room for improvement. This model is intended to provide the community with a multilingual chat LLM baseline.
Users should be made aware of the risks, biases, limitations, and restrictions of the model, which are listed down at the bottom of the page.
</details>from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("sambanovasystems/SN-13B-8k-Instruct")
model = AutoModelForCausalLM.from_pretrained("sambanovasystems/SN-13B-8k-Instruct")
prompt = 'Define Machine Learning.'
inputs = tokenizer(prompt, return_tensors='pt')
# SN-13B-8k-Instruct occasionally repeats itself when do_sample=False.
# Set do_sample=True when using the model to avoid this.
outputs = model.generate(**inputs, use_cache=True, max_new_tokens=50, do_sample=False)
print(tokenizer.batch_decode(outputs))
We trained SN-13B-8k-Instruct with SambaNova DataScale systems with SambaNova's in-house Reconfigurable Dataflow Unit (RDU). We started from random weights, and pretrained for 300 Billion tokens on sequences of size 2048. We then pretrained for another 250 Billion tokens on sequences of size 8192. During this phase of training, we curated a dataset that had a large proportion of long sequence articles, with 30% of our articles consisting of greater than 6000 words.
We applied instruction tuning on a variety of tasks derived from datasets such as FLANv2, P3, Natural Instructions, etc.
Pretraining on 8k SS
Instruction-tuned Training
Like all LLMs, SN-13B-8k-Instruct has certain limitations:
We appreciate Scrolls and ZeroScrolls for their contributions in creating effective benchmarks to test the long sequence understanding of Large Language Models. We appreciate lm-eval-harness and HELM for their essential benchmarking contributions, which were both very helpful in evaluating SN-13B-8k-Instruct's performance. We appreciate the inspiration from the wave of various recent open-source long sequence models, including XGen, MPT, and Llama-2 and so on. We look forward to witnessing the continued growth and success of open-source long sequence models.
We highly appreciate the hard work and dedication of these researchers and organizations towards the advancement of the open-source community. Their contributions were invaluable in the development of SN-13B-8k-Instruct, and we hope that our model can contribute to further advancements in the field.
@software{sn-13b-8k-instruct,
title = {SN-13B-8k-Instruct: training long sequence size models with SambaNova},
author = {SambaNova Systems},
url = {https://huggingface.co/sambanovasystems/SN-13B-8k-Instruct}
month = {8},
year = {2023},
version = {1.0},
}