Downloads · 30 days
41
4% of all-time downloads
ekchatzi-core/Mythalion-13B-GGUF
Mythalion-13B-GGUF is a text generation model from ekchatzi-core. Use it when you need the model to write or continue text. The card lists the license as llama2.
- Model creator: PygmalionAI - Original model: Mythalion 13B
Downloads · 30 days
41
4% of all-time downloads
All-time downloads
949
Public
Repo size
17.1 GB
Likes
1
Public
Click a slice to open those files.
.gguf17.1 GB · 100%
From the Hugging Face model README
This repo contains GGUF model files for PygmalionAI's Mythalion 13B used in [LoveCore AI] (https://lovecoreai.com).
<!-- description end --> <!-- README_GGUF.md-about-gguf start -->GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.
Here is an incomplate list of clients and libraries that are known to support GGUF:
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{prompt}
### Response:
<!-- prompt-template end -->
<!-- compatibility_gguf start -->
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit d0cee0d36d5be95a0d9088b674dbb27354107221
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
The new methods available are:
I recommend using the huggingface-hub Python library:
pip3 install huggingface-hub>=0.17.1
Then you can download any individual model file to the current directory, at high speed, with a command like this:
huggingface-cli download ekchatzi-core/Mythalion-13B-GGUF mythalion-13b-Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
<details>
<summary>More advanced huggingface-cli download usage</summary>
You can also download multiple files at once with a pattern:
huggingface-cli download ekchatzi-core/Mythalion-13B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
For more documentation on downloading with huggingface-cli, please see: HF -> Hub Python Library -> Download files -> Download from the CLI.
To accelerate downloads on fast connections (1Gbit/s or higher), install hf_transfer:
pip3 install hf_transfer
And set environment variable HF_HUB_ENABLE_HF_TRANSFER to 1:
HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download ekchatzi-core/Mythalion-13B-GGUF mythalion-13b-Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
Windows CLI users: Use set HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 before running the download command.
llama.cpp commandMake sure you are using llama.cpp from commit d0cee0d36d5be95a0d9088b674dbb27354107221 or later.
./main -ngl 32 -m mythalion-13b-Q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{prompt}\n\n### Response:"
Change -ngl 32 to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
Change -c 4096 to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically.
If you want to have a chat-style conversation, replace the -p <PROMPT> argument with -i -ins
For other parameters and how to use them, please refer to the llama.cpp documentation
text-generation-webuiFurther instructions here: text-generation-webui/docs/llama.cpp.md.
You can use GGUF models from Python using the llama-cpp-python or ctransformers libraries.
# Base ctransformers with no GPU acceleration
pip install ctransformers>=0.2.24
# Or with CUDA GPU acceleration
pip install ctransformers[cuda]>=0.2.24
# Or with ROCm GPU acceleration
CT_HIPBLAS=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
# Or with Metal GPU acceleration for macOS systems
CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
from ctransformers import AutoModelForCausalLM
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
llm = AutoModelForCausalLM.from_pretrained("ekchatzi-core/Mythalion-13B-GGUF", model_file="mythalion-13b-Q4_K_M.gguf", model_type="llama", gpu_layers=50)
print(llm("AI is going to"))
Here's guides on using llama-cpp-python or ctransformers with LangChain:
<!-- README_GGUF.md-how-to-run end --> <!-- original-model-card start -->The long-awaited release of our new models based on Llama-2 is finally here. This model was created in collaboration with Gryphe, a mixture of our Pygmalion-2 13B and Gryphe's Mythomax L2 13B.
Finer details of the merge are available in our blogpost. According to our testers, this model seems to outperform MythoMax in RP/Chat. Please make sure you follow the recommended generation settings for SillyTavern here for the best results!
This model is freely available for both commercial and non-commercial use, as per the Llama-2 license.
This model can be prompted using both the Alpaca and Pygmalion formatting.
Alpaca formatting:
### Instruction:
<prompt>
### Response:
<leave a newline blank for model to respond>
Pygmalion/Metharme formatting:
<|system|>Enter RP mode. Pretend to be {{char}} whose persona follows:
{{persona}}
You shall reply to the user while staying in character, and generate long responses.
<|user|>Hello!<|model|>{model's response goes here}
The model has been trained on prompts using three different roles, which are denoted by the following tokens: <|system|>, <|user|> and <|model|>.
The <|system|> prompt can be used to inject out-of-channel information behind the scenes, while the <|user|> prompt should be used to indicate user input.
The <|model|> token should then be used to indicate that the model should generate a response. These tokens can happen multiple times and be chained up to
form a conversation history.
The intended use-case for this model is fictional writing for entertainment purposes. Any other sort of usage is out of scope.
As such, it was not fine-tuned to be safe and harmless: the base model and this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.
We would like to thank SpicyChat for sponsoring the training for the Pygmalion-2 13B model.
<!-- original-model-card end -->