-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use our compatibility matrix to automatically resolve the torch version if the torch version is blank but adjacent dependencies are defined. * Make torchaudio capable of determining CUDA version compatibility like torchvision * Rewrite dependency versions to align with resolved versions * Remove version modifiers, this is now satisfied by adding in extra index URLs to the requirements
- Loading branch information
Showing
7 changed files
with
247 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test-integration/test_integration/fixtures/torch-torchvision-project/cog.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
build: | ||
gpu: true | ||
python_version: "3.9" | ||
python_packages: | ||
- "torch" | ||
- "torchvision==0.19.0+cu121" | ||
predict: "predict.py:Predictor" |
6 changes: 6 additions & 0 deletions
6
test-integration/test_integration/fixtures/torch-torchvision-project/predict.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from cog import BasePredictor | ||
|
||
|
||
class Predictor(BasePredictor): | ||
def predict(self, s: str) -> str: | ||
return "hello " + s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters