Beyonder-4x7B-v2 is competitive with Mixtral-8x7B-Instruct-v0.1 on the Open LLM Leaderboard, while only having 4 experts instead of 8.
It also displays a significant improvement over the individual experts.
It also performs very well compared to other models on Nous benchmark suite. It's almost as good as the best Yi-34B fine-tune, which is a much bigger model: 24.2B parameters + only two experts are selected during inference (so ~12B) vs. 34B param.
Here's a
notebook
to run this model in 4-bit precision using a free T4 GPU on Google Colab.
!pip install -qU transformers bitsandbytes accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "mlabonne/Beyonder-4x7B-v2"
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 (ME) is a machine learning technique that combines multiple expert models to make predictions or decisions. Each expert model is specialized in a different aspect of the problem, and their outputs are combined to produce a more accurate and robust solution. This approach allows the model to leverage the strengths of individual experts and compensate for their weaknesses, improving overall performance.
Runs of mlabonne Beyonder-4x7B-v2 on huggingface.co
111
Total runs
5
24-hour runs
18
3-day runs
31
7-day runs
57
30-day runs
More Information About Beyonder-4x7B-v2 huggingface.co Model
Beyonder-4x7B-v2 huggingface.co is an AI model on huggingface.co that provides Beyonder-4x7B-v2's model effect (), which can be used instantly with this mlabonne Beyonder-4x7B-v2 model. huggingface.co supports a free trial of the Beyonder-4x7B-v2 model, and also provides paid use of the Beyonder-4x7B-v2. Support call Beyonder-4x7B-v2 model through api, including Node.js, Python, http.
Beyonder-4x7B-v2 huggingface.co is an online trial and call api platform, which integrates Beyonder-4x7B-v2's modeling effects, including api services, and provides a free online trial of Beyonder-4x7B-v2, you can try Beyonder-4x7B-v2 online for free by clicking the link below.
mlabonne Beyonder-4x7B-v2 online free url in huggingface.co:
Beyonder-4x7B-v2 is an open source model from GitHub that offers a free installation service, and any user can find Beyonder-4x7B-v2 on GitHub to install. At the same time, huggingface.co provides the effect of Beyonder-4x7B-v2 install, users can directly use Beyonder-4x7B-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.