Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch
Paper • 2311.03099 • Published • 36
How to use lik07/Stheno-TheSpice-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="lik07/Stheno-TheSpice-v1")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("lik07/Stheno-TheSpice-v1")
model = AutoModelForCausalLM.from_pretrained("lik07/Stheno-TheSpice-v1", device_map="auto")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use lik07/Stheno-TheSpice-v1 with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf lik07/Stheno-TheSpice-v1:BF16 # Run inference directly in the terminal: llama cli -hf lik07/Stheno-TheSpice-v1:BF16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lik07/Stheno-TheSpice-v1:BF16 # Run inference directly in the terminal: llama cli -hf lik07/Stheno-TheSpice-v1:BF16
# 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 lik07/Stheno-TheSpice-v1:BF16 # Run inference directly in the terminal: ./llama-cli -hf lik07/Stheno-TheSpice-v1:BF16
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 lik07/Stheno-TheSpice-v1:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf lik07/Stheno-TheSpice-v1:BF16
docker model run hf.co/lik07/Stheno-TheSpice-v1:BF16
How to use lik07/Stheno-TheSpice-v1 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "lik07/Stheno-TheSpice-v1"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lik07/Stheno-TheSpice-v1",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/lik07/Stheno-TheSpice-v1:BF16
How to use lik07/Stheno-TheSpice-v1 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "lik07/Stheno-TheSpice-v1" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lik07/Stheno-TheSpice-v1",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "lik07/Stheno-TheSpice-v1" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lik07/Stheno-TheSpice-v1",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use lik07/Stheno-TheSpice-v1 with Ollama:
ollama run hf.co/lik07/Stheno-TheSpice-v1:BF16
How to use lik07/Stheno-TheSpice-v1 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 lik07/Stheno-TheSpice-v1 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 lik07/Stheno-TheSpice-v1 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lik07/Stheno-TheSpice-v1 to start chatting
How to use lik07/Stheno-TheSpice-v1 with Docker Model Runner:
docker model run hf.co/lik07/Stheno-TheSpice-v1:BF16
How to use lik07/Stheno-TheSpice-v1 with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lik07/Stheno-TheSpice-v1:BF16
lemonade run user.Stheno-TheSpice-v1-BF16
lemonade list
This is a merge of pre-trained language models created using mergekit.
This model was merged using the DARE TIES merge method using Sao10K/L3-8B-Stheno-v3.2 as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: Sao10K/L3-8B-Stheno-v3.2
parameters:
density: 0.5
weight: 1.0
- model: cgato/L3-TheSpice-8b-v0.8.3
parameters:
density: 0.5
weight: 1.0
merge_method: dare_ties
tokenizer_source: base
base_model: Sao10K/L3-8B-Stheno-v3.2
parameters:
int8_mask: true
dtype: bfloat16