FuseChat: Knowledge Fusion of Chat Models
Paper • 2408.07990 • Published • 15
How to use win10/miscii-14b-1M-0128 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="win10/miscii-14b-1M-0128")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("win10/miscii-14b-1M-0128")
model = AutoModelForCausalLM.from_pretrained("win10/miscii-14b-1M-0128", 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 win10/miscii-14b-1M-0128 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "win10/miscii-14b-1M-0128"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "win10/miscii-14b-1M-0128",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/win10/miscii-14b-1M-0128
How to use win10/miscii-14b-1M-0128 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "win10/miscii-14b-1M-0128" \
--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": "win10/miscii-14b-1M-0128",
"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 "win10/miscii-14b-1M-0128" \
--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": "win10/miscii-14b-1M-0128",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use win10/miscii-14b-1M-0128 with Docker Model Runner:
docker model run hf.co/win10/miscii-14b-1M-0128
This model was merged using the SCE merge method using sthenno-com/miscii-14b-1225 as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
merge_method: sce
models:
- model: sthenno/tempesthenno-nuslerp-0124
- model: huihui-ai/Qwen2.5-14B-Instruct-1M-abliterated
- model: sthenno/tempesthenno-0126-ckpt150
- model: huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated
- model: SicariusSicariiStuff/Impish_QWEN_14B-1M
- model: ToastyPigeon/Qwen2.5-14B-Instruct-1M-Unalign
base_model: sthenno-com/miscii-14b-1225
parameters:
select_topk: 1.0
dtype: bfloat16
normalize: true
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 34.08 |
| IFEval (0-Shot) | 41.81 |
| BBH (3-Shot) | 37.27 |
| MATH Lvl 5 (4-Shot) | 40.18 |
| GPQA (0-shot) | 17.67 |
| MuSR (0-shot) | 28.75 |
| MMLU-PRO (5-shot) | 38.79 |