Skip to content

Add deepseek support #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add deepseek support #258

wants to merge 9 commits into from

Conversation

hello-cpaxton
Copy link
Collaborator

@hello-cpaxton hello-cpaxton commented Feb 22, 2025

Description

Adds deepseek as a model option under qwen. Example usage:

python -m stretch.app.chat --llm qwen25-Math-7B-Int4
python -m stretch.app.chat --llm qwen25-0.5B-AWQ
python -m stretch.app.chat --llm qwen25-Coder-7B
python -m stretch.app.chat --llm qwen25-Deepseek-1.5B

Something such as

python -m stretch.app.chat --llm qwen25-Deepseek-3B

should raise error as this is a non existing weight configuration

Note that Deepseek fine tunes aren't all avaialble (i.e., there doesn't seem to be a 3b). So I added bitsandbytes support for quantization, and you can now run Qwen 7b or 14b on ~5 or ~10 gb of vram:

python -m pip install bitsandbytes qwen_vl_utils autoawq transformers>=4.49.0

Checklist

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests
  • I have added documentation for the changes
  • I have updated the README file if necessary
  • I have run on hardware if necessary

Screenshots (if applicable)

Add any relevant screenshots or screen recordings to help reviewers understand the changes.

Additional context

Add any other context or information about the pull request here.

@hello-cpaxton hello-cpaxton self-assigned this Feb 22, 2025
Copy link
Contributor

@hello-peiqi hello-peiqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my search, DeepkSeek R1 only distills Qwen of size 32B, 14B, 7B, and 1.5B

Copy link
Contributor

@hello-peiqi hello-peiqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Coder: 32B, 14B, 7B, 3B, 1.5B, 0.5B, (None, Instruct, Instruct-AWQ, Instruct-GGUF, Instruct-GPTQ-Int4, Instruct-GPTQ-Int8)
  • Math: 72B, 7B, 1.5B (None, Instruct)
  • VL: 72B, 7B, 3B (Instruct, Instruct-AWQ)
  • None: "0.5B", "1.5B", "3B", "7B", "14B", "32B", "72B" (None, Instruct, Instruct-AWQ, Instruct-GGUF, Instruct-GPTQ-Int4, Instruct-GPTQ-Int8)
  • Deepseek: 1.5B, 7B, 14B, 32B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants