save
The save
function is used to save your history. Available parameters:
path
- The path where the file will be saved (default:./AutoHistory.json
).
Example:
from litegpt.lib import AsyncHistory
import asyncio
async def main():
history = AsyncHistory()
# Interacting with the history (Adding/Removing entries)...
await history.save("./AutoHistory.json") # Saving the history
asyncio.run(main())
Last updated