Downloads · 30 days
45
3% of all-time downloads
SuperAGI/mistral-7B-PoSE-32k
mistral-7B-PoSE-32k is a text generation model from SuperAGI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The Mistral-7B-32K-PoSE Large Language Model (LLM) is a PoSE trained Mistral 7B for 32k context length. The PoSE technique of extending the context length of Mistral-7B outperforms the passkey retrieval task with only…
Downloads · 30 days
45
3% of all-time downloads
All-time downloads
1.7K
Public
Parameters
7.2B
14.5 GB on disk
Likes
15
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
The Mistral-7B-32K-PoSE Large Language Model (LLM) is a PoSE trained Mistral 7B for 32k context length. The PoSE technique of extending the context length of Mistral-7B outperforms the passkey retrieval task with only a marginal impact on the standard benchmarks.
For full details of this model please read our release blog post.
The evaluation focuses on their effectiveness in passkey retrieval, highlighting the impact of varying context lengths on the models ability to extract crucial information. Our model excels in information extraction, capable of handling context lengths up to 32k, surpassing the limitations of the original Mistral7B model which could pass the test cases only if the context window was under 8k.
from transformers import AutoTokenizer
from my_modeling_mistral import MistralForCausalLM
model_id = "SuperAGI/mistral-7B-PoSE-32k"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = MistralForCausalLM.from_pretrained(model_id)
text = "Hello my name is"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The Mistral-7B-32K-PoSE model is a demonstration that the context length can be extended without losing much on the performance. It does not have any moderation mechanisms. The model is not suitable for production usage as it doesn't have guardrails for toxicity, societal bias, and language limitations. We would love to collaborate with the community to build safer and better models.
Ishaan Bhola, Mukunda NS, Rajat Chawla, Anmol Gautam, Arkajit Datta, Ayush Vatsal, Sukrit Chatterjee, Adarsh Jha, Adarsh Deep, Abhijeet Sinha, Rakesh Krishna.