Downloads · 30 days
54
3% of all-time downloads
failspy/mixtral-8x22b-v0.1-instruct-oh-GGUF
mixtral-8x22b-v0.1-instruct-oh-GGUF is a machine learning model from failspy. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
GGUF-based Quantized models from fireworks-ai/mixtral-8x22b-instruct-oh
Downloads · 30 days
54
3% of all-time downloads
All-time downloads
2K
Public
Repo size
450 GB
Likes
1
Public
Click a slice to open those files.
.gguf450 GB · 100%
From the Hugging Face model README
GGUF-based Quantized models from fireworks-ai/mixtral-8x22b-instruct-oh
Rest of this readme is a template README.md derived from TheBloke's README
<!-- description start -->This repo contains GGUF format model files for fireworks-ai/mixtral-8x22b-instruct-oh.
<!-- description end --> <!-- README_GGUF.md-about-gguf start -->GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
Here is an incomplete list of clients and libraries that are known to support GGUF:
The model uses Vicuna chat template:
USER: ...
ASSISTANT: ...
or:
SYSTEM: ...
USER: ...
ASSISTANT: ...
<!-- prompt-template end -->
<!-- compatibility_gguf start -->
These quantised GGUFv2 files are compatible with llama.cpp from March 19th onwards, as of commit d0d5de4
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
The new methods available are:
Refer to the Provided Files table below to see what files use which methods, and how.
</details> <!-- compatibility_gguf end --> <!-- README_GGUF.md-how-to-run start -->llama.cpp commandMake sure you are using llama.cpp from commit d0d5de4
./main -ngl 35 -m mixtral-8x22b-v0.1-instruct-oh-Q8_0-00001-of-00004.gguf --color -c 32768 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant"
Note that we are loading the GGUF of 00001-of-XXXXX. Using the latest llama.cpp will load the rest of the parts.
Change -ngl 32 to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
Change -c 32768 to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
If you want to have a chat-style conversation, replace the -p <PROMPT> argument with -i -ins
For other parameters and how to use them, please refer to the llama.cpp documentation
text-generation-webuiFurther instructions can be found in the text-generation-webui documentation, here: text-generation-webui/docs/04 ‐ Model Tab.md.
You can use GGUF models from Python using the llama-cpp-python or ctransformers libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
For full documentation, please see: llama-cpp-python docs.
Run one of the following commands, according to your system:
# Base ctransformers with no GPU acceleration
pip install llama-cpp-python
# With NVidia CUDA acceleration
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
# Or with OpenBLAS acceleration
CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
# Or with CLBLast acceleration
CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
# Or with AMD ROCm GPU acceleration (Linux only)
CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
# Or with Metal GPU acceleration for macOS systems only
CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
# In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
$env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
pip install llama-cpp-python
from llama_cpp import Llama
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
llm = Llama(
model_path="./mixtral-8x22b-v0.1-instruct-oh-Q8_0-00001-of-00004.gguf", # Download the model file first
n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
)
# Simple inference example
output = llm(
"<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant", # Prompt
max_tokens=512, # Generate up to 512 tokens
stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
echo=True # Whether to echo the prompt
)
# Chat Completion API
llm = Llama(model_path="./mixtral-8x22b-v0.1-instruct-oh-Q8_0-00001-of-00004.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
llm.create_chat_completion(
messages = [
{"role": "system", "content": "You are a story writing assistant."},
{
"role": "user",
"content": "Write a story about llamas."
}
]
)
Here are guides on using llama-cpp-python and ctransformers with LangChain:
Fireworks Mixtral 8x22b Instruct OH is an instruct version of the latest MoE model from mistralai - 8x22b. This model was finetuned on ~10K entries from OpenHermes dataset by NousResearch. Huge shoutout to Teknium and the NousResearch team for this high-quality SFT dataset.
Try out the model on the Fireworks platform.
For trying out the model on a hosted platform go here.
The model uses Vicuna chat template:
USER: ...
ASSISTANT: ...
or:
SYSTEM: ...
USER: ...
ASSISTANT: ...
To save training time, we sample & format 10K samples from OpenHermes 2.5 dataset. We perform reformatting so as to suit the vicuna chat template. Apart from that dataset is used as is.
The model was trained on 8xA100 [80G] using Deepspeed Zero 3. We had to fix an existing bug with deepspeed zero 3 where interaction between zero 3 & MoE causes training to get stuck.
USER: Create a travel itinerary for the bahamas. Spare no detail.
ASSISTANT: Sure, I'd be happy to help you plan a trip to the Bahamas! Here's a detailed itinerary for your consideration:
Day 1: Arrival in Nassau
Day 2: Nassau City Tour and Atlantis Resort
Day 3: Exuma Cays Day Trip
Day 4: Blue Lagoon Island and Beach Day
Day 5: Departure
I hope this itinerary helps you plan your trip to the Bahamas! Let me know if you have any other questions or need further assistance. </code>
</details> <details Sample 2> <summary>QnA Question</summary> <code> SYSTEM: You are a helpful assistant. Please be kind, patient and truthful in answering the questions.USER: What is the medical term for strong headache on one side of the head?
ASSISTANT: The medical term for a strong headache on one side of the head is called a migraine. </code>
</details> <details Sample 3> <summary>Knowledge Question</summary> <code> SYSTEM: You are a helpful assistant. Please be kind, patient and truthful in answering the questions.USER: How can I get stock price of stripe?
ASSISTANT: Stripe is a private company and does not have publicly traded stock. Therefore, you cannot get the stock price for Stripe. </code>
</details>