CoolFace
Modelpublic

ZeroXClem/Qwen2.5-7B-DistilPrism

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes17downloads
Model Card

ZeroXClem/Qwen2.5-7B-DistilPrism

Qwen2.5-7B-DistilPrism is a distillation / reasoning focused model merge designed to combine multiple variations of DeepSeek-R1 distillations, resulting in a refined, high-performance language model. Utilizing the Model Stock merge method, this fusion captures the best attributes of DeepSeek-R1-Distill-Qwen-7B and its improved derivatives.

๐Ÿš€ Merged Models

This model is a weighted merge of the following:

๐Ÿงฉ Merge Configuration

The following YAML configuration defines how these models were combined using Model Stock, ensuring balanced contributions from each source:

yaml
# Merge configuration for ZeroXClem/Qwen2.5-7B-DistilPrism using Model Stock
name: ZeroXClem-Qwen2.5-7B-DistilPrism
merge_method: model_stock
base_model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
tokenizer_source: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
dtype: bfloat16
parameters:
  normalize: true
  rescale: true
models:
  - model: huihui-ai/DeepSeek-R1-Distill-Qwen-7B-abliterated-v2
    parameters:
      weight: 0.3
  - model: mobiuslabsgmbh/DeepSeek-R1-ReDistill-Qwen-7B-v1.1
    parameters:
      weight: 0.25
  - model: Triangle104/DSR1-Distill-Qwen-7B-RP
    parameters:
      weight: 0.2
  - model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
    parameters:
      weight: 0.25

๐Ÿ”‘ Key Parameters

  • โ€”Normalization & Rescaling: Ensures weight distributions remain balanced across all components.
  • โ€”Model Stock Merge Method: Optimizes contribution from each model to retain the best attributes.
  • โ€”Weighted Blending: The abliterated and re-distilled models contribute the most, refining both alignment and general usability.

๐Ÿ—ฃ๏ธ Inference

You can use the model for text generation as follows:

Ollama

[Quickstart to Ollama Guide Here](https://aidev.zeroxclem.com/blog/08-setting-up-ollama) I recommend ollama for daily driver applications, as it supports thinkking tags.

bash
ollama run hf.co/ZeroXClem/Qwen2.5-7B-DistilPrism

# If you are using quants, just copy the url and replace 'huggingface.co/' with 'hf.co/' followed by name of quant. 

Transformers

python
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
import torch

# Define the model name
model_name = "ZeroXClem/Qwen2.5-7B-DistilPrism"

# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Load the model
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Initialize the pipeline
text_generator = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Define the input prompt
prompt = "Explain the significance of artificial intelligence in modern healthcare."

# Generate the output
outputs = text_generator(
    prompt,
    max_new_tokens=150,
    do_sample=True,
    temperature=0.7,
    top_k=50,
    top_p=0.95
)

# Print the generated text
print(outputs[0]["generated_text"])

๐ŸŽฏ Use Case & Applications

Qwen2.5-7B-DistilPrism is designed for efficient, high-quality text generation with strong reasoning capabilities. It is well-suited for:

  • โ€”Advanced Reasoning & Problem Solving: Excels in logic-heavy tasks and multi-step reasoning problems.
  • โ€”Conversational AI: Optimized for fluid, responsive dialogue, reducing refusals and improving engagement.
  • โ€”Mathematical & Scientific Computation: Enhanced math & code generation abilities compared to standard distillations.
  • โ€”Content Creation & Summarization: Generates coherent and contextually rich text suitable for various applications.

๐Ÿ“œ License

This model is released under the MIT License.


๐Ÿ“Š Benchmark Results (Coming Soon)

We are currently in the process of quantizing and benchmarking this model. Stay tuned for performance updates across:

  • โ€”IFEval (0-Shot)
  • โ€”BBH (3-Shot)
  • โ€”MATH (4-Shot)
  • โ€”GPQA (0-Shot)
  • โ€”MuSR (0-Shot)
  • โ€”MMLU-PRO (5-Shot)

๐Ÿ’ก Tags

  • โ€”merge
  • โ€”mergekit
  • โ€”model_stock
  • โ€”DeepSeek-R1
  • โ€”Distillation
  • โ€”abliterated
  • โ€”re-distilled
  • โ€”DeepSeek-R1-Distill-Qwen-7B

๐Ÿ™ Special Thanks

This project wouldn't be possible without the incredible contributions from:

  • โ€”[@huihui-ai](https://huggingface.co/huihui-ai) โ€“ For developing DeepSeek-R1-Distill-Qwen-7B-abliterated-v2, a bold step towards improving model alignment.
  • โ€”[@mobiuslabsgmbh](https://huggingface.co/mobiuslabsgmbh) โ€“ For refining distillation techniques with DeepSeek-R1-ReDistill-Qwen-7B-v1.1.
  • โ€”[@Triangle104](https://huggingface.co/Triangle104) โ€“ For crafting innovative merges like DSR1-Distill-Qwen-7B-RP, an essential component in this blend.
  • โ€”[@deepseek-ai](https://huggingface.co/deepseek-ai) โ€“ For open-sourcing DeepSeek-R1-Distill-Qwen-7B, a foundation for reasoning advancements.

And a heartfelt thank you to everyone in the ๐Ÿค— & Open-Source AI community for their continued research, testing, and support. ๐Ÿ’œ๐Ÿš€


๐Ÿ”— Additional Resources