Downloads · 30 days
27
7% of all-time downloads
vicky4s4s/Mixtral-instruct-56B
Mixtral-instruct-56B is a text generation model from vicky4s4s. 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 Mixtral-8x7B Large Language Model (LLM) is a pretrained generative Sparse Mixture of Experts. The Mixtral-8x7B outperforms Llama 2 70B on most benchmarks we tested.
Downloads · 30 days
27
7% of all-time downloads
All-time downloads
383
Public
Parameters
46.7B
93.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors93.4 GB · 100%
From the Hugging Face model README
# pip install -U accelerate transformers torch
import torch
from transformers import pipeline
pipe = pipeline("text-generation", model="vicky4s4s/Mixtral-instruct-56B", torch_dtype=torch.bfloat16, device_map="auto")
messages = [
{"role": "user", "content": "what is your name?"},
]
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
The Mixtral-8x7B Large Language Model (LLM) is a pretrained generative Sparse Mixture of Experts. The Mixtral-8x7B outperforms Llama 2 70B on most benchmarks we tested.
For full details of this model please read our release blog post.
This repo contains weights that are compatible with vLLM serving of the model as well as Hugging Face transformers library. It is based on the original Mixtral torrent release, but the file format and parameter names are different. Please note that model cannot (yet) be instantiated with HF.
This format must be strictly respected, otherwise the model will generate sub-optimal outputs.
The template used to build a prompt for the Instruct model is defined as follows:
<s> [INST] Instruction [/INST] Model answer</s> [INST] Follow-up instruction [/INST]
Note that <s> and </s> are special tokens for beginning of string (BOS) and end of string (EOS) while [INST] and [/INST] are regular strings.
The Mixtral-8x7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance. It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
Vignesh, [email protected]