Beyonder-4x7B-v3 is an improvement over the popular
Beyonder-4x7B-v2
. It's a Mixture of Experts (MoE) made with the following models using
LazyMergekit
:
This model uses a context window of 8k. I recommend using it with the Mistral Instruct chat template (works perfectly with LM Studio).
If you use SillyTavern, you might want to tweak the inference parameters. Here's what LM Studio uses as a reference:
temp
0.8,
top_k
40,
top_p
0.95,
min_p
0.05,
repeat_penalty
1.1.
Thanks to its four experts, it's a well-rounded model, capable of achieving most tasks. As two experts are always used to generate an answer, every task benefits from other capabilities, like chat with RP, or math with code.
This model is not designed to excel in traditional benchmarks, as the code and role-playing models generally do not apply to those contexts. Nonetheless, it performs remarkably well thanks to strong general-purpose experts.
Nous
Beyonder-4x7B-v3 is one of the best models on Nous' benchmark suite (evaluation performed using
LLM AutoEval
) and significantly outperforms the v2. See the entire leaderboard
here
.
Beyonder-4x7B-v3 is the best 4x7B model on the EQ-Bench leaderboard, outperforming older versions of ChatGPT and Llama-2-70b-chat. It is very close to Mixtral-8x7B-Instruct-v0.1 and Gemini Pro. Thanks
Sam Paech
for running the eval.
Open LLM Leaderboard
It's also a strong performer on the Open LLM Leaderboard, significantly outperforming the v2 model.
!pip install -qU transformers bitsandbytes accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "mlabonne/Beyonder-4x7B-v3"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
)
messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
Output:
A Mixture of Experts (MoE) is a neural network architecture that tackles complex tasks by dividing them into simpler subtasks, delegating each to specialized expert modules. These experts learn to independently handle specific problem aspects. The MoE structure combines their outputs, leveraging their expertise for improved overall performance. This approach promotes modularity, adaptability, and scalability, allowing for better generalization in various applications.
Runs of mlabonne Beyonder-4x7B-v3 on huggingface.co
8.7K
Total runs
11
24-hour runs
11
3-day runs
-6
7-day runs
71
30-day runs
More Information About Beyonder-4x7B-v3 huggingface.co Model
Beyonder-4x7B-v3 huggingface.co is an AI model on huggingface.co that provides Beyonder-4x7B-v3's model effect (), which can be used instantly with this mlabonne Beyonder-4x7B-v3 model. huggingface.co supports a free trial of the Beyonder-4x7B-v3 model, and also provides paid use of the Beyonder-4x7B-v3. Support call Beyonder-4x7B-v3 model through api, including Node.js, Python, http.
Beyonder-4x7B-v3 huggingface.co is an online trial and call api platform, which integrates Beyonder-4x7B-v3's modeling effects, including api services, and provides a free online trial of Beyonder-4x7B-v3, you can try Beyonder-4x7B-v3 online for free by clicking the link below.
mlabonne Beyonder-4x7B-v3 online free url in huggingface.co:
Beyonder-4x7B-v3 is an open source model from GitHub that offers a free installation service, and any user can find Beyonder-4x7B-v3 on GitHub to install. At the same time, huggingface.co provides the effect of Beyonder-4x7B-v3 install, users can directly use Beyonder-4x7B-v3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.