Downloads · 30 days
438
2% of all-time downloads
Deci/DeciLM-6b
DeciLM-6b is a text generation model from Deci. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
DeciLM 6B is a 5.7 billion parameter decoder-only text generation model. With a context window of 4096 tokens, the highly efficient model uses variable Grouped-Query Attention (GQA) to achieve an optimal balance betwe…
Downloads · 30 days
438
2% of all-time downloads
All-time downloads
28K
Public
Parameters
5.7B
11.4 GB on disk
Likes
232
Public
Click a slice to open those files.
.safetensors11.4 GB · 100%
From the Hugging Face model README
DeciLM 6B is a 5.7 billion parameter decoder-only text generation model. With a context window of 4096 tokens, the highly efficient model uses variable Grouped-Query Attention (GQA) to achieve an optimal balance between performance and computational efficiency. The model's architecture was generated using Deci's proprietary Neural Architecture Search-based technology, AutoNAC.
Deci developed and publically released the DeciLM 6B large language model, a pretrained, high-efficiency generative text model with 5.7 billion parameters. DeciLM 6B outpaces pretrained models in its class, with a throughput that's up to 15 times that of Llama 2 7B's. DeciLM-6B was further fine-tuned using LoRA for instruction following on a subset of the OpenOrca dataset, creating DeciLM 6B-Instruct
| Parameters | Layers | Heads | Sequence Length | GQA num_key_value_heads* | Hidden Size |
|---|---|---|---|---|---|
| 5.7B | 32 | 32 | 4096 | Variable | 4096 |
*AutoNAC was employed to optimize the selection of the GQA num_key_value_heads for each layer of the model.
The model is intended for commercial and research use in English and can be fine-tuned for use in other languages.
Use the code below to get started with the model.
# pip install -q transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "Deci/DeciLM-6b"
device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype=torch.bfloat16, trust_remote_code=True).to(device)
inputs = tokenizer.encode("In a shocking finding, scientists discovered a herd of unicorns living in", return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=100, do_sample=True, top_p=0.95)
print(tokenizer.decode(outputs[0]))
DeciLM 6B underwent training utilizing a subset of the SlimPajamas dataset, leveraging advanced proprietary methodologies allowing for fast training.
Below are DeciLM's 6B evaluation results.
| Average | ARC Challenge* | ARC Easy* | BoolQ | HellaSwag* | LAMBDA OpenAI | OpenBookQA | PIQA | TruthfulQA | Winogrande |
|---|---|---|---|---|---|---|---|---|---|
| 60.33 | 42.06 | 70.02 | 71.01 | 74.58 | 69.78 | 34 | 77.09 | 36.19 | 68.03 |
| Accuracy-norm score* |
| Inference Tool/Hardware | A10 (tokens/sec) |
|---|---|
| PyTorch | 652.49 |
| Infery LLM | 2,029.6 |
Please cite this model using this format.
@misc{DeciFoundationModels,
title = {DeciLM 6B},
author = {DeciAI Research Team},
year = {2023}
url={[https://huggingface.co/Deci/DeciLM-6b](https://huggingface.co/Deci/DeciLM-6b)},
}