[PR #76] fix: Remove print pollution and relax torch version constraint #76

Open
opened 2026-10-26 21:09:24 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepSeek-VL/pull/76
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open

Base: main ← Head: fix/remove-print-add-version


📝 Commits (1)

  • f71284d fix: Remove print pollution and relax torch version constraint

📊 Changes

2 files changed (+5 additions, -4 deletions)

View changed files

📝 deepseek_vl/__init__.py (+4 -3)
📝 requirements.txt (+1 -1)

📄 Description

Summary

  • Removes unconditional print() statement that pollutes stdout
  • Adds __version__ = "1.0.0" for version tracking
  • Relaxes torch version from ==2.0.1 to >=2.0.1

Problem

When importing deepseek_vl, this message is printed to stdout:

Python version is above 3.10, patching the collections module.

This can interfere with:

  • Output parsing in scripts
  • Logging systems
  • Jupyter notebook outputs
  • Any application that expects clean stdout

Additionally, the torch==2.0.1 pin in requirements.txt prevents users from using newer PyTorch versions, even though the pyproject.toml correctly uses torch>=2.0.1.

Changes

deepseek_vl/__init__.py

  • Removed the print() statement
  • Added __version__ = "1.0.0"
  • Improved the comment explaining the compatibility patch

requirements.txt

  • Changed torch==2.0.1 to torch>=2.0.1 to match pyproject.toml

Test plan

  • Verify Python syntax is valid
  • Verify import works without stdout pollution
  • Verify package works with newer PyTorch versions

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepSeek-VL/pull/76 **Author:** [@yurekami](https://github.com/yurekami) **Created:** 12/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/remove-print-add-version` --- ### 📝 Commits (1) - [`f71284d`](https://github.com/deepseek-ai/DeepSeek-VL/commit/f71284d653daa6ef45d186abb5438018f6ce61f7) fix: Remove print pollution and relax torch version constraint ### 📊 Changes **2 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `deepseek_vl/__init__.py` (+4 -3) 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description ## Summary - Removes unconditional `print()` statement that pollutes stdout - Adds `__version__ = "1.0.0"` for version tracking - Relaxes torch version from `==2.0.1` to `>=2.0.1` ## Problem When importing `deepseek_vl`, this message is printed to stdout: ``` Python version is above 3.10, patching the collections module. ``` This can interfere with: - Output parsing in scripts - Logging systems - Jupyter notebook outputs - Any application that expects clean stdout Additionally, the `torch==2.0.1` pin in requirements.txt prevents users from using newer PyTorch versions, even though the pyproject.toml correctly uses `torch>=2.0.1`. ## Changes ### `deepseek_vl/__init__.py` - Removed the `print()` statement - Added `__version__ = "1.0.0"` - Improved the comment explaining the compatibility patch ### `requirements.txt` - Changed `torch==2.0.1` to `torch>=2.0.1` to match pyproject.toml ## Test plan - [x] Verify Python syntax is valid - [ ] Verify import works without stdout pollution - [ ] Verify package works with newer PyTorch versions 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-VL#76
No description provided.