-
Notifications
You must be signed in to change notification settings - Fork 32
Remove all_pks
from Sampler.sample
#160
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
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #160 +/- ##
==========================================
+ Coverage 60.99% 61.22% +0.22%
==========================================
Files 55 55
Lines 2797 2798 +1
==========================================
+ Hits 1706 1713 +7
+ Misses 1091 1085 -6
|
@XuhuiZhou Would you mind helping me check if this is faster? I have other optimization in mind, but I want to confirm that this works. It should be much faster when calling sample function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ProKil I tried and timed the
python examples/minimalist_demo.py
on this new version of code, and it costs me 4mins to finish a single episode.
Any chance you may test on your side and we can compare?
Specifically,
time python examples/minimalist_demo.py
And the output is:
python examples/minimalist_demo.py 1.86s user 2.64s system 1% cpu 4:06.94 total
New timing after running, much faster! |
@XuhuiZhou Should we merge it then? |
Closes #159
📑 Description
✅ Checks
type/descript
(e.g.feature/add-llm-agents
)ℹ Additional Information