|
license: cc-by-nc-4.0 |
|
--- |
|
## NeverSleep's [Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss](https://huggingface.co/NeverSleep/Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss) but 17GB at 2BPW+ |
|
### the other 14 shannons will be remembered. [HQQ quantized](https://mobiusml.github.io/hqq_blog/) to 2 bits with 4 bit attention. Fits on a 3090 with room to grow. Supports full 32k context. I will not combine those assertions. |
|
The attention tensors are 4 bit because mixtral reuses it for each expert - so it's only adding 0.4 GB and the quality improve dramatically. See [this](https://huggingface.co/mobiuslabsgmbh/Mixtral-8x7B-v0.1-hf-attn-4bit-moe-2bit-HQQ) but also it's horny and also it's dying of chatml m<|align>|ant tokenis|s>. |
|
|
|
### This is a 2+4 bit quantization of noromixmaidblah (just scroll down) using an emerging and aparrently very robust quantization method Half-Quadratic Quantisation. It ultimately squeezes it's tokens out of HF Transformers, not one ofthe *lesser* inference tools. So what's juicy about this is that it *functions* with full Transformers sampler and tokeniser support but you only need a 3090 instead of a H100! Truly emancipatory |
|
|
|
...I'll do something smaller next time. |
|
|
|
My unwitting and presumably unwilling collaborators were the very clever people at [mobiusml - see their freaky maths at their github blog mini paper thing for HQQ](https://github.com/mobiusml/hqq). It's compatible with HF Transformers (including contrastive search baybee!) and is supported out of the box (I think) on text-generation-webui. |
|
For mobius's own description of what this is, see the template I followed, their quantization of a vanilla mixtral at [mobiuslabsgmbh/Mixtral-8x7B-v0.1-hf-attn-4bit-moe-2bit-HQQ](https://huggingface.co/mobiuslabsgmbh/Mixtral-8x7B-v0.1-hf-attn-4bit-moe-2bit-HQQ) |
|
|
|
> my best guess at parsing the HQQ source is that it works by sort of... 'JIT de-quantizing' its weights as transformers requests them, back to 16 bit floats. I have no idea, really. Phind seemed to think I had the right idea. If you prefer talking to human beings from being lied to by language models (why are you here?) you could probably ask the MobiusML - they seem friendly and compsci/engineer types tend to enjoy talking about their research and development. Weirdos. |
|
|
|
|
|
I *think* this is a functioning quant from one of everone's favorite norovirus inspired language models, Noromaid. I wouldn't know - I can't load 90 gigabytes of BF16 so this is my first few minutes too. |
|
|
|
#### scroll past my oom-killer nightmare log for full credits and instructions on how to actually use this model by the people who tuned it. Even if you do want to know what I've learned - you're better off just asking me than trying to parse *this* |
|
--- |
|
|
|
It took me all day to figure this out. It turns out that while HQQ will go ahead and fill 180GB of memory to do this - there's absolutely no reason for it! I did this from a slow**, 200 GB swap partition. |
|
On the off chance someone at Mobius see this - please don't ask transformers to load a 45B param model on to the CPU if you're not actually going to... call the model at all? It took ten minutes at SATA 2 speeds - and that was because it was padded to FP32 (CPU mode, right?). |
|
```45 Gigaweights \* 2 Bytes per weight \* fp32/bf16 = 180 GB of system memory allocated.``` |
|
I wish I had one of those. |
|
|
|
\**May have been zswap's fault. I'm pretty sure 200MB/s and an idle CPU isn't the best you can hope for when you're doing sequential reads from a 4.0x4 NVME device? My GPU fell asleep between optimization passes. It even has a Gamer LED on it. I'll fix my sysctl next time. |
|
|
|
+ Try `$ python -i untitled.py` |
|
|
|
having saved that script from the mobius hf repo because you'll be spending a while in IDLE figuring out |
|
+ `>>> model.save_quantized("/absolute/path/noromaid") ` |
|
|
|
at the end and trust me, quantizing something chunky and then watching python shred it because the save directory is somehow a recursive lambda function and not a string is heartbreaking. I don't know if it was supposed to emit more than the model.pt and the config.json but I'm taking what I can get. |
|
|
|
###### If anyone's looking to donate I could do with an Epyc Rome and perhaps another pair of H100s? I've embedded my XMR address in attention tensors with help from a realy horny embedding so when it starts generating gibberish right before the good stuff just paste that in to feather and send me all your money. Thanks! :) |
|
|
|
`i'm joking. that's a joke. I didn't do that.` |
|
|
|
--- |
|
# Original README from the Neversleep twins follows: |
|
--- |
|
license: cc-by-nc-4.0 |
|
--- |
|
|
|
|
|
![image/png](https://cdn-uploads.huggingface.co/production/uploads/630dfb008df86f1e5becadc3/vwcJfOnL-2QDJ0ShfxRJ5.png) |
|
|
|
|
|
|
|
--- |
|
|
|
# Disclaimer: |
|
## This model is experimental, do not expect everything to work. |
|
|
|
This model uses the Chatml **prompting format** |
|
|
|
--- |
|
|
|
|
|
Beeg noromaid on ***steroids***. Suitable for RP, ERP. |
|
|
|
This model was trained on the Zloss fork of Charles, and should fix issue the model had. |
|
|
|
Use Chatml prompt format, but not the special token. |
|
|
|
The reason is that Axolotl merge the finetune with the base model at 1.0 weight basically, but this is too much, so I use another script available [HERE](https://github.com/DocShotgun/LLM-notebooks/blob/main/weighted-lora-merge.ipynb) to merge with less weight, sadly, it don't take the special Chatml token. It's like Orca2 for the matter. |
|
|
|
|
|
## Credits: |
|
- Undi |
|
- IkariDev |
|
|
|
<!-- description start --> |
|
## Description |
|
|
|
<!-- [Recommended settings - contributed by localfultonextractor](https://files.catbox.moe/ue0tja.json) --> |
|
|
|
This repo contains FP16 files of Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss. |
|
|
|
[FP16 - by IkariDev and Undi](https://huggingface.co/NeverSleep/Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss) |
|
|
|
<!-- [GGUF - By TheBloke](https://huggingface.co/TheBloke/Athena-v4-GGUF)--> |
|
|
|
<!-- [GPTQ - By TheBloke](https://huggingface.co/TheBloke/Athena-v4-GPTQ)--> |
|
|
|
<!-- [exl2[8bpw-8h] - by AzureBlack](https://huggingface.co/AzureBlack/Echidna-13b-v0.3-8bpw-8h-exl2)--> |
|
|
|
<!-- [AWQ - By TheBloke](https://huggingface.co/TheBloke/Athena-v4-AWQ)--> |
|
|
|
<!-- [fp16 - by IkariDev+Undi95](https://huggingface.co/IkariDev/Athena-v4)--> |
|
|
|
[GGUF - by IkariDev and Undi](https://huggingface.co/NeverSleep/Noromaid-v0.4-Mixtral-Instruct-8x7b-Zloss-GGUF) |
|
<!-- [OLD(GGUF - by IkariDev+Undi95)](https://huggingface.co/IkariDev/Athena-v4-GGUF)--> |
|
|
|
## Ratings: |
|
|
|
Note: We have permission of all users to upload their ratings, we DONT screenshot random reviews without asking if we can put them here! |
|
|
|
No ratings yet! |
|
|
|
If you want your rating to be here, send us a message over on DC and we'll put up a screenshot of it here. DC name is "ikaridev" and "undi". |
|
|
|
<!-- description end --> |
|
<!-- prompt-template start --> |
|
### Prompt format: Chatml |
|
``` |
|
<|im_start|>system |
|
{sysprompt}<|im_end|> |
|
<|im_start|>user |
|
{input}<|im_end|> |
|
<|im_start|>assistant |
|
{output}<|im_end|> |
|
``` |
|
|
|
## Datasets used: |
|
|
|
- Aesir 1, 2 & 3 modified by us, credit to ([MinervaAI](https://huggingface.co/MinervaAI) / [Gryphe](https://huggingface.co/Gryphe)) |
|
- [LimaRP-20231109](https://huggingface.co/datasets/lemonilia/LimaRP) ([Lemonilia](https://huggingface.co/lemonilia)) |
|
- [ToxicQAFinal](https://huggingface.co/datasets/NobodyExistsOnTheInternet/ToxicQAFinal) ([NobodyExistsOnTheInternet](https://huggingface.co/NobodyExistsOnTheInternet) |
|
- [No-robots-ShareGPT](https://huggingface.co/datasets/Doctor-Shotgun/no-robots-sharegpt) ([Doctor-Shotgun](https://huggingface.co/Doctor-Shotgun)) |
|
|
|
|
|
## Others |
|
|
|
Undi: If you want to support me, you can [here](https://ko-fi.com/undiai). |
|
|
|
IkariDev: Visit my [retro/neocities style website](https://ikaridevgit.github.io/) please kek |