Dare LLM Merges
Collection
These are large language models merged through my implementation of Super Mario DARE merge. • 10 items • Updated • 2
How to use martyn/codellama-megamerge-dare-34b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="martyn/codellama-megamerge-dare-34b") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("martyn/codellama-megamerge-dare-34b")
model = AutoModelForCausalLM.from_pretrained("martyn/codellama-megamerge-dare-34b")How to use martyn/codellama-megamerge-dare-34b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "martyn/codellama-megamerge-dare-34b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "martyn/codellama-megamerge-dare-34b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/martyn/codellama-megamerge-dare-34b
How to use martyn/codellama-megamerge-dare-34b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "martyn/codellama-megamerge-dare-34b" \
--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": "martyn/codellama-megamerge-dare-34b",
"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 "martyn/codellama-megamerge-dare-34b" \
--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": "martyn/codellama-megamerge-dare-34b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use martyn/codellama-megamerge-dare-34b with Docker Model Runner:
docker model run hf.co/martyn/codellama-megamerge-dare-34b
The following were merged with DARE using https://github.com/martyn/safetensors-merge-supermario
codellama/CodeLlama-34b-hf
codellama/CodeLlama-34b-Instruct-hf
allenai/codetulu-2-34b
Phind/Phind-CodeLlama-34B-v1
Phind/Phind-CodeLlama-34B-Python-v1
uukuguy/speechless-codellama-34b-v2.0
codellama/CodeLlama-34b-Python-hf
Phind/Phind-CodeLlama-34B-v2
These models failed to merge:
pharaouk/unnatural_codellama_34B
codefuse-ai/CodeFuse-CodeLlama-34B
XAgentTeam/XAgentLLaMa-34B-preview
python3 hf_merge.py codellama.txt codellama -p 0.16 -lambda 2