ci: install requirements and CPU torch in one pip step

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python, pytorch

Research direction

Read ci.yml and requirements.txt to see the current pip install steps and torch requirement. Check how the CPU torch wheel is selected, then consolidate installation into one pip call or use a constraints file as described. Done when CI installs requirements with the CPU torch wheel protected from being replaced by a CUDA wheel.

Written by the indexing model from the issue text.

Description

From the review of https://github.com/STRML/quantdiff/pull/2 (P3, not blocking). ci.yml installs CPU torch, then requirements.txt (bare torch) in a second pip call. If a dependency ever pins a different torch, the second call can swap in the CUDA wheel from PyPI. It would cost CI time, not correctness. Fix: one call, pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu, or a constraints file pinning the CPU wheel.

Dominant language
Python
Stars
0
Forks
1
Avg merge
5m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from STRML/quantdiff

All issues in STRML/quantdiff

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.