load
The load
function is used to load a history file that you previously saved using save
. Available parameters:
path
- The path to the file you want to load (default:./AutoHistory.json
).
Example:
from litegpt.lib import AsyncHistory
import asyncio
async def main():
history = AsyncHistory()
await history.load("./AutoHistory.json") # Loading the history
print(history) # Verifying the loaded data
asyncio.run(main())
Last updated