Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

saved_state.py 295 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. import sys
  2. class SavedState:
  3. def __init__(self, state_dict, timestep, stats):
  4. self.state_dict = state_dict
  5. self.stats = stats
  6. self.timestep = timestep
  7. def try_to_find_saved_state():
  8. if len(sys.argv) >= 2:
  9. return sys.argv[1]
  10. else:
  11. return None
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...