mlabonne / Beyonder-4x7b

huggingface.co
Total runs: 69
24-hour runs: 1
7-day runs: 14
30-day runs: 21
Model's Last Updated: December 29 2023
text-generation

Introduction of Beyonder-4x7b

Model Details of Beyonder-4x7b

Beyonder-4x7b

This model is a Mixure of Experts (MoE) made with mergekit (mixtral branch). It uses the following base models:

🧩 Configuration
base_model: openchat/openchat-3.5-1210
gate_mode: hidden
experts:
  - source_model: openchat/openchat-3.5-1210
    positive_prompts:
    - "chat"
    - "assistant"
    - "tell me"
    - "explain"
    negative_prompts:
    - "storywriting"
    - "mathematics"
    - "reasoning"
    - "code"
    - "programming"
  - source_model: beowolx/CodeNinja-1.0-OpenChat-7B
    positive_prompts:
    - "code"
    - "python"
    - "javascript"
    - "programming"
    - "algorithm"
    negative_prompts:
    - "chat"
    - "assistant"
    - "storywriting"
    - "mathematics"
    - "reasoning"
  - source_model: maywell/PiVoT-0.1-Starling-LM-RP
    positive_prompts:
    - "storywriting"
    - "write"
    - "scene"
    - "story"
    - "character"
    negative_prompts:
    - "chat"
    - "assistant"
    - "code"
    - "programming"
    - "mathematics"
    - "reasoning"
  - source_model: WizardLM/WizardMath-7B-V1.1
    positive_prompts:
    - "reason"
    - "math"
    - "mathematics"
    - "solve"
    - "count"
    negative_prompts:
    - "chat"
    - "assistant"
    - "code"
    - "programming"
    - "storywriting"
💻 Usage
!pip install -qU transformers bitsandbytes accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "mlabonne/Beyonder-4x7b"

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 combines the strengths of multiple expert networks to make predictions. It leverages the idea of ensemble learning, where multiple models work together to improve performance. In each MoE, a gating network is used to select the most relevant expert for the input. The final output is a weighted combination of the expert outputs, determined by the gating network's predictions.

Runs of mlabonne Beyonder-4x7b on huggingface.co

69
Total runs
1
24-hour runs
7
3-day runs
14
7-day runs
21
30-day runs

More Information About Beyonder-4x7b huggingface.co Model

More Beyonder-4x7b license Visit here:

https://choosealicense.com/licenses/apache-2.0

Beyonder-4x7b huggingface.co

Beyonder-4x7b huggingface.co is an AI model on huggingface.co that provides Beyonder-4x7b's model effect (), which can be used instantly with this mlabonne Beyonder-4x7b model. huggingface.co supports a free trial of the Beyonder-4x7b model, and also provides paid use of the Beyonder-4x7b. Support call Beyonder-4x7b model through api, including Node.js, Python, http.

Beyonder-4x7b huggingface.co Url

https://huggingface.co/mlabonne/Beyonder-4x7b

mlabonne Beyonder-4x7b online free

Beyonder-4x7b huggingface.co is an online trial and call api platform, which integrates Beyonder-4x7b's modeling effects, including api services, and provides a free online trial of Beyonder-4x7b, you can try Beyonder-4x7b online for free by clicking the link below.

mlabonne Beyonder-4x7b online free url in huggingface.co:

https://huggingface.co/mlabonne/Beyonder-4x7b

Beyonder-4x7b install

Beyonder-4x7b is an open source model from GitHub that offers a free installation service, and any user can find Beyonder-4x7b on GitHub to install. At the same time, huggingface.co provides the effect of Beyonder-4x7b install, users can directly use Beyonder-4x7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Beyonder-4x7b install url in huggingface.co:

https://huggingface.co/mlabonne/Beyonder-4x7b

Url of Beyonder-4x7b

Beyonder-4x7b huggingface.co Url

Provider of Beyonder-4x7b huggingface.co

mlabonne
ORGANIZATIONS

Other API from mlabonne

huggingface.co

Total runs: 156
Run Growth: -18
Growth Rate: -11.54%
Updated:March 04 2024
huggingface.co

Total runs: 75
Run Growth: 24
Growth Rate: 32.00%
Updated:March 04 2024