-
Notifications
You must be signed in to change notification settings - Fork 454
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
Adds a new method to shuffle/swap values #167
base: main
Are you sure you want to change the base?
Conversation
This is really interesting! I definitely have to spend some time to get a better feel for how this is working. From my first read through it looks like this might be effectively negating the delta values in a checkerboard pattern. Does that jive with your thoughts? Thanks again for the PR, I'm looking forward to playing with it. :) |
Yep, I think that's correct, Thanks for replying 🤗 |
I fixed some things inverted wrongly.
And here is the yaml example of use:
I hope I didn't mess up this time 😅 |
Hey @Ar57m, this method is really cool! Do you know how it compares to slerp interpolation or standard task arithmetic? |
thanks @linux-leo , I don't have much knowledge in calculus to understand what exactly Slerp does, but afaik my method seems to be much simpler and different (not related to what Slerp does). Imagine you have two sorted decks of cards(equal in amount of cards) base and X, each card has a number 0 to n. Imagine that each card is an element(or value) in a tensor, You take the base deck and replace the base even cards by the X even cards. That's in the normal behavior. |
trying to resolve conflicts
in each tensor.
I'm bad at describing what it does, so here's the exact function in a code to serve as an example/demo.
I didn't mess with the legacy.py(don't know what to do there, if I need to do something there).
Feel free to do anything you want with it, I did as far as I could to improve or optimize my shenanigans 🙂
You can use task_swapping, task_swapping_ties or task_swapping_dare_ties.
Here's a yaml example: