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

Optimize Text embedding error: can't optimize a non-leaf Tensor #10

Open
hizuka590 opened this issue Apr 3, 2024 · 1 comment
Open

Comments

@hizuka590
Copy link

Hi author

Thank you for releasing your amazing work.When I try to retrain your model, I find the original source code perhaps got something wrong and failed to optimize text embedding because of the ''can't optimize a non-leaf tensor'' error.

could you help check out what goes wrong?

Many thanks

@hizuka590
Copy link
Author

After tracing is_leaf and requires_grad propserty of your code, I believe this nonleaf error is caused by: 'embeddings_to_optimize' is a slice of the original 'text_embedding'.

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

1 participant