FuseChat: Knowledge Fusion of Chat Models
Paper • 2408.07990 • Published • 15
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="TareksLab/Ruby-SCE-V1-70B")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages)# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("TareksLab/Ruby-SCE-V1-70B")
model = AutoModelForCausalLM.from_pretrained("TareksLab/Ruby-SCE-V1-70B")
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]:]))This is a merge of pre-trained language models created using mergekit.
This model was merged using the SCE merge method using SicariusSicariiStuff/Negative_LLAMA_70B as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: TheDrummer/Fallen-Llama-3.3-R1-70B-v1
parameters:
select_topk: 0.5
- model: ReadyArt/Forgotten-Safeword-70B-v5.0
parameters:
select_topk: 0.5
- model: allura-org/Bigger-Body-70b
parameters:
select_topk: 0.5
- model: LatitudeGames/Wayfarer-Large-70B-Llama-3.3
parameters:
select_topk: 0.5
- model: SicariusSicariiStuff/Negative_LLAMA_70B
parameters:
select_topk: 0.5
base_model: SicariusSicariiStuff/Negative_LLAMA_70B
merge_method: sce
parameters:
normalize: false
int8_mask: true
dtype: float32
out_dtype: bfloat16
chat_template: llama3
tokenizer:
source: SicariusSicariiStuff/Negative_LLAMA_70B
pad_to_multiple_of: 8
# Gated model: Login with a HF token with gated access permission hf auth login