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

[Question] how to use with facebook dinov2 #205

Closed
carl10086 opened this issue Apr 30, 2023 · 2 comments
Closed

[Question] how to use with facebook dinov2 #205

carl10086 opened this issue Apr 30, 2023 · 2 comments

Comments

@carl10086
Copy link

reproduce

model = torch.hub.load('facebookresearch/dinov2', 'dinov2_vits14')
model = model.to('cuda')
torch._dynamo.config.verbose = True
hidet.torch.dynamo_config.use_tensor_core(True)
hidet.torch.dynamo_config.search_space(2)
model_opt = torch.compile(model, backend='hidet')

some error

torch._dynamo.exc.BackendCompilerFailed: hidet_backend raised NotImplementedError: The following modules/functions are not supported by hidet yet:
  torch.nn.Identity
Enviroment

env
OS: Ubuntu 22.04
GPU: A100

question

@yaoyaoding
Copy link
Member

Hi @carl10086,

I have added the missing operator mapping for the dinov2 model in #206.

You can build hidet from source and have a check (or wait for one day when the PR gets into the nightly build version).

@anurlybayev
Copy link
Collaborator

Resolved by #206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants