Skip to content
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

chore: remove clip_hg #786

Merged
merged 8 commits into from
Jul 29, 2022
Merged

chore: remove clip_hg #786

merged 8 commits into from
Jul 29, 2022

Conversation

ZiniuYu
Copy link
Member

@ZiniuYu ZiniuYu commented Jul 28, 2022

This PR removes the CLIP hugging face executor since hg does not have new models and every other model can be used from open-clip

@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #786 (e21bf70) into main (87928a7) will decrease coverage by 15.78%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main     #786       +/-   ##
===========================================
- Coverage   85.92%   70.14%   -15.79%     
===========================================
  Files          21       20        -1     
  Lines        1137     1055       -82     
===========================================
- Hits          977      740      -237     
- Misses        160      315      +155     
Flag Coverage Δ
cas 70.14% <ø> (-15.79%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/clip_server/executors/clip_tensorrt.py 0.00% <0.00%> (-100.00%) ⬇️
server/clip_server/model/clip_trt.py 0.00% <0.00%> (-85.72%) ⬇️
server/clip_server/model/trt_utils.py 0.00% <0.00%> (-83.52%) ⬇️
server/clip_server/executors/helper.py 95.58% <0.00%> (-1.48%) ⬇️
client/clip_client/client.py 85.78% <0.00%> (-1.02%) ⬇️
server/clip_server/executors/clip_onnx.py 85.71% <0.00%> (-0.23%) ⬇️
server/clip_server/executors/clip_torch.py 87.71% <0.00%> (-0.22%) ⬇️
server/clip_server/model/clip_onnx.py 88.88% <0.00%> (+6.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87928a7...e21bf70. Read the comment docs.

@ZiniuYu ZiniuYu marked this pull request as ready for review July 28, 2022 06:11
@ZiniuYu ZiniuYu requested a review from a team July 28, 2022 06:12
@@ -42,7 +42,6 @@ jobs:
python -m pip install wheel
pip install --no-cache-dir "client/[test]"
pip install --no-cache-dir "server/[onnx]"
pip install --no-cache-dir "server/[huggingface]"
Copy link
Member

Choose a reason for hiding this comment

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

mclip would also need this dep

@@ -58,7 +59,6 @@
]
+ (['onnxruntime-gpu>=1.8.0'] if sys.platform != 'darwin' else []),
'tensorrt': ['nvidia-tensorrt'],
'huggingface': ['transformers>=4.16.2'],
Copy link
Member

Choose a reason for hiding this comment

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

change the dependency key to "mclip"

Copy link
Member Author

Choose a reason for hiding this comment

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

why put mclip in extra requirements, since it is now part of basic models to support

Copy link
Member

Choose a reason for hiding this comment

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

I changed my mind, let's use transformers as the key. mclip actually depends on transformers.

@ZiniuYu ZiniuYu requested a review from numb3r3 July 28, 2022 06:35
server/setup.py Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/cd.yml Outdated Show resolved Hide resolved
@@ -58,7 +59,6 @@
]
+ (['onnxruntime-gpu>=1.8.0'] if sys.platform != 'darwin' else []),
'tensorrt': ['nvidia-tensorrt'],
'huggingface': ['transformers>=4.16.2'],
Copy link
Member

Choose a reason for hiding this comment

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

I changed my mind, let's use transformers as the key. mclip actually depends on transformers.

ZiniuYu and others added 3 commits July 29, 2022 10:36
Co-authored-by: felix-wang <[email protected]>
Co-authored-by: felix-wang <[email protected]>
Co-authored-by: felix-wang <[email protected]>
Copy link
Member

@numb3r3 numb3r3 left a comment

Choose a reason for hiding this comment

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

LGTM

@numb3r3 numb3r3 merged commit c458dd6 into main Jul 29, 2022
@numb3r3 numb3r3 deleted the remove_hg branch July 29, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants