Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch
Paper • 2311.03099 • Published • 33
# Install SGLang from pip:
pip install sglang# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "utdanningno/noredu-llama3.1-it2" \
--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": "utdanningno/noredu-llama3.1-it2",
"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 "utdanningno/noredu-llama3.1-it2" \
--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": "utdanningno/noredu-llama3.1-it2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'This is a merge of pre-trained language models created using mergekit.
This model was merged using the DARE TIES merge method using meta-llama/Meta-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:
models:
- model: MagnusSa/Llama-3.1-8B-UtdanningSNL-Instruct
parameters:
density: 0.53
weight: 0.4
- model: meta-llama/Meta-Llama-3.1-8B-Instruct
parameters:
density: 0.53
weight: 0.4
- model: meta-llama/Meta-Llama-3.1-8B
parameters:
density: 0.53
weight: 0.2
merge_method: dare_ties
base_model: meta-llama/Meta-Llama-3.1-8B
parameters:
normalize: true
int8_mask: true
dtype: float16
# Gated model: Login with a HF token with gated access permission hf auth login