in generation/llm_swarm_script.py [0:0]
def save_checkpoint(tar_index, total_examples):
checkpoint_data = {
'tar_index': tar_index,
'total_examples': total_examples
}
with open(CHECKPOINT_FILE, 'w') as f:
json.dump(checkpoint_data, f)