Instructions to use solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ") model = AutoModelForCausalLM.from_pretrained("solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ
- SGLang
How to use solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ with Docker Model Runner:
docker model run hf.co/solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ
perlthoughts/Mistral-7B-Instruct-v0.2-2x7B-MoE AWQ
Model Summary
Mistral 7B Instruct v0.2 7B (with only 2 experts)
The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an improved instruct fine-tuned version of Mistral-7B-Instruct-v0.1.
For full details of this model please read our paper and release blog post.
Instruction format
In order to leverage instruction fine-tuning, your prompt should be surrounded by [INST] and [/INST] tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
E.g.
text = "<s>[INST] What is your favourite condiment? [/INST]"
"Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> "
"[INST] Do you have mayonnaise recipes? [/INST]"
This format is available as a chat template via the apply_chat_template() method
- Downloads last month
- 3
Model tree for solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ
Base model
fxmeng/Mixtral-2x7B-Instruct-v0.1Collection including solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ
Paper for solidrust/Mixtral-Instruct-v0.2-2x7B-AWQ
Evaluation results
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard62.970
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard84.880
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard60.740
- mc2 on TruthfulQA (0-shot)validation set Open LLM Leaderboard68.180
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard77.430
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard39.420