Editing Models with Task Arithmetic
Paper • 2212.04089 • Published • 8
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TheBigBlender/LemonadeRP-4.5.3-GGUF", filename="LemonadeRP-4.5.3.F16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
# 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 TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
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 TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
docker model run hf.co/TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with Ollama:
ollama run hf.co/TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with Unsloth Studio:
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 TheBigBlender/LemonadeRP-4.5.3-GGUF to start chatting
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 TheBigBlender/LemonadeRP-4.5.3-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheBigBlender/LemonadeRP-4.5.3-GGUF to start chatting
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with Docker Model Runner:
docker model run hf.co/TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
How to use TheBigBlender/LemonadeRP-4.5.3-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBigBlender/LemonadeRP-4.5.3-GGUF:Q4_K_M
lemonade run user.LemonadeRP-4.5.3-GGUF-Q4_K_M
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)This is a merge of pre-trained language models created by KatyTheCutie
This model was merged using the task arithmetic merge method using mistralai/Mistral-7B-v0.1 as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
base_model: mistralai/Mistral-7B-v0.1
dtype: float16
merge_method: task_arithmetic
slices:
- sources:
- layer_range: [0, 32]
model: mistralai/Mistral-7B-v0.1
- layer_range: [0, 32]
model: NeverSleep/Noromaid-7B-0.4-DPO
parameters:
weight: 0.37
- layer_range: [0, 32]
model: cgato/Thespis-CurtainCall-7b-v0.2.2
parameters:
weight: 0.32
- layer_range: [0, 32]
model: NurtureAI/neural-chat-7b-v3-1-16k
parameters:
weight: 0.15
- layer_range: [0, 32]
model: cgato/Thespis-7b-v0.5-SFTTest-2Epoch
parameters:
weight: 0.38
- layer_range: [0, 32]
model: tavtav/eros-7b-test
parameters:
weight: 0.18
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TheBigBlender/LemonadeRP-4.5.3-GGUF", filename="", )