Downloads · 30 days
21
49% of all-time downloads
MatteoKhan/Qwen1.5-DeepSeek-Merge
Qwen1.5-DeepSeek-Merge is a machine learning model from MatteoKhan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
license: mit language: - en basemodel: - Qwen/Qwen1.5-1.8B - deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B libraryname: transformers tags: - mergekit - merged-model - qwen - deepseek - language-model ---
Downloads · 30 days
21
49% of all-time downloads
All-time downloads
43
Public
Parameters
1.8B
3.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.7 GB · 100%
From the Hugging Face model README
license: mit language:
Qwen1.5-DeepSeek-Merge is an experimental hybrid model merging the capabilities of Qwen/Qwen1.5-1.8B and DeepSeek-R1-Distill-Qwen-1.5B using the Linear Merge method via MergeKit. This fusion aims to capture the strengths of both models—balancing linguistic nuance with distilled performance.
🔗 Created by: [Matteo Khan]
🎓 Affiliation: Apprentice at TW3 Partners (Generative AI Research)
📍 License: MIT
🔗 Connect on LinkedIn
🔗 Model on Hugging Face
This model is primarily intended for research and experimentation in language model merging. Potential applications include:
While this model may exhibit improved behavior in some cases, it also inherits limitations from its parent models:
This model is a merge, not a newly fine-tuned one. Below is the exact configuration used:
hf_repo_name = "MatteoKhan/Qwen1.5-DeepSeek-Merge"
config = {
"merge_method": "linear",
"dtype": torch.bfloat16,
"models": [
{
"model": "Qwen/Qwen1.5-1.8B",
"parameters": {
"weight": 0.5
}
},
{
"model": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
"parameters": {
"weight": 0.5
}
}
],
"parameters": {
"normalize": True
},
"layers": [
{"pattern": "model."}
]
}
📊 No formal benchmark yet—community testing is welcome!
🌱 Environmental Impact
By merging pre-trained models instead of training from scratch, this approach saves substantial compute and reduces carbon emissions.
🚀 How to Use
python
Copier
Modifier
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "MatteoKhan/Qwen1.5-DeepSeek-Merge"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto")
prompt = "What are the implications of quantum computing on AI?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
📬 Questions or feedback? Contact via Hugging Face or LinkedIn