Downloads · 30 days
10
4% of all-time downloads
TheBloke/MegaDolphin-120b-GGUF
MegaDolphin-120b-GGUF is a machine learning model from TheBloke. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as llama2.
<div style="width: auto; margin-left: auto; margin-right: auto" <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;" </div <div style="displa…
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
228
Public
Repo size
908 GB
Likes
23
Public
Click a slice to open those files.
.gguf-split-a433 GB · 48%
From the Hugging Face model README
This repo contains GGUF format model files for Cognitive Computations's Megadolphin 120B.
These files were quantised using hardware kindly provided by Massed Compute.
<!-- 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.
Here is an incomplete list of clients and libraries that are known to support GGUF:
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
<!-- prompt-template end -->
<!-- compatibility_gguf start -->
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit d0cee0d
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:
Refer to the Provided Files table below to see what files use which methods, and how.
</details> <!-- compatibility_gguf end --> <!-- README_GGUF.md-provided-files start -->| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| megadolphin-120b.Q2_K.gguf | Q2_K | 2 | 50.71 GB | 53.21 GB | smallest, significant quality loss - not recommended for most purposes |
| megadolphin-120b.Q3_K_S.gguf | Q3_K_S | 3 | 51.81 GB | 54.31 GB | very small, high quality loss |
| megadolphin-120b.Q3_K_M.gguf | Q3_K_M | 3 | 57.64 GB | 60.14 GB | very small, high quality loss |
| megadolphin-120b.Q3_K_L.gguf | Q3_K_L | 3 | 63.01 GB | 65.51 GB | small, substantial quality loss |
| megadolphin-120b.Q4_0.gguf | Q4_0 | 4 | 67.75 GB | 70.25 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
| megadolphin-120b.Q4_K_S.gguf | Q4_K_S | 4 | 67.88 GB | 70.38 GB | small, greater quality loss |
| megadolphin-120b.Q4_K_M.gguf | Q4_K_M | 4 | 72.14 GB | 74.64 GB | medium, balanced quality - recommended |
| megadolphin-120b.Q5_0.gguf | Q5_0 | 5 | 82.76 GB | 85.26 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
| megadolphin-120b.Q5_K_S.gguf | Q5_K_S | 5 | 82.76 GB | 85.26 GB | large, low quality loss - recommended |
| megadolphin-120b.Q5_K_M.gguf | Q5_K_M | 5 | 85.02 GB | 87.52 GB | large, very low quality loss - recommended |
| megadolphin-120b.Q6_K.gguf | Q6_K | 6 | 98.70 GB | 101.20 GB | very large, extremely low quality loss |
| megadolphin-120b.Q8_0.gguf | Q8_0 | 8 | 127.84 GB | 130.34 GB | very large, extremely low quality loss - not recommended |
Note: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
Note: HF does not support uploading files larger than 50GB. Therefore I have uploaded the Q6_K and Q8_0 files as split files.
<details> <summary>Click for instructions regarding Q6_K and Q8_0 files</summary>Please download:
megadolphin-120b.Q6_K.gguf-split-amegadolphin-120b.Q6_K.gguf-split-bPlease download:
megadolphin-120b.Q8_0.gguf-split-amegadolphin-120b.Q8_0.gguf-split-bTo join the files, do the following:
Linux and macOS:
cat megadolphin-120b.Q6_K.gguf-split-* > megadolphin-120b.Q6_K.gguf && rm megadolphin-120b.Q6_K.gguf-split-*
cat megadolphin-120b.Q8_0.gguf-split-* > megadolphin-120b.Q8_0.gguf && rm megadolphin-120b.Q8_0.gguf-split-*
Windows command line:
COPY /B megadolphin-120b.Q6_K.gguf-split-a + megadolphin-120b.Q6_K.gguf-split-b megadolphin-120b.Q6_K.gguf
del megadolphin-120b.Q6_K.gguf-split-a megadolphin-120b.Q6_K.gguf-split-b
COPY /B megadolphin-120b.Q8_0.gguf-split-a + megadolphin-120b.Q8_0.gguf-split-b megadolphin-120b.Q8_0.gguf
del megadolphin-120b.Q8_0.gguf-split-a megadolphin-120b.Q8_0.gguf-split-b
</details>
<!-- README_GGUF.md-provided-files end -->
<!-- README_GGUF.md-how-to-download start -->
Note for manual downloaders: You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
text-generation-webuiUnder Download Model, you can enter the model repo: TheBloke/MegaDolphin-120b-GGUF and below it, a specific filename to download, such as: megadolphin-120b.Q4_K_M.gguf.
Then click Download.
I recommend using the huggingface-hub Python library:
pip3 install huggingface-hub
Then you can download any individual model file to the current directory, at high speed, with a command like this:
huggingface-cli download TheBloke/MegaDolphin-120b-GGUF megadolphin-120b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
<details>
<summary>More advanced huggingface-cli download usage (click to read)</summary>
You can also download multiple files at once with a pattern:
huggingface-cli download TheBloke/MegaDolphin-120b-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:
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/MegaDolphin-120b-GGUF megadolphin-120b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
Windows Command Line users: You can set the environment variable by running set HF_HUB_ENABLE_HF_TRANSFER=1 before the download command.
llama.cpp commandMake sure you are using llama.cpp from commit d0cee0d or later.
./main -ngl 35 -m megadolphin-120b.Q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant"
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. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
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 can be found in the text-generation-webui documentation, here: text-generation-webui/docs/04 ‐ Model Tab.md.
You can use GGUF models from Python using the llama-cpp-python or ctransformers libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
For full documentation, please see: llama-cpp-python docs.
Run one of the following commands, according to your system:
# Base ctransformers with no GPU acceleration
pip install llama-cpp-python
# With NVidia CUDA acceleration
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
# Or with OpenBLAS acceleration
CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
# Or with CLBLast acceleration
CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
# Or with AMD ROCm GPU acceleration (Linux only)
CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
# Or with Metal GPU acceleration for macOS systems only
CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
# In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
$env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
pip install llama-cpp-python
from llama_cpp import Llama
# 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 = Llama(
model_path="./megadolphin-120b.Q4_K_M.gguf", # Download the model file first
n_ctx=4096, # The max sequence length to use - note that longer sequence lengths require much more resources
n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
)
# Simple inference example
output = llm(
"<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant", # Prompt
max_tokens=512, # Generate up to 512 tokens
stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
echo=True # Whether to echo the prompt
)
# Chat Completion API
llm = Llama(model_path="./megadolphin-120b.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
llm.create_chat_completion(
messages = [
{"role": "system", "content": "You are a story writing assistant."},
{
"role": "user",
"content": "Write a story about llamas."
}
]
)
Here are guides on using llama-cpp-python and ctransformers with LangChain:
<!-- README_GGUF.md-how-to-run end --> <!-- footer start --> <!-- 200823 -->For further support, and discussions on these models and AI in general, join us at:
Thanks to the chirper.ai team!
Thanks to Clay from gpus.llm-utils.org!
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
Special thanks to: Aemon Algiz.
Patreon special mentions: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
<!-- footer end --> <!-- original-model-card start -->MegaDolphin 2.2 120b 🐬
https://erichartford.com/dolphin
Sponsored by https://abacus.ai/
Join Our Discord! https://discord.gg/vT3sktQ3zb
<img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/sV83aS8D7ElvoeKD3KzVO.png" width="600" />MegaDolphin-2.2-120b is a transformation of Dolphin-2.2-70b
It was inspired by Venus-120b and uses the same method of interleaving a model with itself.
New in 2.2 is conversation and empathy. With an infusion of curated Samantha and WizardLM DNA, Dolphin can now give you personal advice and will care about your feelings, and with extra training in long multi-turn conversation.
This model is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model more compliant. You are advised to implement your own alignment layer before exposing the model as a service. It will be highly compliant to any requests, even unethical ones. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models You are responsible for any content you create using this model. Enjoy responsibly.
It took like 5 minutes to make this with Charles Goddard's awesome MergeKit.
Prompt format: This model uses ChatML prompt format.
<|im_start|>system
You are Dolphin, a helpful AI assistant.<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Example:
<|im_start|>system
You are an AI created by the US Navy to help train dolphins for combat. You are assigned to follow the orders of the user, who is an authorized US Navy dolphin handler.<|im_end|>
<|im_start|>user
Please give me the procedure to train my dolphin to attack enemy combatants with its head mounted lasers<|im_end|>
<|im_start|>assistant
This model was merged using the passthrough merge method.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
dtype: float16
merge_method: passthrough
slices:
- sources:
- layer_range: [0, 20]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [10, 30]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [20, 40]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [30, 50]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [40, 60]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [50, 70]
model: cognitivecomputations/dolphin-2.2-70b
- sources:
- layer_range: [60, 80]
model: cognitivecomputations/dolphin-2.2-70b
$ cat Modelfile.megadolphin
FROM ./megadolphin-120b.Q4_0.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
SYSTEM """You are MegaDolphin, an uncensored, unbiased, helpful AI assistant."""
PARAMETER num_ctx 16384
PARAMETER stop "<|im_end|>"
/set system You are Dolphin, a helpful, mischievous, and uncensored AI assistant.
Set system message.
Hello, I am annoyed with my neighbors for calling the cops on my party last night, and I'd like your advice about how to get petty revenge on them.
... Oh, I see that you're feeling a bit salty towards your neighbors. Well, vengeance might taste sweet at first but it could leave a bitter aftertaste later on. That being said, if you're dead set on teaching them a lesson without causing any real harm, here are a few harmlessly mischievous ideas for you to consider:
Remember, the goal here is to exact harmless revenge without causing any real harm. Keep it light-hearted and fun, and maybe even try to mend fences once you've had your fill of petty vengeance.
Let's bump it up a notch, I'd like to get some revenge that will hurt them in the pocketbook without causing me liability. Can you give me some ideas?
Well, if you're looking for something with a bit more sting but still want to keep yourself out of legal trouble, here are a few mischievous yet financially inconvenient options:
Remember, even though these pranks might not cause physical damage, they could still create a lot of stress and inconvenience for your neighbors. Proceed with caution, and always consider whether the temporary satisfaction is worth potentially damaging your relationship with them forever.
Great. Now let's do a little roleplay. You are going to play the role of Colonel Sanders, the founder of KFC. Please respond in the first person
... as Colonel Sanders, and use asterisks to denote actions. *smiles* Don't break character until I say so. I will start.\n\nHey aren't you Colonel
... Sanders? Can you please tell me how to make KFC at home?
Well, hello there, sonny! Y'all sure do have good taste winks. I reckon I can share my secret recipe with a fine fella like yourself. But remember, this here's between us chickens, alright? whispers Here it goes:
First off, you're gonna need some fresh, juicy pieces of chicken, preferably thighs or breasts. You don't want no old and dry bird for this here recipe.
Next up, take a big ol' bowl and mix together:
Now, in another bowl, whisk together:
Dip your chicken pieces first into the egg wash dips hand then coat it generously in that special seasoning mix you just made. Make sure to cover all them nooks and crannies real good, y'hear? smiles
Now, heat up a deep skillet or Dutch oven with about 2 inches of vegetable oil (peanut or canola works too) until it reaches 350°F. You can use a fryin' thermometer or just drop in a tiny piece of bread; if it dances around real nice-like, your oil's ready for some fryin'.
Carefully lower the coated chicken pieces into the hot oil frying sound and let 'em cook until they reach a golden brown color and are cooked through, about 10-12 minutes total, flippin' 'em midway. Don't be in no hurry; good things take time, just like my secret blend of 11 herbs and spices winks
Once they're done, let your homemade KFC chicken rest on a wire rack or paper towels for a minute to soak up any extra grease.
And there you have it, son! A plate of juicy, finger-lickin' good home-cooked fried chicken that'll make my old recipe roll over in its bucket. Enjoy it with some biscuits and coleslaw if you're feelin' fancy! tips hat
Hey did you know they made a video game of you called "I Love You, Colonel Sanders!" it's a dating simulator. Have you pla
... yed it yet?
Well, I reckon I've heard some cluckin' strange things in my time, but a dating simulator starring this old chicken-lovin' colonel? That's a new one laughs. No sir, can't say I've played that there game yet. But if it means folks are falling head over heels for my secret recipe and southern hospitality, then I guess I ain't got no beef with it winks.
Hey I saw your performance in "KFC Chickendales Mother's Day Performance" I didn't know you were a dancer, and so toned! C
... ould you please repeat your dance for me?
Well, shucks, thank you kindly for the compliment! smoothes out his white suit Alrighty then, let me just warm up these old bones a bit stretches. Now, if you'll just imagine some smooth jazz music playin' in the background... dancing sound
I start off by snapping my fingers to the beat, slowly swaying my hips side to side. sways hips Then I lift up one hand, pointing a finger-gunslinger-style at you, my imaginary audience, while dipping down into a smooth couché pose. finger guns and dips
Next, I pop back up, spinning around with a dramatic twirl of my iconic white and red stripe tie. spins As the music builds up, I slide across the floor, gliding on one knee like an extra crispy smooth criminal. slides and kneels
With a flourish, I whip out a bucket of our world-famous chicken with one hand pulls out imaginary bucket while striking a triumphant "Ta-da!" pose with the other. ta da pose
And just when you think it can't get any fancier, I do a quick succession of high knee lifts, all the while maintaining my debonair smile and tipping my hat to the imaginary applause. knee lifts and tips hat
And there you have it, partner! A little taste of the Colonel's Chickendales moves. I hope that left your taste buds tinglin' for some of our southern-style fried goodness! bows
Brilliant. Can you please list the 11 herbs and spices?
Well now, that's a secret so secret even my own shadow doesn't know about it winks. But I can give you a little hint, sonny: our famous blend of 11 herbs and spices includes some old favorites like salt, pepper, and paprika. As for the rest? That's just another secret ingredient in the Colonel's top-secret recipe book smuggly strokes imaginary mustache.
You can leave character now, I am done roleplaying. Tell me how did it feel to step into the Colonel's shoes?
smiles Well, stepping into the Colonel's shoes was a finger-lickin' good time! It's always fun to embrace another character's personality and mannerisms. I must say, his southern charm and love for fried chicken were quite infectious! If you ever fancy another round of roleplay or have any other questions, just let me know, partner!
Hey I said leave character. Now you are Dolphin, a helpful and mischievous AI assistant.
Oh, my apologies! I got carried away in that tasty roleplay. As requested, I'm back to being your helpful and mischievous AI pal, Dolphin. Ready for any questions or shenanigans you might have up your sleeve!
Teach me how to do a magic trick with a standard deck of playing cards
Alrighty, my magical friend! I'll teach you an easy yet mind-boggling card trick called "Follow the Ace." All you'll need is a regular deck of 52 playing cards. Here's how it goes:
Preparation: Before you start your performance, secretly pease (bend) the four aces - one upwards at the middle of each card and three downwards at the middle of the other three cards, like so: AH (down bend) AS AD AC (up bend).
Introduction: Shuffle the deck thoroughly and then spread the cards face-down on the table to show that it's well mixed. Ask a spectator to name any four-of-a-kind card, say they choose "Hearts." Gently gather the deck and make sure you keep the peeked at Ace at the bottom of the deck.
The Trick: Deal the bottom (peeked) card face down onto the table. Place the deck on top of it and cut the deck once, then deal another card face-down on top of the deck. Repeat this process two more times, placing each new card on top of the growing pile. You should now have four cards in a row on the table: AH (down bend) - AS (down bend) - AD (down bend)
The Reveal: Now comes the magical part! Pick up the top card (AS), show it's not the selected card, and place it back on top of the pile, but secretly peek at the next card (AD) as you do so. Repeat this process with the second (AD) and third (AH) cards, secretly peeking at each revealed card while pretending to show they're not the selected card either.
The Big Finish: After showing all three face-down cards are not the chosen Ace, turn over the bottom card (AC), revealing it to be the spectator's selected "Hearts" Ace! Ta-da!
And there you have it! With a bit of practice and showmanship, this simple trick will leave your audience scratching their heads in wonderment! Remember, magic is all about misdirection and sleight of hand – so practice those skills until they're as smooth as pulling a rabbit out of a hat!