Allow `tensorflow-text[cpu]`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 379
- Avg merge
- 3h 30m
- Merged PRs (30d)
- 8
Description
Currently, pulling in tensorflow-text pulls in a requirement for tensorflow. However, if a project already has tensorflow-cpu declared, then it leads to both tensorflow and tensorflow-cpu being installed in the virtual environment.
It would be ideal if it was possible to install a CPU-only version of tensorflow-text.
This comes up in contexts like:
https://github.com/astral-sh/uv/issues/4422#issuecomment-2766259193
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the tensorflow-text package's dependency and extra metadata, especially how the existing tensorflow requirement is declared. Done means a CPU-specific tensorflow-text[cpu] installation can use tensorflow-cpu without also installing tensorflow; the issue names no files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100