Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch
Paper • 2311.03099 • Published • 33
How to use JDBMG/Herdolphy-q8.gguf with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("JDBMG/Herdolphy-q8.gguf", dtype="auto")How to use JDBMG/Herdolphy-q8.gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="JDBMG/Herdolphy-q8.gguf", filename="Herdolphy-q8.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use JDBMG/Herdolphy-q8.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 JDBMG/Herdolphy-q8.gguf # Run inference directly in the terminal: llama cli -hf JDBMG/Herdolphy-q8.gguf
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf JDBMG/Herdolphy-q8.gguf # Run inference directly in the terminal: llama cli -hf JDBMG/Herdolphy-q8.gguf
# 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 JDBMG/Herdolphy-q8.gguf # Run inference directly in the terminal: ./llama-cli -hf JDBMG/Herdolphy-q8.gguf
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 JDBMG/Herdolphy-q8.gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf JDBMG/Herdolphy-q8.gguf
docker model run hf.co/JDBMG/Herdolphy-q8.gguf
How to use JDBMG/Herdolphy-q8.gguf with Ollama:
ollama run hf.co/JDBMG/Herdolphy-q8.gguf
How to use JDBMG/Herdolphy-q8.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 JDBMG/Herdolphy-q8.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 JDBMG/Herdolphy-q8.gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for JDBMG/Herdolphy-q8.gguf to start chatting
How to use JDBMG/Herdolphy-q8.gguf with Docker Model Runner:
docker model run hf.co/JDBMG/Herdolphy-q8.gguf
How to use JDBMG/Herdolphy-q8.gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull JDBMG/Herdolphy-q8.gguf
lemonade run user.Herdolphy-q8.gguf-{{QUANT_TAG}}lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)This is a quantitized merge of pre-trained language models created using mergekit.
This model was merged using the DARE TIES 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:
models:
- model: cognitivecomputations/dolphin-2.2.1-mistral-7b
parameters:
density: [1, 0.7, 0.1] # density gradient
weight: 1.0
- model: HuggingFaceH4/zephyr-7b-beta
parameters:
density: 0.5
weight: [0, 0.3, 0.7, 1] # weight gradient
- model: NousResearch/Hermes-2-Pro-Mistral-7B
parameters:
density: 0.33
weight:
- filter: mlp
value: 0.5
- value: 0
merge_method: dare_ties
base_model: mistralai/Mistral-7B-v0.1
parameters:
normalize: true
int8_mask: true
dtype: float16
We're not able to determine the quantization variants.
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="JDBMG/Herdolphy-q8.gguf", filename="Herdolphy-q8.gguf", )