# WordWoven-13B-HQQ
This is [wbag's WordWoven-13B model](https://huggingface.co/walmart-the-bag/wordwoven-13b) quantized to 4bit HQQ

# Usage
To run this quantization, you can use the following code.

```bash
pip install git+https://github.com/mobiusml/hqq/ transformers -U
```
```python
model_id = 'HQQHouse/WordWoven-13B-HQQ'

from hqq.engine.hf import HQQModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model     = HQQModelForCausalLM.from_quantized(model_id)

# Prompt for inference
prompt = """
### Instruction: What is water used for?
### Response:"""


input_ids = tokenizer.encode(prompt, return_tensors='pt').to('cuda')

output = model.generate(input_ids=input_ids, max_length=50, num_return_sequences=1, do_sample=True, top_k=50)

generated_sequence = tokenizer.decode(output[0].cuda(), skip_special_tokens=True)
print(generated_sequence)
```

# Read About HQQ
https://mobiusml.github.io/hqq_blog/
________________________
# Original Card
This is the last model to test out MoE, made on 1xA100-80G (11 total minutes including download)

# Use
This is for instruction. It may give out false information whether its about coding, or specific questions.

# Benchmark/Evaluation
| Model | Average ↑ | ARC | HellaSwag | MMLU | TruthfulQA | Winogrande | GSM8K |
| --- | --- | --- | --- | --- | --- | --- | --- |
| mistralai/Mixtral-8x7B-Instruct-v0.1 📑 | 72.62 | 70.22 | 87.63 | 71.16 | 64.58 | 81.37 | 60.73 |
| Walmart-the-bag/WordWoven-13B 📑 | 68.25 | 66.13 | 85.81 | 64.06 | 54.45 | 78.93 | 60.12 |

# License
### MIT
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6530994e70a88b63f007324d/Zf3wrU5zn2uVyoYAZ47rQ.png)

```
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
{"license": "mit", "inference": false}
transformers mixtral text-generation license:mit autotrain_compatible text-generation-inference region:us