4 ms·
Oh my bad, I meant how to code it?
by atharv_jaju 3y ago
Oh my bad, I meant how to code it?
- csjh 3y agoPython pseudocode: ```py output = prompt("My favourite animal is ") # returns a generator start = time.time() tokens = 0 for token in output: tokens += 1 print(token) print(f"Outputted {tokens / (time.time() - start)} tokens/second") ```