Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch
Paper • 2311.03099 • Published • 33
How to use ChaoticNeutrals/Cookie_7B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ChaoticNeutrals/Cookie_7B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ChaoticNeutrals/Cookie_7B")
model = AutoModelForCausalLM.from_pretrained("ChaoticNeutrals/Cookie_7B")How to use ChaoticNeutrals/Cookie_7B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ChaoticNeutrals/Cookie_7B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ChaoticNeutrals/Cookie_7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ChaoticNeutrals/Cookie_7B
How to use ChaoticNeutrals/Cookie_7B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ChaoticNeutrals/Cookie_7B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ChaoticNeutrals/Cookie_7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "ChaoticNeutrals/Cookie_7B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ChaoticNeutrals/Cookie_7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ChaoticNeutrals/Cookie_7B with Docker Model Runner:
docker model run hf.co/ChaoticNeutrals/Cookie_7B
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ChaoticNeutrals/Cookie_7B")
model = AutoModelForCausalLM.from_pretrained("ChaoticNeutrals/Cookie_7B")A reasonably logical model with a few datasets thrown in to increase RP abilities. This is a good candidate for a balanced 7B model that can provide assistant functionality alongside roleplaying or romantic endeavors.
This is a merge of pre-trained language models created using mergekit.
This model was merged using the DARE TIES merge method using jeiku/SpaghettiOs_7B as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
merge_method: dare_ties
base_model: jeiku/SpaghettiOs_7B
parameters:
normalize: true
models:
- model: jeiku/SpaghettiOs_7B
parameters:
weight: 1
- model: jeiku/Rainbow_69_7B
parameters:
weight: 1
dtype: float16
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 71.87 |
| AI2 Reasoning Challenge (25-Shot) | 69.71 |
| HellaSwag (10-Shot) | 87.57 |
| MMLU (5-Shot) | 64.51 |
| TruthfulQA (0-shot) | 66.88 |
| Winogrande (5-shot) | 81.37 |
| GSM8k (5-shot) | 61.18 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ChaoticNeutrals/Cookie_7B")