Instructions to use TheDrummer/Behemoth-123B-v2.2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TheDrummer/Behemoth-123B-v2.2-GGUF", filename="Behemoth-123B-v2f-BF16-00001-of-00006.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with Ollama:
ollama run hf.co/TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
- Unsloth Studio
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheDrummer/Behemoth-123B-v2.2-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheDrummer/Behemoth-123B-v2.2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheDrummer/Behemoth-123B-v2.2-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with Docker Model Runner:
docker model run hf.co/TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
- Lemonade
How to use TheDrummer/Behemoth-123B-v2.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheDrummer/Behemoth-123B-v2.2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Behemoth-123B-v2.2-GGUF-Q4_K_M
List all available models
lemonade list
How do I combine the file parts?
Hey, I tried to combine "Behemoth-123B-v2f-Q4_K_M-00001-of-00002.gguf" and "Behemoth-123B-v2f-Q4_K_M-00002-of-00002.gguf" by using the following commands:
cat Behemoth-123B-v2f-Q4_K_M-00001-of-00002.gguf Behemoth-123B-v2f-Q4_K_M-00002-of-00002.gguf > Behemoth-123B-v2f-Q4_K_M.gguf
But it returns the following error when I try loading Behemoth-123B-v2f-Q4_K_M.gguf
Traceback (most recent call last):
File "/workspace/text-generation-webui/modules/ui_model_menu.py", line 232, in load_model_wrapper
shared.model, shared.tokenizer = load_model(selected_model, loader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/text-generation-webui/modules/models.py", line 93, in load_model
output = load_func_map[loader](model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/text-generation-webui/modules/models.py", line 278, in llamacpp_loader
model, tokenizer = LlamaCppModel.from_pretrained(model_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/text-generation-webui/modules/llamacpp_model.py", line 85, in from_pretrained
result.model = Llama(**params)
^^^^^^^^^^^^^^^
File "/workspace/text-generation-webui/installer_files/env/lib/python3.11/site-packages/llama_cpp_cuda/llama.py", line 372, in init
_LlamaModel(
File "/workspace/text-generation-webui/installer_files/env/lib/python3.11/site-packages/llama_cpp_cuda/_internals.py", line 55, in init
raise ValueError(f"Failed to load model from file: {path_model}")
ValueError: Failed to load model from file: models/Behemoth-123B-v2f-Q4_K_M.gguf
I assumed that I needed to follow the instructions here to join the files together. I am using oobabooga/text-generation-webui on runpod.
Point koboldcpp at the first part with part 2 in the same dir.
On Runpod there is a behemoth specific template which will get you completely setup automatically.
Thanks, but is there a solution for text-generation-webui?