gguf endpoints_compatible region:us conversational
---
{}
---
Quantization made by Richard Erkhov.

[Github](https://github.com/RichardErkhov)

[Discord](https://discord.gg/pvy7H8DZMG)

[Request more models](https://github.com/RichardErkhov/quant_request)


Moe-2x7b-QA-Code - GGUF
- Model creator: https://huggingface.co/nextai-team/
- Original model: https://huggingface.co/nextai-team/Moe-2x7b-QA-Code/


| Name | Quant method | Size |
| ---- | ---- | ---- |
| [Moe-2x7b-QA-Code.Q2_K.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q2_K.gguf) | Q2_K | 4.43GB |
| [Moe-2x7b-QA-Code.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.IQ3_XS.gguf) | IQ3_XS | 4.95GB |
| [Moe-2x7b-QA-Code.IQ3_S.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.IQ3_S.gguf) | IQ3_S | 5.22GB |
| [Moe-2x7b-QA-Code.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q3_K_S.gguf) | Q3_K_S | 5.2GB |
| [Moe-2x7b-QA-Code.IQ3_M.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.IQ3_M.gguf) | IQ3_M | 5.35GB |
| [Moe-2x7b-QA-Code.Q3_K.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q3_K.gguf) | Q3_K | 5.78GB |
| [Moe-2x7b-QA-Code.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q3_K_M.gguf) | Q3_K_M | 5.78GB |
| [Moe-2x7b-QA-Code.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q3_K_L.gguf) | Q3_K_L | 6.27GB |
| [Moe-2x7b-QA-Code.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.IQ4_XS.gguf) | IQ4_XS | 3.0GB |
| [Moe-2x7b-QA-Code.Q4_0.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q4_0.gguf) | Q4_0 | 6.78GB |
| [Moe-2x7b-QA-Code.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.IQ4_NL.gguf) | IQ4_NL | 6.85GB |
| [Moe-2x7b-QA-Code.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q4_K_S.gguf) | Q4_K_S | 6.84GB |
| [Moe-2x7b-QA-Code.Q4_K.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q4_K.gguf) | Q4_K | 7.25GB |
| [Moe-2x7b-QA-Code.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q4_K_M.gguf) | Q4_K_M | 7.25GB |
| [Moe-2x7b-QA-Code.Q4_1.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q4_1.gguf) | Q4_1 | 7.52GB |
| [Moe-2x7b-QA-Code.Q5_0.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q5_0.gguf) | Q5_0 | 8.26GB |
| [Moe-2x7b-QA-Code.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q5_K_S.gguf) | Q5_K_S | 8.26GB |
| [Moe-2x7b-QA-Code.Q5_K.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q5_K.gguf) | Q5_K | 8.51GB |
| [Moe-2x7b-QA-Code.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q5_K_M.gguf) | Q5_K_M | 8.51GB |
| [Moe-2x7b-QA-Code.Q5_1.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q5_1.gguf) | Q5_1 | 9.01GB |
| [Moe-2x7b-QA-Code.Q6_K.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q6_K.gguf) | Q6_K | 9.84GB |
| [Moe-2x7b-QA-Code.Q8_0.gguf](https://huggingface.co/RichardErkhov/nextai-team_-_Moe-2x7b-QA-Code-gguf/blob/main/Moe-2x7b-QA-Code.Q8_0.gguf) | Q8_0 | 12.75GB |




Original model description:
---
library_name: transformers
tags:
- code
- finance
- qa
- assistant
- reasoning
license: apache-2.0
language:
- en
metrics:
- code_eval
---



**Model Description**

Moe-2x7b-QA-Code is a state-of-the-art language model specialized in Question Answering (QA) and code-related queries. Leveraging the Mixture of Experts (MoE) architecture, this model has been trained on a diverse dataset encompassing technical documentation, forums, and code repositories to provide accurate and context-aware responses to both technical and general questions.

***How to Use***
```
from transformers import AutoTokenizer
import transformers
import torch

model = "nextai-team/Moe-2x7b-QA-Code" 

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    device_map="auto",
    model_kwargs={"torch_dtype": torch.float16},
)

def generate_resposne(query):
    messages = [{"role": "user", "content": query}]
    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)
    return outputs[0]['generated_text']

response = generate_resposne("How to learn coding .Please provide a step by step procedure")
print(response)

```
**Intended Use**

This model is intended for developers, data scientists, and researchers seeking to integrate sophisticated natural language understanding and code generation functionalities into their applications. Ideal use cases include but are not limited to:

Automated coding assistance Technical support bots Educational tools for learning programming Enhancing code review processes

Model Architecture employs a Mixture of Experts (MoE) architecture, which allows it to efficiently manage its vast number of parameters for specialized tasks. This architecture facilitates the model's ability to discern subtle nuances in programming languages and natural language queries, leading to more accurate code generation and question answering performance.

Performance demonstrates significant improvements in accuracy and relevance over its predecessor, particularly in complex coding scenarios and detailed technical queries. ***Benchmarks and performance metrics can be provided upon request.***

**Limitations and Bias**

This model, like any other, has its limitations. It may exhibit biases inherent in the training data or struggle with questions outside its training scope. Users should critically assess the model's outputs, especially for sensitive or critical applications.

**Training Data**

The Moe-2x7b-QA-Code model was trained on a curated dataset comprising technical documentation, Stack Overflow posts, GitHub repositories, and other code-related content. This extensive training set ensures the model's proficiency in understanding and generating code-related content alongside general language understanding.

**Training Procedure**

The model was trained using a Mixture of Experts (MoE) approach, allowing it to dynamically leverage different subsets of parameters for different types of input data. This method enhances the model's capacity and efficiency, enabling it to excel in a wide range of QA and coding tasks.


**Model Architecture**

Moe-2x7b-QA-Code employs an advanced MoE architecture with 2x7 billion parameters, optimized for high performance in QA and coding tasks. This architecture enables the model to efficiently process and generate accurate responses to complex queries.

**Contact**
Https://nextai.co.in

