Model Stock: All we need is just a few fine-tuned models
Paper • 2403.19522 • Published • 15
How to use mergekit-community/L3.1-Athena-k-8B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="mergekit-community/L3.1-Athena-k-8B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mergekit-community/L3.1-Athena-k-8B")
model = AutoModelForCausalLM.from_pretrained("mergekit-community/L3.1-Athena-k-8B")How to use mergekit-community/L3.1-Athena-k-8B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "mergekit-community/L3.1-Athena-k-8B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mergekit-community/L3.1-Athena-k-8B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/mergekit-community/L3.1-Athena-k-8B
How to use mergekit-community/L3.1-Athena-k-8B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "mergekit-community/L3.1-Athena-k-8B" \
--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": "mergekit-community/L3.1-Athena-k-8B",
"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 "mergekit-community/L3.1-Athena-k-8B" \
--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": "mergekit-community/L3.1-Athena-k-8B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use mergekit-community/L3.1-Athena-k-8B with Docker Model Runner:
docker model run hf.co/mergekit-community/L3.1-Athena-k-8B
This is a merge of pre-trained language models created using mergekit.
This model was merged using the Model Stock merge method using meta-llama/Llama-3.1-8B as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
out_dtype: bfloat16
merge_method: model_stock
base_model: meta-llama/Llama-3.1-8B
models:
- model: AtlaAI/Selene-1-Mini-Llama-3.1-8B
- model: DavidAU/L3.1-Dark-Planet-SpinFire-Uncensored-8B
- model: DavidAU/L3.1-RP-Hero-BigTalker-8B
- model: kromeurus/L3.1-Clouded-Uchtave-v0.1-8B
- model: MathGenie/MathCoder2-Llama-3-8B
- model: mergekit-community/L3.1-Athena-d-8B
- model: mergekit-community/L3.1-Athena-j-8B
- model: meta-llama/Llama-3.1-8B-Instruct
- model: normster/RealGuardrails-Llama3.1-8B-SFT
- model: nothingiisreal/L3.1-8B-Celeste-V1.5
- model: NousResearch/DeepHermes-3-Llama-3-8B-Preview
- model: Skywork/Skywork-o1-Open-Llama-3.1-8B
- model: Skywork/Skywork-Critic-Llama-3.1-8B