Downloads · 30 days
0
kaiokendev/superhot-7b-8k-no-rlhf-test
superhot-7b-8k-no-rlhf-test is a machine learning model from kaiokendev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a second prototype of SuperHOT, a NSFW focused LoRA, this time 7B with 8K context and no RLHF, using the same technique described in the github blog.
Downloads · 30 days
0
Access
Public
Updated Jul 1, 2023
Repo size
33.7 MB
Likes
6
Public
Click a slice to open those files.
.bin16.9 MB · 100%
From the Hugging Face model README
This is a second prototype of SuperHOT, a NSFW focused LoRA, this time 7B with 8K context and no RLHF, using the same technique described in the github blog.
Make some please :)
You will NEED to apply the monkeypatch or, if you are already using the monkeypatch, change the scaling factor to 0.25 and the maximum sequence length to 8192
The monkeypatch is only necessary if you are using a front-end/back-end that does not already support scaling and said front-end/back-end is Python-based (i.e. Huggingface Transformers). To apply the patch, you will need to copy the llama_rope_scaled_monkey_patch.py into your working directory and call the exported function replace_llama_rope_with_scaled_rope at the very start of your Python program. It will modify the Transformers library's implementation of RoPE to properly apply the scaling factor.
Switch your loader to exllama or exllama_hf Add the arguments max_seq_len 8192 and compress_pos_emb 4. While the model may work well with compress_pos_emb 2, it was trained on 4, so that is what I advocate for you to use
Example in the command-line:
python server.py --max_seq_len 8192 --compress_pos_emb 4 --loader exllama_hfIn the UI, you will see the loader option in the Models tab. Once you select either exllama or exllama_hf, the max_seq_len and compress_pos_emb settings will appear.
I trained the LoRA with the following configuration: