Downloads · 30 days
17
6% of all-time downloads
kaist-ai/cosupervision-emb_seq-Llama2_7b
cosupervision-emb_seq-Llama2_7b is a text generation model from kaist-ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This model is a generation model trained via semiparametric token-sequence co-supervision on top of Llama2-7B. The embedding model which constructs the nonparametric sequence embedding spaces is in here.
Downloads · 30 days
17
6% of all-time downloads
All-time downloads
287
Public
Parameters
6.7B
27 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors27 GB · 100%
From the Hugging Face model README
This model is a generation model trained via semiparametric token-sequence co-supervision on top of Llama2-7B. The embedding model which constructs the nonparametric sequence embedding spaces is in here. The models are trained on information-seeking datasets provided by self-rag with co-supervision from next token prediction (NTP) and next sequence prediction (NSP). In the inference step, the model generates a response by retrieving relevant sequences. See full descriptions in our paper.
Here, we show an easy way to quickly download our model from HuggingFace. Make sure to install dependencies listed at requirements.txt. To run our full inference pipeline with embedding model, please use our code.
from transformers import AutoTokenizer, LlamaForCausalLM
model = LlamaForCausalLM.from_pretrained(
"kaist-ai/cosupervision-emb_seq-Llama2_7b",
load_in_8bit=True if train_config.quantization else None,
device_map="auto" if train_config.quantization else None,
)