Quantization made by Richard Erkhov.
🏆 Evaluation
NexoNimbus-MoE-2x7B is the 10th best-performing 13B LLM on the Open LLM Leaderboard:
1base_model: teknium/OpenHermes-2.5-Mistral-7B
2gate_mode: hidden
3dtype: bfloat16
4experts:
5 - source_model: abideen/NexoNimbus-7B
6 positive_prompts:
7 - "Mathematics"
8 - "Physics"
9 - "Chemistry"
10 - "Biology"
11 - "Medicine"
12 - "Engineering"
13 - "Computer Science"
14
15 negative_prompts:
16 - "History"
17 - "Philosophy"
18 - "Linguistics"
19 - "Literature"
20 - "Art and Art History"
21 - "Music Theory and Composition"
22 - "Performing Arts (Theater, Dance)"
23
24 - source_model: mlabonne/NeuralMarcoro14-7B
25 positive_prompts:
26 - "Earth Sciences (Geology, Meteorology, Oceanography)"
27 - "Environmental Science"
28 - "Astronomy and Space Science"
29 - "Psychology"
30 - "Sociology"
31 - "Anthropology"
32 - "Political Science"
33 - "Economics"
34 negative_prompts:
35 - "Education"
36 - "Law"
37 - "Theology and Religious Studies"
38 - "Communication Studies"
39 - "Business and Management"
40 - "Agricultural Sciences"
41 - "Nutrition and Food Science"
42 - "Sports Science"
Here's a
Colab notebook to run NexoNimbus-MoE-2x7B in 4-bit precision on a free T4 GPU.
1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "abideen/NexoNimbus-MoE-2x7B"
8
9tokenizer = AutoTokenizer.from_pretrained(model)
10pipeline = transformers.pipeline(
11 "text-generation",
12 model=model,
13 model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
14)
15
16messages = [{"role": "user", "content": "Explain what is data science."}]
17prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
18outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
19print(outputs[0]["generated_text"])
"Data science is an interdisciplinary field that combines mathematics, statistics, computer science, and domain expertise in order to extract meaningful insights and knowledge from structured and unstructured data. It involves the process of collecting, cleaning, transforming, analyzing, and visualizing data in order to identify patterns, trends, and relationships that can inform decision-making and drive business strategies. Data scientists use various tools and techniques, such as machine learning, deep learning, and natural language processing, to develop predictive models, optimize processes, and automate decision-making. The field of data science is rapidly evolving as more and more data is generated and the demand for data-driven insights continues to grow."